store dae obj 3d object in jit.matrix

Abao's icon

hi sorry for this too simple question....

anyone can help me with to store an obj or dae object loaded from jit.model to jit.matrix?
i thought that is simple but i just couldn't store it in jit.matrix, anyone knows why?

or it is not a way to store a jit.model matrix?

many thanks

Luke

Rob Ramirez's icon

what have you tried?
post your patch.

Abao's icon

HI here is my patch, actually the second question is more critical to me now, thanks...

1. can't store jit.gl.model in jit.matrix??

2. why triangle mode will cause display error for my 3d objects? only the left inlet of the very first xfade is workable for triangle mode, you can swap those xfade inlets under triangle mode then you will see what I mean by display error.

Many thanks

L

Rob Ramirez's icon
Abao's icon

Ah... sorry, I think it's my file is over 1MB so it didn't uploaded successfully
here it goes again but there's only one dae. file, please load other dae in max example model folder please...

4979.2.DAE
DAE
Abao's icon

Hi Rob

Thanks for the reply post, please just go into the "mesh1" sub patcher and try the xfade there, and yes, i think the problem is each dae doesn't have same amount vertex, how do I fix it?

many thanks

L

Rob Ramirez's icon
Max Patch
Copy patch and select New From Clipboard in Max.

works fine over here.
but yes, they need to have the same number of vertices.

Abao's icon

Hey! thanks for the patch!

but huh? are those mushrooms are in different shape/same vertex or same shape/same vertex?

does the shape matters? if shape doesn't matters, then i'll just try to balance all my models to same number of vertex?

by the way:

do you know how to exchange vertex between 2 models?? so the vertex can "flow" and traveling between 2 gl objects, I tried to do it with "xfade" without success..

Thank you!
L