GithubHelp home page GithubHelp logo

philipluk / xpdtousd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from n-burk/xpdtousd

0.0 0.0 0.0 43 KB

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

License: Apache License 2.0

C++ 26.17% CMake 73.83%
pluk-usd pluk-xgen

xpdtousd's Introduction

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

xpdtousd's People

Contributors

n-burk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.