How to cross fade two objects ?

Jan 19, 2012 at 8:44pm

How to cross fade two objects ?

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

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. –


Jan 19, 2012 at 10:53pm

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

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. –


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…

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. –
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…

Jan 21, 2012 at 8:52am

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


Jan 22, 2012 at 7:43pm

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



You must be logged in to reply to this topic.