Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.14 KB

README.md

File metadata and controls

30 lines (23 loc) · 1.14 KB

Converting between SDF and USD

This example shows how a world in a SDF file can be converted to USD.

Requirements

You will need all of the dependencies for sdformat, along with the following additional dependencies:

Setup

Build sdformat, and then run the following commands to build the example (run these commands from this example directory):

mkdir build
cd build
cmake ..
make

You should now have an executable named sdf2usd, which can be used to convert a SDF world file to a USD file. The following command converts the example shapes.sdf file to its USD representation, stored in a file called shapes.usda (run this command from the build directory):

./sdf2usd ../shapes.sdf shapes.usda

You can now view the contents of the generated USD file with usdview (this should have been installed when setting up the USD dependency):

usdview shapes.usda