Convertir USD en GLTF via C#

Exportez USD et d'autres fichiers 3D à l'aide de .NET Framework, .NET Core et Mono

Exporter USD Scène en tant que GLTF avec C#

  1. Charger le fichier USD en utilisant un constructeur de Scène classe2. Appel Scène.Enregistrer méthode
  2. Passez le nom du fichier de sortie avec l’extension .gltf comme premier paramètre
  3. Spécifiez la valeur du champ GLTF à partir de Format de fichier classe

3D Conversion de formats API for .NET

Installez à partir de la ligne de commande en tant que nuget install Aspose.3d ou via la console du gestionnaire de packages de Visual Studio avec Install-Package Aspose.3D.

Vous pouvez également obtenir le programme d’installation MSI hors ligne ou les DLL dans un fichier ZIP à partir de téléchargements .

C# Code pour la conversion USD à GLTF

// charger le USD dans un objet de Scene 
var scene = new Aspose.ThreeD.Scene("template.usd");
// enregistrer USD en tant que GLTF 
scene.Save("output.gltf", Aspose.ThreeD.FileFormat.GLTF);

Other Conversion Options

USD TO DRC (Google Draco File Format)
USD TO GLTF (GL Transmission Format File)
USD TO FBX (Autodesk FBX Interchange File)
USD TO 3DS (3D Studio Scene)
USD TO DAE (Digital Asset Exchange File)
USD TO RVM (AVEVA RVM)
USD TO PDF (Portable Document Format)
USD TO JT (JT Open CAD File)

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 More

GLTF What is GLTF File Format?

glTF (GL Transmission Format) is a 3D file format that stores 3D model information in JSON format. The use of JSON minimizes both the size of 3D assets and the runtime processing needed to unpack and use those assets. It was adopted for the efficient transmission and loading of 3D scenes and models by applications. glTF was developed by the Khronos Group 3D Formats Working Group and is also described as JPEG of 3D by its creators. The format defines an extensible, common publishing format for 3D content tools and services that streamlines authoring workflows and enables interoperable use of content across the industry. The intention behind the creation of glTF file format was to define an extensible, common publishing format for 3D content tools and services that should streamline authoring workflows and enable interoperable use of content across the industry. It minimizes runtime processing by applications using WebGL and other APIs.

Read More