USDZ to OBJ Java

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 a USD or USDZ file to OBJ format, in some use cases. Accordingly, this article explains how to convert a USDZ file to an OBJ file programmatically in Java.

USDZ or USD 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.

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.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:

  1. Load the source USDZ file using the Scene class.
  2. Initialize an instance of ObjSaveOptions class.
  3. 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.

Conclusion

In this article, you have explored how to convert a USD to OBJ or USDZ 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 forum in case of any queries.

See Also