tube faillure

florent colautti's icon

hi

2 question ?

- i do a kind of snake used vishnu and shiva to make tail from boids3d point. next i send it on a jit.gl.path to draw it. if i used "line" pathstyle all is ok, but if i used "tube" i have a big disorder ! draw flare up !!! i don't understand why...
if you have a suggested ?

- my second step is to let a shadow of the "snake" movement, like a feedback effect.
i used 2 matrix in view, and change the dim properties to change the "lenght feedback", but when i change value the matrix erase and i can changing it gradually.
how i can do this ?

my goal is to create a smoke draw like a cloud or nubula, a kinking of slime drawing by boid point. i have search to make it with slab object but not good result. but i think he can do better result...
if anyone can help me about the process, it's welcome.

in link an example patch

cheer
0-0

4279.snake.zip
zip
matmat's icon

Salut oranoutan
for your first question,
if you set the dim to "10 2" to "aaa jit.matrix" in your poly, it 'll work...
Even more you use a 5 plane matrix why ? the great thing on jit.gl.path is the object accept 10 plane matrix (position x/y/z, color r/g//b/a, scale x/y, and orient, angle !)

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

mathieu

florent colautti's icon

salut matmat

thanks for your reply, but now i don't have flare up but some flash whose cross over the screen !
i have try some stuff on matrix but nothing good.
for exemple, i join a small video. you can download it : https://dl.dropbox.com/u/18759196/snake.mov

for 5 plane matrix... no reason. run good like this, with gl.mesh on max5... also, it's just one week i have do max6 update... i learn new stuff ;)
and i'm from music... i bring forward in blind in jitter... if you have suggest, it's welcome...

best
0-0

matmat's icon

hi,
may be you can try jit.gl.path in poly...
But i'm not sure " jit.gl.path" is the good object for what you want,
have you tried jit.gl.sketch ?
mathieu

Rob Ramirez's icon

hi oranoutan.
cool patch!

for the "tube" problem, you can either set your @joinstyle attribute to "raw" instead of the default of "angle", or you can change your @interpmode to "linear" (which will also help speed up calculations).

florent colautti's icon

thanks Robert, run good with "raw" attribute.
best