Forums > Jitter

jit.gl.text2d @capture bug

September 12, 2008 | 1:16 pm

Hi,

I was trying to capture jit.gl.text2d to texture that has larger dims
than context window.
It seems that there is some strange discrepancy between texture size
and and jit.gl.text2d coordinate system: If the destination texture is
larger than window, text is invisible unless I manually change it’s
position to ‘some value’.
This value seems to be tied to texture size, but I’m not sure.

Attached below is an example patch that demonstrates the problem.

this is on mbp, geforce 8600m gt, os 10.5.4

I was wondering what’s going on, and is anyone else able to reproduce?

best,
nesa

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 271 85 269 196617 text is invisible on this offset;
#P message 255 85 14 196617 0;
#P comment 319 166 121 196617 horiz/vert movement;
#P message 237 63 30 196617 -1.1;
#B color 5;
#P flonum 282 109 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 275 165 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 237 165 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 237 109 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 246 132 34 196617 * -1.;
#P newex 208 186 98 196617 pak position 0. 0. 0.;
#P newex 58 133 109 196617 jit.noise 1 char 80 60;
#P newex 208 272 207 196617 jit.gl.videoplane out @texture lettermonkey;
#P newex 208 222 190 196617 jit.gl.text2d out @capture lettermonkey;
#P newex 208 246 252 196617 jit.gl.texture out @name lettermonkey @dim
720 576;
#B color 5;
#P user jit.pwindow 23 299 322 242 0 1 0 0 1 0;
#X name out;
#P newex 34 106 82 196617 jit.gl.render out;
#P newex 34 79 58 196617 t b b erase;
#P toggle 34 31 15 0;
#P newex 34 50 50 196617 qmetro 5;
#P comment 320 110 144 196617 diagonal movement;
#P comment 270 64 269 196617 text is visible on this offset(for
texture size of 720 576);
#P connect 16 0 14 0;
#P connect 16 0 15 0;
#P connect 13 0 14 0;
#P connect 13 0 12 0;
#P connect 19 0 13 0;
#P connect 17 0 13 0;
#P connect 4 1 10 0;
#P connect 12 0 15 0;
#P connect 15 0 11 2;
#P connect 14 0 11 1;
#P connect 11 0 8 0;
#P connect 4 0 5 0;
#P connect 4 2 5 0;
#P connect 2 0 4 0;
#P connect 3 0 2 0;
#P connect 10 0 8 0;
#P window clipboard copycount 21;


Viewing 1 post (of 1 total)