Convert USD to HTML via C#
Export USD & other 3D files using .NET Framework, .NET Core and Mono
Export USD Scene as HTML with C#
- Load USD file using a constructor of Scene class
- Call Scene.Save method
- Pass output file name with .html extension as first parameter
- Specify
HTML5
field value from FileFormat class
3D Format Conversion API for .NET
Install from command line as nuget install Aspose.3d
or via Package Manager Console of Visual Studio with Install-Package Aspose.3D
.
Alternatively, get the offline MSI installer or DLLs in a ZIP file from downloads .
C# Code for USD to HTML Conversion
// load the USD in an object of Scene
var scene = new Aspose.ThreeD.Scene("template.usd");
// save USD as a HTML
scene.Save("output.html", Aspose.ThreeD.FileFormat.HTML5);
Other Conversion Options
USD What is USD File Format?
A file with .usd extension is a Universal Scene Description file format that encodes data for the purpose of data interchanging and augmenting between digital content creation applications. Developed by Pixar, USD provides the ability to interchange elemental assets (such as models) or animation.
Read MoreHTML What is HTML File Format?
Known as language of the web, HTML has evolved with requirements of new information requirements to be displayed as part of web pages. The latest variant is known as HTML 5 that gives a lot of flexibility for working with the language. HTML pages are either received from server, where these are hosted, or can be loaded from local system as well. Each HTML page is made up of HTML elements such as forms, text, images, animations, links, etc. These elements are represented by tags and several others where each tag has start and end. It can also embed applications written in scripting languages such as JavaScript and Style Sheets (CSS) for overall layout representation.
Read More