Forums > Jitter

gl.render drawto problem

July 11, 2007 | 9:46 pm

I would think I could change the window I’m drawing to with the patch below. What surprises me most is the junk that appears in "ththt," which sometimes includes parts of my menu bar (or other areas on my screen.

Am I missing something? Jit 1.6.3, Intel iMac, 10.4.10

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 112 66 53 196617 t b b b b;
#P button 112 40 15 0;
#P message 214 369 66 196617 drawto blblb;
#P comment 263 339 100 196617 < -- then this;
#P message 198 339 67 196617 drawto ththt;
#P message 13 191 71 196617 lineto 1. 1. 0.;
#P newex 13 216 88 196617 jit.gl.sketch blblb;
#P toggle 126 293 15 0;
#P newex 126 320 63 196617 qmetro 100;
#P newex 126 392 89 196617 jit.gl.render blblb;
#P message 145 111 57 196617 name blblb;
#P user jit.pwindow 144 142 82 62 0 1 0 0 1 0;
#X name blblb;
#P message 232 120 58 196617 name ththt;
#P user jit.pwindow 231 143 82 62 0 1 0 0 1 0;
#X name ththt;
#P comment 129 41 100 196617 < -- click this;
#P connect 2 0 1 0;
#P connect 4 0 3 0;
#P connect 9 0 8 0;
#P connect 10 0 5 0;
#P connect 6 0 5 0;
#P connect 12 0 5 0;
#P connect 7 0 6 0;
#P connect 13 0 14 0;
#P connect 14 3 2 0;
#P connect 14 2 4 0;
#P connect 14 1 7 0;
#P connect 14 0 9 0;
#P window clipboard copycount 15;

mz


July 11, 2007 | 10:49 pm

You arent erasing, you arent telling sketch to change its render
destination.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 201 408 50 196617 t b erase;
#P newex 172 126 53 196617 t b b b b;
#P button 172 100 15 0;
#P message 334 343 66 196617 drawto blblb;
#P comment 392 323 100 196617 < -- then this;
#P message 318 313 67 196617 drawto ththt;
#P message 53 244 71 196617 lineto 1. 1. 0.;
#P newex 53 269 88 196617 jit.gl.sketch blblb;
#P toggle 186 353 15 0;
#P newex 186 380 63 196617 qmetro 100;
#P newex 186 452 89 196617 jit.gl.render blblb;
#P message 205 171 57 196617 name blblb;
#P user jit.pwindow 204 202 82 62 0 1 0 0 1 0;
#X name blblb;
#P message 292 180 58 196617 name ththt;
#P user jit.pwindow 301 200 82 62 0 1 0 0 1 0;
#X name ththt;
#P comment 189 101 100 196617 < -- click this;
#P connect 12 0 8 0;
#P connect 12 0 5 0;
#P connect 10 0 8 0;
#P connect 10 0 5 0;
#P connect 15 0 5 0;
#P connect 6 0 15 0;
#P connect 15 1 5 0;
#P connect 14 0 9 0;
#P connect 14 1 7 0;
#P connect 14 2 4 0;
#P connect 14 3 2 0;
#P connect 13 0 14 0;
#P connect 7 0 6 0;
#P connect 9 0 8 0;
#P connect 4 0 3 0;
#P connect 2 0 1 0;
#P window clipboard copycount 16;


July 12, 2007 | 8:08 am

Quote: vade wrote on Thu, 12 July 2007 00:49
—————————————————-
> You arent erasing, you arent telling sketch to change its render
> destination.

In short, you have to be an OpenGL guru to use Jitter properly ;)

Mattijs


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