shaping the geometry matrix from jit.noise

t's icon

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.

Max Patch
Copy patch and select New From Clipboard in Max.

Thank you!

glBeatriz's icon

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

Max Patch
Copy patch and select New From Clipboard in Max.

t's icon

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

glBeatriz's icon

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.

Max Patch
Copy patch and select New From Clipboard in Max.