
Aspose.3D Cloud Ruby SDK
Ruby API to Create, Edit & Convert 3D Models & Scenes
A Powerful 3D Software Development Kit (SDK) that allows Swift Developers to Create, Modify, Render, Manipulate, & Convert 3D Models/Scenes and Other File Formats.
What is Aspose.3D Cloud Ruby SDK?
With technology advancing rapidly, the need for high-end 3D apps and services is on the rise. Thanks to the Aspose.3D Cloud Ruby SDK, developers like you have access to a robust set of tools. These tools make it easy for you to add impressive 3D features to your cloud-based apps. This toolkit empowers you to work with 3D models smoothly and effectively. If you’re involved in creating games, animations, or simulations, this SDK offers a wide range of tools to make it easier for you to work with 3D models. The Aspose.3D Cloud Ruby SDK is really reliable. It supports many popular 3D file formats such as FBX, STL, VRML, ASE, OBJ, 3DS, U3D, DAE, DRC, GLTF, RVM, PDF, AMF, PLY, X, JT, DXF, 3MF, HTML, and more.
The Aspose.3D Cloud Ruby SDK is user-friendly and comes with a robust Ruby API that includes various classes and algorithms tailored for handling 3D information. This library comes packed with essential features like generating 3D objects (like Box, Cylinder, Sphere, Torus, Plane), as well as handling textures and materials linked with 3D models, handling animation and interactivity in 3D models, geometry editing support, rendering and visualizing 3D models, 3D model conversion to other supported formats, rendering high-quality images and animations and many more. If you’re a software developer, you can effortlessly work with 3D models using this tool. You can easily do things like resizing, rotating, moving, and even applying more complex changes like skeletal animation. With the Aspose.3D SDK, you have a wide range of possibilities at your fingertips
Getting Started with Aspose.3D Cloud Ruby SDK
The recommend way to install Aspose.3D Cloud Ruby SDK is using RubyGems. Please use the following command for a smooth installation.
Install Aspose.3D Cloud Ruby SDK via RubyGems
gem install aspose_3d_cloud
You can also download it directly from Aspose product page.3D Scene Composition inside Ruby Apps
Aspose.3D Cloud Ruby SDK allows software developers to create 3D scenes and handle various types of entities inside Ruby applications. The API empowers software developers to create complex 3D scenes by combining multiple models, positioning them in the virtual space, and defining their relationships. Developers can easily create hierarchical structures, attach models to skeletons, and create interactive environments with ease.
How to Create New Scene and Set Various Properties via Ruby?
scene = Aspose3DCloud::Scene.new
scene.background_color = Aspose3DCloud::Color.new(0.2, 0.2, 0.2) # Set background color to gray
scene.fog_enabled = true
scene.fog_start = 100
scene.fog_end = 500
scene.fog_color = Aspose3DCloud::Color.new(0.5, 0.5, 0.5) # Set fog color to light gray
scene.ambient_light_color = Aspose3DCloud::Color.new(0.5, 0.5, 0.5) # Set ambient light color
# Manipulate Various Properties of scene Objects
# Create a cube mesh
cube = Aspose3DCloud::Mesh.create_box("Cube", 10, 10, 10)
# Set position and rotation of the cube
cube.transform.translation = Aspose3DCloud::Vector3.new(0, 0, 0)
cube.transform.rotation = Aspose3DCloud::Quaternion.from_euler_angles(0, 45, 0)
# Add the cube to the scene
scene.root_node.add_child(cube)
3D Model Conversion via Ruby API
Aspose.3D Cloud Ruby SDK has included very powerful support for converting 3D models to various other supported file formats inside Ruby applications. It provides seamless integration with the Aspose.3D Cloud API, allowing software engineers to convert 3D models between different formats. Whether users need to convert from FBX to glTF, FBX to PDF or STL to OBJ, the SDK simplifies the process and ensures accurate and reliable conversions. The following example demonstrates how developers can convert FBX 3D model to PDF file format with just a couple of lines of Ruby code.
How to Convert FBX to PDF via Ruby Code?
# Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).
@three_d_cloud_api = AsposeThreeDCloud::ThreeDCloudApi.new("MY_CLIENT_SECRET", MY_CLIENT_ID")
@name:String = "sample.fbx"
@newformat:String = "pdf"
@newfilename:String = "oaptest.pdf"
result = @three_d_cloud_api.post_convert_by_format(@name, @newformat, @newfilename)
Texture and Material Management in 3D Models
Aspose.3D Cloud Ruby SDK makes it easy for computer programmers to manage texture and material related information side their 3D diagrams. The SDK provides extensive capabilities for managing textures and materials associated with 3D models. You can apply textures to objects, adjust their mapping coordinates, and control the material properties such as color, shininess, and transparency. These features enable developers to achieve realistic rendering effects and enhance the visual quality of your models.
Animation and Interactivity Support via Ruby API
Aspose.3D Cloud Ruby SDK offers comprehensive support for animation and interactivity in 3D models inside Ruby applications. Software developers can define key-frames, animate object transformations, and control the timing and interpolation of animations with ease. Additionally, developers can add interactivity by attaching scripts or behaviors to objects, allowing them to create interactive applications and games. Developers can also apply realistic lighting effects to 3D models, enhancing their visual quality.