Is there any development or demand for a raytraced version of Z-depth that would take account of alpha? I've hacked around this in the past by comping it with a raw refraction filter, but it's a messy workflow. It would be very useful for post-production DoF effects where you're looking through glass.
Announcement
Collapse
No announcement yet.
Raytraced Z-depth
Collapse
X
-
"affect all channels" (in the shader) does just that.
What sense one such Z depth will make in post, though, is an altogether different matter.Lele
Trouble Stirrer in RnD @ Chaos
----------------------
emanuele.lecchi@chaos.com
Disclaimer:
The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.
-
The use case would be using a 3rd party DoF plugin like Frischluft lenscare
I don't know why I didn't think of checking the refraction channel affect before, but it seems to be doing odd things, the depth info down't seem to correlate with the RGB. the same thing happens when the glass refraction IoR=0 which, as I understand means light rays shouldn't diverge from their original course as they pass through...
Comment
-
I looks perfectly correlated to me, though.
What are you referring to, specifically?Lele
Trouble Stirrer in RnD @ Chaos
----------------------
emanuele.lecchi@chaos.com
Disclaimer:
The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.
Comment
-
Originally posted by ^Lele^ View PostI looks perfectly correlated to me, though.
What are you referring to, specifically?
Comment
-
Does the above make sense? my logic is that the zdepth should obey the alpha, so you should see the cube through the glass in the z-depth pass.
Granted this wouldn't be of any use if you applied Frischluft to the RGB in post, but you could probably get the desired effect by adding the reflection over the top of the effect layer.
Comment
-
I think it's what happens when trying to trace the Z through refractions, though.
If you had to focus in the glass contents (which is around about why we did this, if i get it right), you'd have to see the refraction depth, not the glass' one.
Much like focusing an image in a mirror, no?Lele
Trouble Stirrer in RnD @ Chaos
----------------------
emanuele.lecchi@chaos.com
Disclaimer:
The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.
Comment
-
In the case of a mirror, or reflective surface, could you not set the material's reflection to 'all channels' and refraction to 'color only', and vice versa if you wanted to get the refraction element represented in the z-depth? It seems like an odd mix of the two at the moment. I'll have a further test.
Comment
Comment