capturing a jit.gradient to or

Apr 23, 2012 at 4:02pm

capturing a jit.gradient to or

Hi guys,

I’ve been trying to send the output of jit.gradient to a plane gridshape or videoplane object, but I’ve had little success. I’ve tried sending the output to a object to be applied to the gridshape, and also sending the output directly to a videoplane, and I’ve also tried using a gl.texture with @capture on the gridshape.

However the thing is I’m not the most knowledgable person when it comes to setting blends and dim and matrix data in jitter, so I may have set the attributes wrong.

If someone could take the time to explain or post an example of how to send a jit.gradeint to either a [ @shape plane] or a [] I would be very grateful.



Apr 23, 2012 at 5:00pm

you need to give the 2nd dim to the gradient as
[jit.gradient 4 char 320 240] and connecting the output straight to the videoplane should work, if not post a patch.

Apr 23, 2012 at 5:05pm

Thanks for the reply carsol,

Adding the 2nd dim doesn’t seem to have changed anything.


– Pasted Max Patch, click to expand. –
Apr 23, 2012 at 5:54pm

ok, remove matrixoutput 1 from videoplane object and you will get the videoplane with the gradient in the scene

if you activate matrixoutput, the videoplane isnt going straight to the rendered scene, instead of this the object outputs a 12 plane matrix with diferent information per plane on his first outlet with vertexs positions, normals, texture coords and more… i guess you dont need this at the moment..

Apr 23, 2012 at 6:11pm

Ah, that was just there from the testing, for some reason it didn’t work straight to the render before…. oh well! thanks carsol!


You must be logged in to reply to this topic.