Context of what I'm trying to achieve:
I'm trying to reveal a hole in the wall by revealing it with 3D-Animation.
My current approach:
To mask it to the wall I've currently been using the occluder object to give it the camera texture. but animating it doesn't really look that well. My desired effects would be to project current state of the texture to the mesh, so it looks like it's displacing the wall.
I've also tried using the copyFrame method with the renderTarget to get the current frame, but that uses the whole cameraRender as a texture, which doesn't give me the projection as the occluder material does.
Is there any way of getting the current frame from the occluder as a texture. It does seem like that's what the snap-method does. The current API isn't really that clear on what it does. and I haven't been able to get it working properly. Is there anyone who have used it, or are there perhaps more examples on how it's to be used?
Am I maybe looking at the wrong method? Or has anyone had the same challenge as me and tackled it any other way? Would love some suggestions! :)
Please sign in to leave a comment.