Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inverse transform op does not always inverse the transform #194

Closed
chloe5608 opened this issue Apr 4, 2017 · 4 comments
Closed

Inverse transform op does not always inverse the transform #194

chloe5608 opened this issue Apr 4, 2017 · 4 comments

Comments

@chloe5608
Copy link

Description of Issue

When loading a usda file in maya with the transform stack with the only inverted transformOp, loader will treat inverted transform as non-inverted transform.
e.g.
loading usda file with uniform token[] xformOpOrder = ["!invert!xformOp:translate"]

Steps to Reproduce

  1. Load the attached file (cube_test.usda )into Maya:
    cube_test.zip

  2. Cube shows up at location (0,0,-3.849). If translation is indeed inverted, cube should show up at (0,0,3.849)

System Information (OS, Hardware)

MacOS, MacPro

Package Versions

Maya USD importer

Build Flags

@chloe5608
Copy link
Author

If I change the transform order into: uniform token[] xformOpOrder = ["translate","!invert!xformOp:translate"], the cube shows up at origin as expected.

@jtran56
Copy link

jtran56 commented Apr 5, 2017

Filed as internal issue #145044.

@spiffmon
Copy link
Member

Hi Chloe,
Indeed, there's a bug here in the Maya importer. usdview shows the expected result that for cuby_test.usda, the cube is positioned at (0, 0, 3.849), i.e. the authored translation is inverted and applied. It's a somewhat odd construct, as the "!invert!" operator is primarily meant for applying robust pivots, used in conjunction with the non-inverted corresponding op, as you have in your first comment.

Cheers,
--spiff

@mattyjams
Copy link
Contributor

Hi @chloe5608,

We have a fix for this issue that should be available in the dev branch soon. Thanks for reporting it, and for the test case!

-Matt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants