Scenario
Moving mesh that when it reaches a certain point or collides with a specified thing, it starts disappearing / being masked out, from the collision point to the remaining of the mesh.
If the mesh gets out of the collision zone, the hidden parts re-appear.
For example, in this image, for as long as I move the mesh after the green line, it gets hidden there. In red we already have a part of it hidden:
My broken solution with Opacity Mask
With a Masked Material, by controlling the Opacity Mask, I get strange masking where it doesn’t happen from one point to another, the masks “rotates” around the mesh, as you can see:
The material:
Solution?
- Any way of doing the intended behavior? I was so close with the Opacity Mask.
- Any way of achieving is ok with me: having hidden meshes, post process, materials, C++, etc.
Thanks