Aspose.3D for Java is a standalone Gameware and CAD API to manipulate 3D files. API supports most of the popular 3D file formats and applications can create, read, convert & modify files easily. Moreover, API assists developers in modeling and creation of massive game worlds, superb scenes for design visualization, engage virtual reality experiences, add Animation property to scene file, format elements using transformations and much more.
At a Glance
An overview of the API.
- Create Scenes
- Create Mesh Surface
- Polygon Triangulation
- Split Mesh by Material
- Setup Normal for Graphics
- Set up UV for Graphics
- Triangulate Mesh
- Share Mesh Geometry Data
- Add Material to Object
- Add Target Camera
- Cast & Receive Shadows
Aspose.3D for Java supports the Java runtime.
- JSP/JSF Application
- Desktop Application
Supported File Formats
API supports listed file formats .
- Autodesk: FBX 7.2 to 7.5 (ASCII/Binary)
- STL (ASCII/Binary)
- Wavefront: OBJ
- Collada: DAE
- GL Transmission: glTF (ASCII/Binary)
- Google Draco: DRC
- RVM (Text/Binary)
- Portable Document Format: PDF
- DirectX: X (ASCII/Binary)
- Siemens: JT
- DirectX: X
Advanced Java 3D API Features
Generate scene and save in supported formats
Load, save and render 3D document to a stream
Work with geometry and scene hierarchy
Share mesh geometry data within multiple nodes
Add animation property to the scene file
Triangulate a Mesh with custom memory layout of the vertex
Add a target camera as well as animate objects in a 3D scene
Split meshes by material
Change plane's orientation by specifying an up normal
Create geometry by extruding shapes
Enhance the creation of cylinder
Archive-based file format-detection
support of AMF format
Import and export glTF documents using Draco compression
Inter-convert Scene Files
API provides the support of 3D file format conversion in a simple way. Developers can load the source document in a Scene instance, and use its Save function with the FileFormat parameter. That's it!
Save 3D scene in different formats - Java
// load the file to be converted Scene scnObj = new Scene(dir + "srctemplate.fbx"); // save in different formats scnObj.save(dir + "trgoutput.stl", FileFormat.STLASCII); scnObj.save(dir + "trgoutput.obj", FileFormat.WAVEFRONTOBJ);
Generate 3D Scenes via API
Aspose.3D for Java lets the developers create scenes from scratch without the dependency of any modeling software. The Java API also empowers the developers to save the scenes in any of the supported formats such as (STL, FBX, Discreet3DS, WavefrontOBJ, Collada and Universal3D).
Create a scene with primitive 3D shapes - Java
// initialize a Scene object Scene scn = new Scene(); // create a Box model scn.getRootNode().createChildNode("box", new Box()); // create a Cylinder model scn.getRootNode().createChildNode("cylinder", new Cylinder()); // save drawing in the FBX format scn.save(dir + "output.fbx", FileFormat.FBX7500ASCII);
Build Node Hierarchy in a Simple Way
Aspose.3D for Java API provides the ability to build a Node hierarchy where a Node is the basic building block of a scene. A hierarchy of nodes defines the logical structure and provides visible content by attaching geometries, lights, and cameras to the nodes.
Add Animation Property to Scene
Aspose.3D for Java API provides support for keyframe animation via CurveMapping which maps components of a property to different curves. Moreover, library offers to set up the target camera in a 3D file which is useful in animation when you need the camera to face a particular node.
Robustness, Performance & Scalability
Aspose.3D for Java is designed to perform equally well on the server or client-side. It is a single Java assembly that can be deployed with any Java application by simply adding its reference. You don't have to worry about other services or modules while working with API.