Fading a jit.gl.mesh

Matthew Azevedo's icon

I have a jit.gl.mesh object rendering a jit.gl.gridshape sphere and textured with a jit.gl.texture object. I would like to fade the sphere in and out. Does manipulating the mesh or the texture make more sense? I've been trying to fade out the texture with a jit.gl.slab, but all the examples I find are sending the textures processed by slab to a jit.gl.videoplane. I've tried sending the output of slab to another gl.texture and directly to the gl.mesh (as it is in the gl.videoplane examples) and neither seems to work. Help?

Rob Ramirez's icon

here's a patch demonstrating 3 different ways you can fade GL objects:

Max Patch
Copy patch and select New From Clipboard in Max.

Matthew Azevedo's icon

That is great, thank you! I eventually realized that I could apply the texture directly to the gridshape without creating a mesh and then use that alpha channel. The others are helpful too. My catch has been that I'm sending this to the new VR object, and putting a videoplane in the VR field just creates a floating screen in space instead of wrapping the texture around the viewer.