Forums > Jitter

gen extrusion problem

October 15, 2012 | 8:19 am

I’m trying to extrude a matrix from a gridshape with gen. The extrusion is working so far but the result are not as excepted.
The image should influence the z axis of the grid shape, but in my example this is not working correctly.. I cant recognize the image anymore. mapping issue?

Thanks for any help..

– Pasted Max Patch, click to expand. –

October 15, 2012 | 8:39 am

hm, i might be completely off topic, but do you know about @matrixoutput 1 (and 2) attributes for jit.gl objects, which allow for export apparently ?


October 16, 2012 | 4:23 pm

yes, I know that. If you look at the patch you will see that I’m using a gridshape with matrixoutput 1.
I’m trying to extrude only a small part of the gridshape. Nobody?


October 16, 2012 | 6:26 pm

hi there!
i think that "you can’t recognize the image" cause you map it onto a sphere.
if you use a plane instead it pretty much works fine.
also
you don’t need lighting and shading options in your source gridshape because you’re using it with @matrixoutput 1
and you don’t need [swiz z] after [in2] inside gen because you only got one plane there.
look at this:

– Pasted Max Patch, click to expand. –

`


October 16, 2012 | 6:40 pm

thanks a lot for the help, but I want to use a sphere not a plane. I want to reduce the video size and extrude
on a sphere. Is that possible?


October 16, 2012 | 8:57 pm

When you extrude a shape, you’re pulling the vertices along their surface normal. For a plane, this is the positive Z direction. For a sphere, it’s the same direction as the vertex position (i.e. for a unit sphere, the position and the normal are exactly the same). For other shapes, like a cube, the extrusion direction would change depending on which face of the cube a particular vertex was on.

Here’s a patch that extrudes a sphere and texture maps it with the video image.

– Pasted Max Patch, click to expand. –

October 16, 2012 | 9:14 pm

wesley, you are gorgeous! thanks so much for that!!


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