USD file encodes data to interchange information between different content creation applications while the USDZ files are archive files without encryption or compression of data. In some scenarios, you might want to convert a USD or USDZ file to 3DS format. In accordance with such use cases, this article covers how to convert a USD to 3DS or USDZ to 3DS file format programmatically in Java.
- USDZ to 3DS Converter – Java API Installation
- Convert USD to 3DS File in Java
- Convert USDZ to 3DS File in Java
USD or USDZ to 3DS Converter – Java API Installation
Aspose.3D for Java can be used to create, edit, or manipulate different two or three-dimensional scenes. You may download the API by downloading its JAR file from the New Releases page or access it from Aspose Repository with the following configurations in the pom.xml file of your application.
Repository:
<repositories>
<repository>
<id>AsposeJavaAPI</id>
<name>Aspose Java API</name>
<url>http://repository.aspose.com/repo/</url>
</repository>
</repositories>
Dependency:
<dependencies>
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-3d</artifactId>
<version>22.8</version>
</dependency>
</dependencies>
Convert USD to 3DS File in Java
You can convert a USD file to 3DS format by following the steps below:
- Create an object of the Scene class to load the input USD file.
- Convert the USD file to 3DS format.
The following code snippet shows how to convert a USD file to 3DS format programmatically in Java:
Convert USDZ to 3DS File in Java
Please follow the steps below to convert a USDZ file to the 3DS format:
- Initialize an instance of the Scene class.
- Convert USDZ to 3DS file format.
The code sample below elaborates on how to convert a USDZ file to a 3DS file programmatically in Java:
Get Free Temporary License
You can request a free temporary license to evaluate the API in its full capacity.
Online Demo
Please try the USDZ to 3DS Converter web app developed using this API.
Conclusion
In this article, you have observed and understood how to convert a USD to 3DS or USDZ file to 3DS format programmatically in Java. However, you may take a look at the documentation section where different chapters cover the features supported by the API. In case of any concerns, please feel free to get in touch via forum.