USDZ is an unencrypted and uncompressed ZIP archive for storing Universal Scene Description files. They are popularly used by different organizations to show their products online with the help of augmented reality. However, you might need to convert USDZ to an OBJ file, in some use cases. Accordingly, this article explains how to convert a USDZ file to an OBJ file programmatically in Java.
USDZ to OBJ File Converter – Java API Installation
Aspose.3D for Java API supports working with 3D files. You can manipulate different file formats programmatically without needing to install any graphics or animation processing application. Quickly configure the API by downloading its JAR files from the New Releases section or with the following configurations to install it from Aspose Repository in your Maven-based projects.
<repositories> <repository> <id>AsposeJavaAPI</id> <name>Aspose Java API</name> <url>http://repository.aspose.com/repo/</url> </repository> </repositories>
<dependencies> <dependency> <groupId>com.aspose</groupId> <artifactId>aspose-3d</artifactId> <version>22.2</version> </dependency> </dependencies>
Convert USDZ to OBJ File in Java
You can convert a USDZ file to an OBJ file with the following steps:
- Load the source USDZ file using the Scene class.
- Initialize an instance of ObjSaveOptions class.
- Convert USDZ to OBJ File.
The code snippet below demonstrates how to convert a USDZ file to an OBJ file programmatically in Java:
Get Free Temporary License
You can test all the features without any evaluation limitations by requesting a free temporary license.
In this article, you have explored how to convert a USDZ file to an OBJ file programmatically in Java. The usability of USDZ files is rapidly increasing as many companies are presenting their products with augmented reality scenarios. Whereas, the OBJ files are needed to work with 3D printing and storing non-animated 3D models, so this conversion can be helpful in such use cases. Moreover, you can take a look at the other features offered by the API by visiting the documentation space. Please feel free to get in touch with us at the forum in case of any queries.