I’m trying to get an object to disappear as it comes in contact with another object. Imagine a camera looking at a stargate or portal from the side. The object moves into the gate/portal but we don’t see it come out the other side.
I’m thinking Dynamic Paint might hold the answer. There are tons of tuts on how to paint, displace or create waves with dynamic paint, but I can’t find a tutorial that shows how to make the canvas invisible or disappear as the brush comes in contact.
Attached is a simple blend file, if you play the animation you can see Suzanne moving into the floor plane. What I want is, the part of Suzanne that has passed through the floor plane to be invisible to the camera. PortalEntry.blend (532 KB)
Well, that’s one idea. TBH, I haven’t used dynamic paint that much, just fooled around with it a few times, but this is how I think you’d want to go about it… The mesh needs to be uv mapped with a color. The plane/portal would be the brush and would paint a transparent color - no alpha. As the mesh passes thru the plane, the uv map is painted transparent.
2 other ideas -
use a lattice on the object, create shapekeys for the lattice collapsing, make the lattice a child of the object. Then animate the shapekeys as the object passes thru the plane. I’m attaching an example of that, just right arrow thru the animation to see it work. Note that this was a quick and dirty example, only spent a few minutes on it. For a real ‘production’ type environment, I’d use more subdivisions of the lattice, make it fit the object closer, and tweak the animation curves. I think this is the route I would go if the plane has some thickness to it.
My other idea would be to use composting/trick photography. In times before vfx, if you wanted to accomplish this with a film camera, you’d block off half the lense, shoot the footage, then block off the other half of the lense, shoot the footage, and combine them. Today, you have green screen techniques, so you render one side with a green plane covering the other side. Then repeat switching which side is rendered and which side is green, then remove the green in blender’s compositor and overlay the images.
The boolean modifier works really good for that add it to monkey, use a cube as object, do not render cube, use difference, parent cube to the plane.
I saw a old 2.49 dissolve a wine glass tutorial where they added particles to the effect.
Nice, cool effect. It’ll look more impressive as an animation. It’s always interesting to see how many different methods people come up with for a given effect. Blender is probably the king of “more than one way to do things”. The lattice ideas might deform the mesh. Didn’t fully go over Atom’s but I’ll check it out, that guy is sick good. The boolean approach is interesting too, maybe play with that for something else.
The disk that suzanne is dropping through looks a bit odd, but maybe that’s what you wanted. And Suzanne is looking as good as ever!
Neat effect, post the anim in WIP, love to see it.