How to cross fade two jit.gl objects ?

Jan 19, 2012 at 8:44pm

How to cross fade two jit.gl objects ?

I have two working sets of gl 3d objects … I want to be able to cross fade two or more sets / objects.

#61343
Jan 19, 2012 at 9:07pm

I assume when you say gl 3d objects you mean gridshape/sketch/mesh etc as opposed to just textures on a videoplane? If so, then try the following

– Pasted Max Patch, click to expand. –

DiGiTaLFX

#221141
Jan 19, 2012 at 10:53pm

This is great ! But … Now how to I grab / adjust atributes of each of the two shapes ?

#221142
Jan 20, 2012 at 3:27pm

It’s just working how the patch would normally work, except rather than rendering the shapes to the window, they get rendered to a texture and that is then shown on a videoplane. But it’s all happening live. So just deal with the shapes as you normally would e.g.

– Pasted Max Patch, click to expand. –

DiGiTaLFX

#221143
Jan 20, 2012 at 5:29pm

Here is the patch I am trying to x fade … The two sections (one on top and on bottom) are the two separate graphics I want to x fade… But cant figure it out … And when I attempt to use your method I get errors…

#221144
Jan 20, 2012 at 7:33pm

you bind the gl objects for each “scene” to a separate gl.node object (simply by connecting the middle outlet of the gl.node to the gl object you want to bind). set @capture 1 on the gl.node, to output the “scene” as a texture, and then blend the textures as demonstrated in the previous patch.

– Pasted Max Patch, click to expand. –
#221145
Jan 20, 2012 at 11:41pm

Thanks To both of you ! The only LAST issue I am having is that in my original patch… I am using the attri “Erase Color” to “blur” or “multiply” the lines that are moving … For some reason, after Robert created the x fade from my original patch, the blurring went away…

#221146
Jan 21, 2012 at 8:52am

I believe the easiest way to do that is to add a jit.gl.camera to the node and set erase_color on the camera object. However maybe Robert knows of a better way?

DiGiTaLFX

#221147
Jan 22, 2012 at 7:43pm

there is a jit.gl.pix example patch that shows how to do this.
simply set @erase_color attribute of your jit.gl.node to 0 0 0 0, and place the jit.gl.pix objects found in the following patch, in between your jit.gl.node, and your xfade’r:

Max6/examples/jitter-examples/gen/smear.o.vision.maxpat

#221148

You must be logged in to reply to this topic.