USDZ to HTML C#

USDZ files contain Universal Scene Description information about any object. They are popularly used to showcase objects with clarity and scalability. Whereas, sometimes you may need to convert a USDZ file to HTML webpage format. In order to meet such requirements, this article covers how to convert a USDZ file to an HTML webpage file programmatically in C#.

USDZ to HTML Webpage Converter – C# API Installation

Aspose.3D for .NET API supports working with files containing three-dimensional scenes and data. For example, FBX, GLTF, OBJ, etc. You can easily install the API by downloading the reference DLL files from the Downloads section or install it with the following NuGet command:

PM> Install-Package Aspose.3D

How to Convert USDZ to HTML Webpage in C#

You can convert a USDZ to an HTML webpage programmatically with the following steps:

  • Load the input USDZ file using the Scene class.
  • Create an object of Html5SaveOptions class.
  • Convert the USDZ to HTML format.

The following section further elaborates on the USDZ to HTML conversion.

Convert USDZ to HTML in C#

You can convert a USDZ file to an HTML webpage by following the steps below:

  • Create an instance of the Scene class to load the source USDZ file.
  • Initialize an object of Html5SaveOptions class.
  • Convert the USDZ file to an HTML webpage.

The code snippet below shows how to convert a USDZ file to an HTML webpage programmatically in C#:

Get Free Temporary License

You may test all the features of the API to their full capacity by requesting a free temporary license.

Online Demo

Please try the USDZ to HTML Converter web application developed using the above API.

Conclusion

In this article, you have learned how to convert a USDZ file to an HTML page programmatically in C#. You may need to perform this conversion to render data in a web application, or any other requirements when you need to preview the file on a webpage. Furthermore, you can find information about working with other three-dimensional objects and file types by visiting the documentation section. In case of any queries, please feel free to contact us via the forum.

See Also

Convert FBX to an STL File in C#