Skip to content

Autodesk Xgen Xpd to Usd curve conversion tool. Converts curve grooms baked down to xpd to UsdBasisCurve geometry

License

Notifications You must be signed in to change notification settings

n-burk/xpdToUsd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xpdToUsd

Autodesk Xgen Xpd to Usd curve conversion tool. Converts curve grooms baked down to xpd to UsdBasisCurve geometry. Xuv to Usd now included

Building

:>cmake .

:>cmake --build .

Usage

xpd2Usd

:>xpdToUsd pathToXpd pathToUsd_output

usd2Xpd

:>xpdToUsd pathToUsd pathToXpd_output primPath

xuv2Usd

:>xpdToUsd pathToXuv pathToUsd_output

usd2Xuv

:>xpdToUsd pathToUsd pathToXuv_output primPath

Note about Usd->Xpd conversion

Xpd is a very "growth geometry centric" format as the end client is xgen, an instancing software. So some special attributes need to exist on the basisCurve before conversion. These attributes will exist inside the Usd geometry upon xpd->Usd conversion

xpd:faceIds - VtArray(int) : per curve OSD patch index the curve root lands on

xpd:uvLocations - VtArray(GfVec3f) : per curve OSD patch uv coordinate curve root lands on. We toss the third element as this is just barycentric coordinates of a face

Xgen requires a uniform cv count on every curve

Exporting xpd from xgen

image

In Xgen, change renderer to Xpd and point to a directory and hit "Create Xpd File" to generate file

Xgen data from scratch examples:

Houdini/Blender examples forthcoming

Dependencies:

Xpd - Shipped with Autodesk Maya

Usd - Pixar Usd

https://github.com/PixarAnimationStudios/USD

About

Autodesk Xgen Xpd to Usd curve conversion tool. Converts curve grooms baked down to xpd to UsdBasisCurve geometry

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published