Forums > MaxMSP

[jitter] from .OBJ to matrixout

September 8, 2007 | 4:56 pm

Hi all

I am still focussing on jit.mesh and discovered this:

when importing an roof.obj file:

# WaveFront *.obj file
# safe as roof.obj

g Extrude_NURBS
v 100 35.755325 0
v 0 85.755325 0
v -100 35.755325 0
v 100 35.755325 -20
v 0 85.755325 -20
v -100 35.755325 -20

vt 0 1 0
vt 0.5 1 0
vt 1 1 0
vt 0 0 0
vt 0.5 0 0
vt 1 0 0

f 1/1 2/2 5/5 4/4
f 2/2 3/3 6/6 5/5

in jit.model (with matrixoutput 1 ) you’ll get a matrix of 8 planes
with dimensions 12 X 1
Focussing just on the vertices (first three planes) they are:

1. -0.25 0.1
0. 0.25 0.1
0. 0.25 -0.1
1. -0.25 0.1
0. 0.25 -0.1
1. -0.25 -0.1
0. 0.25 0.1
-1. -0.25 0.1
-1. -0.25 -0.1
0. 0.25 0.1

-1. -0.25 -0.1
0. 0.25 -0.1

Why does jit.model not make it like this ?:

1. -0.25 0.1
0. 0.25 0.1
0. 0.25 -0.1
1. -0.25 -0.1
0. 0.25 0.1
-1. -0.25 0.1
-1. -0.25 -0.1
0. 0.25 -0.1

These give with drawmode quads exact the roof as declared in roof.obj
Regards
DO_Ray

PS still wondering how a connection matrix looks like


September 8, 2007 | 5:27 pm

jit.gl.model @normalize 0

On Sep 8, 2007, at 12:59 PM, D wrote:

> Hi all
>
> I am still focussing on jit.mesh and discovered this:
>
> when importing an roof.obj file:
>
> # WaveFront *.obj file
> # safe as roof.obj
>
> g Extrude_NURBS
> v 100 35.755325 0
> v 0 85.755325 0
> v -100 35.755325 0
> v 100 35.755325 -20
> v 0 85.755325 -20
> v -100 35.755325 -20
>
> vt 0 1 0
> vt 0.5 1 0
> vt 1 1 0
> vt 0 0 0
> vt 0.5 0 0
> vt 1 0 0
>
> f 1/1 2/2 5/5 4/4
> f 2/2 3/3 6/6 5/5
>
>
> in jit.model (with matrixoutput 1 ) you’ll get a matrix of 8 planes
> with dimensions 12 X 1
> Focussing just on the vertices (first three planes) they are:
>
> 1. -0.25 0.1
> 0. 0.25 0.1
> 0. 0.25 -0.1
> 1. -0.25 0.1
> 0. 0.25 -0.1
> 1. -0.25 -0.1
> 0. 0.25 0.1
> -1. -0.25 0.1
> -1. -0.25 -0.1
> 0. 0.25 0.1

> -1. -0.25 -0.1
> 0. 0.25 -0.1
>
>
> Why does jit.model not make it like this ?:
>
>
> 1. -0.25 0.1
> 0. 0.25 0.1
> 0. 0.25 -0.1
> 1. -0.25 -0.1
> 0. 0.25 0.1
> -1. -0.25 0.1
> -1. -0.25 -0.1
> 0. 0.25 -0.1
>
>
> These give with drawmode quads exact the roof as declared in roof.obj
> Regards
> DO_Ray
>
> PS still wondering how a connection matrix looks like

v a d e //

http://www.vade.info
abstrakt.vade.info


September 9, 2007 | 2:34 pm

Nope it is not the answer to the question, it is rather important
because i can’t find the documented answer for myself.

The question is:
howcome jit.model @matrixoutput 1 delivers 12 coordinates while you
can suffice with 8 ?
Normalize 0 or 1 does not differ .

On 8 Sep 2007, at 19:27, vade wrote:

> jit.gl.model @normalize 0
>
>
>
> On Sep 8, 2007, at 12:59 PM, D wrote:
>
>> Hi all
>>
>> I am still focussing on jit.mesh and discovered this:
>>
>> when importing an roof.obj file:
>>
>> # WaveFront *.obj file
>> # safe as roof.obj
>>
>> g Extrude_NURBS
>> v 100 35.755325 0
>> v 0 85.755325 0
>> v -100 35.755325 0
>> v 100 35.755325 -20
>> v 0 85.755325 -20
>> v -100 35.755325 -20
>>
>> vt 0 1 0
>> vt 0.5 1 0
>> vt 1 1 0
>> vt 0 0 0
>> vt 0.5 0 0
>> vt 1 0 0
>>
>> f 1/1 2/2 5/5 4/4
>> f 2/2 3/3 6/6 5/5
>>
>>
>> in jit.model (with matrixoutput 1 ) you’ll get a matrix of 8
>> planes with dimensions 12 X 1
>> Focussing just on the vertices (first three planes) they are:
>>
>> 1. -0.25 0.1
>> 0. 0.25 0.1
>> 0. 0.25 -0.1
>> 1. -0.25 0.1
>> 0. 0.25 -0.1
>> 1. -0.25 -0.1
>> 0. 0.25 0.1
>> -1. -0.25 0.1
>> -1. -0.25 -0.1
>> 0. 0.25 0.1

>> -1. -0.25 -0.1
>> 0. 0.25 -0.1
>>
>>
>> Why does jit.model not make it like this ?:
>>
>>
>> 1. -0.25 0.1
>> 0. 0.25 0.1
>> 0. 0.25 -0.1
>> 1. -0.25 -0.1
>> 0. 0.25 0.1
>> -1. -0.25 0.1
>> -1. -0.25 -0.1
>> 0. 0.25 -0.1
>>
>>
>> These give with drawmode quads exact the roof as declared in roof.obj
>> Regards
>> DO_Ray
>>
>> PS still wondering how a connection matrix looks like
>
> v a d e //
>
> http://www.vade.info
> abstrakt.vade.info
>
>
>


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