Depth fading shader

   842   2   0
User Avatar
Member
125 posts
Joined: 4月 2014
Online
Hi I am trying to find a way to make an opacity depth fade for my scene. My output is going to print and I need a way to provide the designers an easy way to fade the deeper parts of the image into a background color they provide.

- A depth AOV is great except it leaves a halo effect from the antialiasing.
- using rayimport (ray:hitdist) on the opacity of my Karma shaders gets close but I don't get a consistent opacity across different objects (see attachment).




Ultimately I would like to be able to avoid post processing an alpha into these images so I think applying a global distance fade seems the best idea. Would anyone have any suggestions for the best approach to this?



thanks
Jeff
Image Not Found

ray_through.png
Edited by jeffMc - 2023年12月15日 19:01:04

Attachments:
ray_through.png (175.2 KB)
H_halo.png (197.3 KB)
depthopacity_shader.png (84.7 KB)

User Avatar
Member
125 posts
Joined: 4月 2014
Online
I am thinking I may need to limit ray refract depth somehow but only on the final image?
User Avatar
Member
8766 posts
Joined: 7月 2007
Offline
You can potentially use deep opacity maps, if you can comp it something that supports them, like Nuke or COPs
Edited by tamte - 2023年12月15日 19:23:53
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links