1. Products
  2.   3D
  3.   Ruby
  4.   Aspose.3D Cloud Ruby SDK

Aspose.3D Cloud Ruby SDK

 
 

Ruby API to Create, Edit & Convert 3D Models

A Powerful 3D software development kit (SDK) that allows Swift developers to create, modify, render, manipulate, and convert 3D file formats.

As technology continues to advance, the demand for sophisticated 3D applications and services is skyrocketing. Using Aspose.3D Cloud Ruby SDK, software developers can access to a comprehensive toolset that enables them to effortlessly integrate powerful 3D capabilities into their cloud-based applications. it is a powerful tool that enables software developers to interact with 3D models in a seamless and efficient manner. Whether you're working on a game, animation, or simulation project, this SDK provides a comprehensive set of features to simplify 3D model manipulation.

Aspose.3D Cloud Ruby SDK is very easy to handle and provides a powerful API written in Ruby that provides a comprehensive set of classes and algorithms for working with 3D data. There are several important features part of the library such as creating 3D entities (Box, Cylinder, Sphere, Torus, Plane), managing textures and materials associated 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.

Aspose.3D Cloud Ruby SDK is very stable and has included support for numerous popular 3D file formats such as FBX, STL, VRML, ASE, OBJ, 3DS, U3D, DAE, DRC, GLTF, DRC, RVM, PDF, AMF, PLY, X, JT, DXF, 3MF, HTML and many more. Software developers can easily load and manipulate 3D models. They can perform tasks like scaling, rotation, translation, and even apply complex transformations like skeletal animation with ease. With the Aspose.3D SDK, the possibilities are endless. Whether you're a seasoned developer or just starting your journey in 3D application development, the SDK offers a comprehensive and user-friendly solution that can accelerate your development process.

Previous Next

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.

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.

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.