Jump to content

Getting Alpha in refraction with mantra?


Recommended Posts

Cribbed notes from these 2 places:

 

http://houdini.dreamerzstudio.net/?page_id=67

http://forums.odforce.net/topic/12291-raytracing-and-alpha-question/

 

To get this:

 

post-7292-0-50533100-1427762206_thumb.jp

 

Probably not quite right, but should be enough to get you started. :)

 

refract_alpha.hip

 

Looks like Dany Bittel's layered PBR shader does this automatically and has a bunch of other cool features, probably worth getting it if you need a good material base to work with.

 

http://forums.odforce.net/topic/18353-pbr-all-purpose-layered-shader/

 

 

Link to comment
Share on other sites

calling "trace()" will let you easily grab the Alpha or Opacity (instead of just the color).  what's more, if you tag the rays as "primary" rays, then "Matte" and "Phantom" will still operate appropriately, which is kinda neat (ie, the trace rays won't hit Phantom objects and Matte will knock holes in the resulting alpha).  it's a great way to collect reflections and refractions (with mattes) for later compositing.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...