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

connect the opacity on the transmission #1252

Merged
merged 10 commits into from
Aug 16, 2022
Merged

Conversation

cpichard
Copy link
Collaborator

@cpichard cpichard commented Aug 9, 2022

Changes proposed in this pull request

  • when remapping the usd shaders to Arnold, we handle the case where a value is set or a texture connected to the opacity parameter of the preview shader. We map it to the transparency by inverting the value

Issues fixed in this pull request
Fixes #1204

@cpichard cpichard marked this pull request as ready for review August 16, 2022 15:20
@cpichard cpichard merged commit 9c28596 into Autodesk:master Aug 16, 2022
sebastienblor pushed a commit to sebastienblor/arnold-usd that referenced this pull request Aug 18, 2022
* connect the opacity on the transmission

* remove useless cout

* add constant string "transmission"

* add a substract node to convert opacity to transmission in the procedural

* add testsuite for issue Autodesk#1204

* remap opacity after converting it

* fix type mismatch resulting from a GfVec4 multiplication

* interpret primvarreader_xxx::varname as a string as well as a token

* reorder alphabetically

* add reference image and bigger donuts

(cherry picked from commit 9c28596)
sebastienblor added a commit that referenced this pull request Aug 18, 2022
* Fix duplicated render vars in the same render product #1220 (#1221)

(cherry picked from commit c205a41)

* Investigate better strategies to handle udims with relative paths (#1234)

* update _VtValueResolvePath to skip anonymous layers and use usd path
composition

* use attribute to search for the relative path layer

* move test_0241 to test_0242

* pass the vdb file attribute instead of nullptr

* fix incorrect merge with master

* fix incorrect merge with master

(cherry picked from commit 1b1e1af)

* Fix crash with varying instances (#1239)

* Fix crash with varying instances #1238

* Updating tests after fix for #1238

* Ensure we don't create arrays of null size #1238

(cherry picked from commit c19f47f)

* check if the path is empty (#1247)

(cherry picked from commit 4712e7e)

* force ignore_missing_textures with UsdUVTexture shaders (#1241)

* force ignore_missing_textures on UsdUVTexture shaders

* make ignore_missing_texture a constant AtString

(cherry picked from commit c3b6e44)

* Compute material assignments in the "full" purpose #1245 (#1248)

(cherry picked from commit 58863ef)

* connect the opacity on the transmission (#1252)

* connect the opacity on the transmission

* remove useless cout

* add constant string "transmission"

* add a substract node to convert opacity to transmission in the procedural

* add testsuite for issue #1204

* remap opacity after converting it

* fix type mismatch resulting from a GfVec4 multiplication

* interpret primvarreader_xxx::varname as a string as well as a token

* reorder alphabetically

* add reference image and bigger donuts

(cherry picked from commit 9c28596)

* add GeometryLight in CreateFallbackSprim (#1253)

(cherry picked from commit b959d83)

Co-authored-by: cpichard <cpichard@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

Preview Surface opacity should translate to arnold transmission
2 participants