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

Don't write fStop when depthOfField is disabled. #1280

Merged
merged 1 commit into from
Apr 28, 2021

Conversation

marsupial
Copy link
Contributor

Maya has an explicit attribute to enable/disable depth of field, but fStop=0 does that in USD.
Currently USD import/export is a direct translation of the USD fStop attribute, which changes intent/meaning.

TODO: Might be good to export the maya fStop curve in a namespaced custom property for loseless data Maya->USD->Maya.

@kxl-adsk kxl-adsk added the import-export Related to Import and/or Export label Mar 27, 2021
Copy link
Collaborator

@JGamache-autodesk JGamache-autodesk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix. I would have expected that at least one of the exported cameras in the unit tests would have a disabled depth of field on export to test that the USD stream ends up having the right values, and it would be nice to have an import test with an fStop of zero to exercise the new behavior fully.

@marsupial marsupial force-pushed the PR/usd-fStop-export branch 3 times, most recently from ef424ed to c2b80c0 Compare March 29, 2021 19:18
@marsupial marsupial force-pushed the PR/usd-fStop-export branch from c2b80c0 to 65930f5 Compare April 26, 2021 20:10
@marsupial
Copy link
Contributor Author

Added the test..

@kxl-adsk
Copy link

@marsupial please apply clang-format so we can trigger PF for this change.

@kxl-adsk
Copy link

The two failing MacOS are known issues unrelated to this change. This change is now ready for merge.

@kxl-adsk kxl-adsk merged commit ccce283 into Autodesk:dev Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
import-export Related to Import and/or Export
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants