Μετατροπή USD σε X μέσω C#
Εξαγωγή USD και άλλων 3D αρχείων χρησιμοποιώντας .NET Framework, .NET Core και Mono
Εξαγωγή σκηνής USD ως Χ με C#
- Φόρτωση αρχείου USD χρησιμοποιώντας έναν κατασκευαστή του Σκηνή τάξη2. Καλέστε Σκηνή.Αποθήκευση μέθοδος
- Περάστε το όνομα αρχείου εξόδου με την επέκταση .x ως πρώτη παράμετρο
- Καθορίστε την τιμή του πεδίου «XBinary» από Μορφή αρχείου τάξη
3D Μετατροπή μορφής API for .NET
Εγκατάσταση από τη γραμμή εντολών ως nuget install Aspose.3d
ή μέσω της Κονσόλας Package Manager του Visual Studio με το Install-Package Aspose.3D
.
Εναλλακτικά, αποκτήστε το πρόγραμμα εγκατάστασης MSI εκτός σύνδεσης ή τα αρχεία DLL σε ένα αρχείο ZIP από λήψεις .
C# Κωδικός για μετατροπή USD σε X
// φορτώστε το USD σε ένα αντικείμενο της σκηνής
var scene = new Aspose.ThreeD.Scene("template.usd");
// αποθηκεύστε το USD ως Χ
scene.Save("output.x", Aspose.ThreeD.FileFormat.XBinary);
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 MoreX What is X File Format?
A file with .x extension refers to DirectX 3D Graphics legacy file format that was introduced with Microsoft DirectX 2.0. It was used for 3D graphics rendering in games and specifies the structures for meshes, textures, animations, and user-defined objects. It has been deprecated since 2014 as the Autodesk FBX file format serves better as a more modern format. X is template-driven and is free of any usage knowledge. You can open DirectX X files using Microsoft DirectX and common text editors.
Read More