Hi! thank you so much for the reply! I appreciate it.
Although looking at your graph, this is very similar to how fresnel is being computed.
Sadly, it will still shade the occluded polygons behind.
For now, closest function i can think of is a Ray function from the camera, where it should be able to mark hit pixels facing it.
I’m experimenting with a way to render 3D smoke geometry to look like 2D.
But also want it to dissolve with a hard edge (not soft gradient). You typically would see this on 2d hand drawn VFX like this:
So far, i have a look going that i’m semi-happy with.
So for now, I proceeded to the part where it would fade out.
But, by animating the opacity, it tends to show the surfaces behind it.
Thus, a solution i was thinking of is to first hide the surfaces behind that are actually occluded from the camera view. This way, i could have more or less a cleaner looking dissipation of the 2d smoke.
Rather than changing opacity, it might be an idea to just animate the smoke away ( the puffs become smaller and move away or something ). Then you don’t have this problem.
Is this one puff, or is it multiple puff? You might be able to so something with actor occlusion if the 2nd…
Yes, quite tricky indeed. I might hammer away with this a bit more. Shaders is so much fun (for now lol)
But i’ll also be looking at other options haha
Currently it’s a single mesh as i’m planning to bake out vertex animation for it.
I’ll consider checking on actor occlusion if i do end up separating the puffs.
Thanks for the tip!
Thanks for the link! That was a very interesting thread, i will need to read thru it multiple times in order to absorb the details haha
But so far, it gave me an idea to experiment in the direction of using captures and render targets. Hopefully the approach could help with what i’m trying to achieve. If not, i’ll chunk it to experience