refractive IDs in Arnold

438 views
Skip to first unread message

Ryan O'Phelan

unread,
Mar 1, 2017, 3:07:32 AM3/1/17
to maya...@googlegroups.com
Hey guys,
I'm not an Arnold guy, but doing an Arnold job. yay.

I have some glass, and I need an ID AOV of stuff refracted in the glass. For instance, I need a matte for the wine in a wine glass. 

Anyone know how to do this off hand? 

Thanks,
Ryan

Olly Nash

unread,
Mar 1, 2017, 5:45:15 AM3/1/17
to maya...@googlegroups.com
Hi Ryan,

this doc explains it well:

and this vimeo is helpful too:

Olly : )




--
You received this message because you are subscribed to the Google Groups "maya_he3d" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maya_he3d+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ryan O'Phelan

unread,
Mar 1, 2017, 8:54:36 PM3/1/17
to maya...@googlegroups.com
Thanks Olly,
 I'll try it that way. I didn't realize it was different from using an aiwritecolor node in a shader, which does not refract.

Ryan O'Phelan

unread,
Mar 1, 2017, 9:40:04 PM3/1/17
to maya...@googlegroups.com
I just tried it this way, and it definitely does not work. 
It does add a new AOV and renders the new shader when seen directly, but not when refracted through another piece of geometry. 
Is there something I need to do to the other geometry or shader to allow AOVs to be rendered through them?

Thanks,
Ryan

Ryan O'Phelan

unread,
Mar 1, 2017, 10:38:35 PM3/1/17
to maya...@googlegroups.com
I found a toggle on the ALshaders ID section to transmit AOVs.
This made me realize what was really going on. The "wine" shader is also transmissive, and the diffuse is off, and therefore does not show in the ID matte because it is just the background refracted through the wine, being tinted by the transmission color. When I make it opaque, it shows up in the matte. Adding diffuse color lets the AOV ID work, but I'll bet there's a bette way to do this. 

R

Olly Nash

unread,
Mar 7, 2017, 5:37:58 AM3/7/17
to maya...@googlegroups.com
Hey Ryan,

Oo, good toggle switch to find! Thanks for sharing.  
Your approach makes sense and as no-one has anything else to offer, I think you're doing the best way possible!  If you really need that extra matte, you might have to admit defeat and do it in another pass!!

Good luck!
   Olly : )

Ryan O'Phelan

unread,
Mar 8, 2017, 12:11:37 PM3/8/17
to maya...@googlegroups.com
Thanks Olly, 
I have concluded that transmitted aovs should be done in their own layer. If they are done in the beauty, then they will transmit all other aovs, and make a mess. An expensive mess too.

R

Olly Nash

unread,
Mar 8, 2017, 12:39:18 PM3/8/17
to maya...@googlegroups.com
Oh yes, good point!  Thanks for sharing your findings dude : )

Reply all
Reply to author
Forward
0 new messages