XML Feeds

.

[maxmsp] [jitter] from .OBJ to matrixout

vade doktorp at mac.com
Sat Sep 8 11:27:19 MDT 2007


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 <forward and back to the same vertex >
> 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 <forward and back to the same vertex >
> -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
> _______________________________________________
> maxmsp mailing list
> maxmsp at cycling74.com
> http://www.cycling74.com/mailman/listinfo/maxmsp

v a d e //

www.vade.info
abstrakt.vade.info



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.cycling74.com/pipermail/maxmsp/attachments/20070908/c683d607/attachment.htm


More information about the maxmsp mailing list