Skip to content

Latest commit

 

History

History
54 lines (28 loc) · 1.4 KB

README.md

File metadata and controls

54 lines (28 loc) · 1.4 KB

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