Forums > Jitter

shaping the geometry matrix from jit.noise


t
January 29, 2011 | 8:16 pm

Hi,

Rendering 3 planes from jit.noise resluts in a geometry matrix that looks like a cube. What I want to do is change that cube into a cylinder. I am multiplying Z plane with oval (oval is white, surrounding is black) and it doesn’t work. If I scale the Z plane with scalar, scaling works. If I scale Z plane with any matrix that has constant value in all the cells it works too.

In case you decide to check the patch, try different options from yellow umenu. You will see that "oval" option doesn’t work.

Thank you!

– Pasted Max Patch, click to expand. –

January 30, 2011 | 11:42 am

read yair r.´s wise post here and see max example jit.gl.render.cyl

http://cycling74.com/forums/topic.php?id=6085

– Pasted Max Patch, click to expand. –


t
January 30, 2011 | 4:45 pm

Thanks a lot! It seems I’ll have to spend some time on this. But do you may be know why my version is not working? I would like to understand what is going on… Because for instance if I make a plane (xyz; z=constant) and add noise to Z, then I can control the shape of the noise with a mask. The only problem in that case is that i can’t get rid of the plane…


January 30, 2011 | 6:21 pm

Well, I don’t know the exact answer to the problem, but you should take into account that in OpenGL "0" means "position 0". When you filter the z dimension of the jit.noise with the oval shape, the vertices which fall in the black area do not dissapear: they are simply drawn at z position 0.
That’s why you see a plane. Maybe in your example it is difficult to see, as everything is "noisy", I have attached another patch:"black" z values are drawn in the plane.

– Pasted Max Patch, click to expand. –

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