Render transmissive object transparency?

   Views 771   Replies 8   Subscribers 2
User Avatar
Member
365 posts
Joined: Nov. 2015
Offline
how to render an object with transmissive materials and get the alpha to respect the transparency in karma XPU?

by default the transmissive areas just renders black!
hou.f*ckatdskmaya().forever()
User Avatar
Member
8127 posts
Joined: Sept. 2011
Offline
I think you can do this with the unlit surface material
User Avatar
Member
9129 posts
Joined: July 2007
Offline
I assume you should be able to use background B event in LPE
You obviously not get the refraction information but you should get the background contribution for the chosen lightpaths
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
365 posts
Joined: Nov. 2015
Offline
tamte
I assume you should be able to use background B event in LPE
You obviously not get the refraction information but you should get the background contribution for the chosen lightpaths

Hello @tamte, Thanks for this but don't quite understand how to set this up.

I've added two images here, the one with black shows what I get If I just render the object with nothing in the background and the one with the white bg and white showing in transparent areas is me putting a grid object behind it it the render.

But I want to be able to render with nothing behind it and get the transparent areas instead of black to use this image on a website.

I've also added a hip file if you have the time to show how to set this up.

Thanks much!

Attachments:
nothing_in_bg.png (2.7 MB)
with_plane_in_BG.png (2.0 MB)
transparent_BG_help.hiplc (1.2 MB)

hou.f*ckatdskmaya().forever()
User Avatar
Member
9129 posts
Joined: July 2007
Offline
here is an example
1. added transmission_bg_mask AOV using LPE: CT.*B
2. combined it with Alpha in a slapcomp over custom BG

display slapcomp in the viewport to see the result
Edited by tamte - April 21, 2025 20:36:33

Attachments:
transparent_BG_help_mod.hipnc (1.2 MB)

Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
365 posts
Joined: Nov. 2015
Offline
tamte
here is an example
1. added transmission_bg_mask AOV using LPE: CT.*B
2. combined it with Alpha in a slapcomp over custom BG

display slapcomp in the viewport to see the result

Thanks so much for this @tamte!!!
hou.f*ckatdskmaya().forever()
User Avatar
Member
2 posts
Joined: July 2019
Offline
tamte
here is an example
1. added transmission_bg_mask AOV using LPE: CT.*B
2. combined it with Alpha in a slapcomp over custom BG

display slapcomp in the viewport to see the result
Hello, where can I get some more information regarding the LPE tags that you've used (CT.*B)?
I've been trying to find this many times but got nothing.
Thx!
User Avatar
Member
9129 posts
Joined: July 2007
Offline
razCHS
Hello, where can I get some more information regarding the LPE tags that you've used (CT.*B)?
its not the tag itself, but LPE expression on Render Var
https://www.sidefx.com/docs/houdini/render/lpe.html [www.sidefx.com]
Edited by tamte - April 24, 2025 09:38:08
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
2 posts
Joined: July 2019
Offline
tamte
razCHS
Hello, where can I get some more information regarding the LPE tags that you've used (CT.*B)?
its not the tag itself, but LPE expression on Render Var
https://www.sidefx.com/docs/houdini/render/lpe.html [www.sidefx.com]
Never thought searching under Mantra chapters, always looked for it in Solaris or Karma.
Thank you!
  • Quick Links