XML Feeds

.

[jitter] Texture displays differently when using matrixoutput on jit.gl.model

Bas van der Graaff per at soon.com
Tue Apr 1 09:22:41 MDT 2008


Hi Board,

A problem i stumbled across while using jit.gl.model is that the texture looks different when turning matrixoutput on. Looks somewhat like the texture is only rotated or wrapped, but I'm not sure how exactly. Is there a way to either fix this, or make a workaround (do a 2d operation on the texture or texture planes? As I'll be using logos and text it's essential that the texture is displayed correctly.

I've been wanting to add some jit.gl.models to my 3d scenes. The app I've built is a modular effects stacker. I do understand that the matrixoutput of jit.gl.gridshape, jit.gl.nurbs, jit.gl.videoplane is very different from the matrixoutput of jit.gl.model. That's why i don't use the same effects for both of them. But it would be nice to have some effects for the models as well, so that's why i want to use the matrixoutput attribute.

Thanks, Bas.

#P button 15 117 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 15 144 48 196617 loadbang;
#P toggle 124 40 15 0;
#P window setfont "Sans Serif" 14.;
#P message 124 63 121 196622 matrixoutput \$1;
#P window setfont "Sans Serif" 9.;
#P message 124 219 73 196617 read apple.obj;
#P message 255 182 50 196617 reset;
#P window linecount 2;
#P newex 255 202 104 196617 jit.gl.handle mdl @auto_rotate 1;
#P window linecount 1;
#P newex 15 225 57 196617 qmetro 20;
#P newex 15 272 50 196617 t b erase;
#P window linecount 2;
#P newex 124 248 240 196617 jit.gl.model mdl @depth_enable 1 @smooth_shading 1 @material_mode 2 @lighting_enable 1;
#B color 5;
#P window linecount 1;
#P newex 15 314 80 196617 jit.gl.render mdl;
#P newex 15 335 311 196617 jit.window mdl @depthbuffer 1 @rect 614 76 934 316 @floating 0;
#P comment 141 40 125 196617 change and watch texture;
#P connect 11 0 5 0;
#P connect 11 0 8 0;
#P connect 12 0 11 0;
#P connect 7 0 6 0;
#P connect 9 0 3 0;
#P connect 8 0 3 0;
#P fasten 6 0 3 0 260 243 129 243;
#P connect 10 0 9 0;
#P connect 4 1 2 0;
#P connect 4 0 2 0;
#P connect 3 0 2 0;
#P connect 5 0 4 0;
#P window clipboard copycount 13;


--
SmadSteck - http://www.smadsteck.nl
Hard- and software for interactive audiovisual sampling


More information about the jitter mailing list