[jitter] Re: Texture displays differently when using matrixoutput on jit.gl.model
Bas van der Graaff
per at soon.com
Fri Apr 4 07:07:55 MDT 2008
- Previous message: [jitter] Re: Texture displays differently when using matrixoutput on jit.gl.model
- Next message: [jitter] Re: jit.matrix help
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Okay, I got a little bit further. Using a separate texture will al least allow the texture to look the same regardless of the matrixoutput attribute. Downside of this approach is that I now need to get the texture file from the .obj file. Also, only one group is drawn, namely the last one to enter jit.gl.mesh. Using a poly~ should solve this, but i think it's a lot of work just to get something like this working. #P window setfont "Sans Serif" 9.; #P window linecount 1; #P newex 160 297 105 196617 jit.unpack 1 @jump 5; #P message 82 144 53 196617 enable \$1; #P message 426 225 42 196617 skin.tif; #P newex 426 248 68 196617 prepend read; #P newex 426 270 154 196617 jit.gl.texture mdl @name mytex; #P button 15 117 15 0; #P newex 15 144 48 196617 loadbang; #P toggle 122 40 15 0; #P message 138 144 121 196617 matrixoutput \$1; #P message 162 225 73 196617 read apple.obj; #P message 99 372 50 196617 reset; #P newex 99 392 155 196617 jit.gl.handle mdl @auto_rotate 1; #P newex 15 225 57 196617 qmetro 20; #P newex 15 272 50 196617 t b erase; #P newex 15 392 80 196617 jit.gl.render mdl; #P newex 15 418 311 196617 jit.window mdl @depthbuffer 1 @rect 614 76 934 316 @floating 0; #P window linecount 2; #P newex 160 336 267 196617 jit.gl.mesh mdl @draw_mode triangles @texture mytex @smooth_shading 1 @lighting_enable 0 @color 1. 1. 1. 1.; #P newex 160 248 263 196617 jit.gl.model mdl @depth_enable 1 @smooth_shading 1 @material_mode 2 @lighting_enable 0 @color 1. 1. 1. 1.; #B color 5; #P connect 6 0 0 0; #P connect 6 0 1 0; #P connect 7 0 6 0; #P connect 10 0 16 0; #P connect 10 0 9 0; #P connect 11 0 5 0; #P connect 11 0 8 0; #P connect 11 0 15 0; #P connect 14 0 13 0; #P connect 15 0 14 0; #P connect 17 0 1 0; #P connect 16 0 1 0; #P connect 0 0 17 0; #P connect 9 0 0 0; #P connect 8 0 0 0; #P connect 4 0 3 0; #P connect 4 1 3 0; #P connect 5 0 4 0; #P connect 12 0 11 0; #P window clipboard copycount 18; -- SmadSteck - http://www.smadsteck.nl Hard- and software for interactive audiovisual sampling
- Previous message: [jitter] Re: Texture displays differently when using matrixoutput on jit.gl.model
- Next message: [jitter] Re: jit.matrix help
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
