USDZ to GLB C#

USDZ files are getting popular in different augmented reality scenarios. Sometimes, you may want to convert a USDZ file to GLB or GLTF format. In accordance with similar use cases, this article covers how to convert a USDZ file to GLB or GLTF format with ASCII or Binary encoding programmatically in C#.

USDZ to GLB or GLTF Converter – C# API Installation

Aspose.3D for .NET API can be used to create, edit, or manipulate different 3D scenes. Simply configure the API by downloading its reference DLL files from the New Releases page or using the following NuGet installation command:

PM> Install-Package Aspose.3D

Convert USDZ to GLB File in C#

You can convert a USDZ file to GLB format with the following steps:

  1. Load the source USDZ file with the Scene class.
  2. Open the scene and convert the USDZ to GLB format with the Save method.

The following code snippet shows how to convert a USDZ file to GLB format programmatically in C#:

Convert USDZ to GLTF File in C#

You can convert a USDZ format file to GLTF format by following the steps below:

  1. Create an instance of the Scene class to load the input USDZ file.
  2. Convert the USDZ to GLTF format using the Save method.

The code sample below elaborates how to convert a USDZ file to GLTF format programmatically in C#:

Get Free Temporary License

You may request a free temporary license in order to evaluate the API in its full capacity.

Online Demo

Please try the USDZ to GLB Converter web app developed using this API.

Conclusion

In this article, you have learned the conversion of USDZ file format. It can be exported to a GLB or GLTF file depending upon your requirements of output file in ASCII format or Binary format. Furthermore, you may visit the API documentation to explore other features offered by the API. In case of any concerns, please feel free to reach out to us via the forum.

See Also

Convert USDZ to HTML in C#