AnimalLogic / AL_USDMaya

This repo is no longer updated. Please see https://github.com/Autodesk/maya-usd
Other
266 stars 69 forks source link

Respect upAxis metadata when reading usd #101

Open pmolodo opened 6 years ago

pmolodo commented 6 years ago

AL (as opposed to the built-in pixar plug in) ignores the "upAxis" setting in the root metadata of a usd scene.

For an example, download and import the KitchenSet provided by pixar (http://graphics.pixar.com/usd/downloads.html), which has upAxis = "Z"

robthebloke commented 6 years ago

When you say ignore, do you mean on export? or when importing a proxyshape? Having looked through the pxrMaya code, the only place that seems to pay attention to the upAxis is when exporting from a maya scene to a USD file. I can't see any obvious place where that flag is tested on import, or within the confines of the proxy shape?

pmolodo commented 6 years ago

I mean on read / display in a pixar proxyShape. Haven't tested the file import behavior. And not sure how they're handling it - maybe they're enabling some obscure or oddly named flag which enables handling somewhere within usd? - but I know that they bring shapes in so a z-up scene displays in maya "corrected" so y is up.