Forums > Jitter

How to cross fade two objects ?

Jan 19 2012 | 8:44 pm

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 | 9:07 pm

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 | 10:53 pm

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

Jan 20 2012 | 3:27 pm

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 | 5:29 pm

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 | 7:33 pm

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 | 11:41 pm

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 | 8:52 am

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 | 7:43 pm

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:


Viewing 9 posts - 1 through 9 (of 9 total)

Forums > Jitter