Community
Arnold for 3ds Max
Rendering with Arnold in 3ds Max using the MaxtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Turn off primary rays for an object using shaders rather than geometry switch ?

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
AlanEddie
417 Views, 6 Replies

Turn off primary rays for an object using shaders rather than geometry switch ?

Is it possible to turn off primary rays for an object using shaders rather than unchecking the "Primary visibility" on the shape node. I want to achieve this so I can feed networks into AOVs.

So I want to achieve like the image on the right, but do it with shaders rather than using the shape node attribute for Primary visibility.


Thanks

Alan.

screenshot-2020-12-19-16-25-12-077-comandroidchrom.jpg

Alan Eddie
___________________
3d Animation/f/x /Design / Scripting
alaneddie.com
Labels (3)
6 REPLIES 6
Message 2 of 7
Stephen.Blair
in reply to: AlanEddie

I don't think that's possible. By the time shaders are evaluated, Arnold has already determined that the object is visible (or not).



// Stephen Blair
// Arnold Renderer Support
Message 3 of 7
maxtarpini
in reply to: AlanEddie

Turn your primary rays into transparency rays.

shaderprimaryraysswitch.png

Message 4 of 7
Stephen.Blair
in reply to: maxtarpini

Yup, that occurred to me last night!

1608654708880.png



// Stephen Blair
// Arnold Renderer Support
Message 5 of 7
maxtarpini
in reply to: Stephen.Blair

You mean the reflection in the ball ? But he asked for 'primary rays' 😉 ie. that would occur also by turning off 'primary visibility'. You can plug the transpmat into specular reflection slot.. the only problem is that the part exposed to the background would still be visible (see black spot in refl sphere)... one can fix that by using a dome sphere.


primaryandreflrays.png

Message 6 of 7
Stephen.Blair
in reply to: maxtarpini

No, I just meant I thought of the same thing as you, and I was echoing your suggestion (you beat me to it, when I went to post my answer you had already answered)

I just put in the chrome ball to show that I had "turned off" primary visibility, but left everything else.



// Stephen Blair
// Arnold Renderer Support
Message 7 of 7
AlanEddie
in reply to: Stephen.Blair

Awesome that's great, so I can now use userData variables on objects to turn off visibility of objects in AOVs - retaining their reflections etc in the AOV.

Alan Eddie
___________________
3d Animation/f/x /Design / Scripting
alaneddie.com

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report