Forums > Jitter

[bugreport] texture & fsaa

March 29, 2006 | 10:52 am

The following patch is from the recent "texture and blending" thread. When
everything is setup and working, I noticed that once I set "fsaa 0"->[
jit.gl.render] there is no way to get it to work anymore. I keep getting the
following error:

"jit.gl.texture setting subteximage during submission.: GL Error: Invalid
operation"

steps to reproduce:
- load the texture and hit all messages until you see a texture on the text.
- send fsaa 0

This behavior is the same the other way around. starting at fsaa 0 and
trying to switch to 1.

sys: windows, jit 1.5.3, max 4.5.7 nvidia 6800

T_

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 338 444 50 9109513 fsaa 0;
#P message 283 445 50 9109513 fsaa 1;
#P message 261 204 63 9109513 text aaa;
#P window linecount 2;
#P newex 241 229 228 9109513 jit.gl.text3d output @blend_enable 1 @color 1.
1. 1. 1. @scale 0.2 0.2 @automatic 0 @position -0.5 0. 0.;
#P window linecount 1;
#P newex 157 172 23 9109513 t b;
#B color 3;
#P comment 367 96 169 9109513 4) display rendered scene in window;
#P comment 367 78 125 9109513 3) render gridshape;
#B color 11;
#P comment 311 22 92 9109513 render sequence:;
#P comment 367 44 125 9109513 1) erase previous frame;
#B color 7;
#P comment 367 61 120 9109513 2) render text objects;
#B color 3;
#P comment 75 40 100 9109513 2) send a bang;
#P newex 58 390 64 9109513 t b b b erase;
#P toggle 58 171 15 0;
#P newex 58 353 57 9109513 qmetro 40;
#P newex 283 485 271 9109513 jit.window output @depthbuffer 1 @fsaa 1 @size
640 480;
#P newex 58 446 209 9109513 jit.gl.render output @erase_color 0. 0. 0. 1.;
#P window linecount 2;
#P newex 157 313 346 9109513 jit.gl.gridshape output @shape plane
@blend_enable 1 @texture typo @tex_map 1 @color 1. 1. 1. 1. @dim 1 1
@depth_enable 0 @blend_mode 2 4 @automatic 0;
#B color 5;
#P window linecount 1;
#P message 43 21 30 9109513 read;
#P window setfont "Fixedwidth Serif" 10.;
#P flonum 294 357 49 10 0 0 0 141 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont "Sans Serif" 9.;
#P newex 178 379 129 9109513 pak tex_plane_s 1. 0. 0. 0.;
#P message 168 245 68 9109513 text test123;
#P window linecount 2;
#P newex 157 266 234 9109513 jit.gl.text3d output @blend_enable 1 @color 1.
1. 1. 1. @scale 0.2 0.2 @automatic 0;
#P button 58 39 15 0;
#P window linecount 1;
#P newex 58 101 217 9109513 jit.matrix 4 char 256 256 @planemap 1 2 2 2;
#P newex 58 123 188 9109513 jit.gl.texture text @name typo @flip -1;
#P button 153 82 15 0;
#P newex 58 63 105 9109513 jit.qt.movie 128 128;
#P comment 75 22 100 9109513 1) read a texture;
#P connect 9 0 8 4;
#P connect 23 0 6 0;
#P lcolor 4;
#P connect 23 0 24 0;
#P lcolor 4;
#P connect 25 0 24 0;
#P connect 8 0 11 0;
#P fasten 16 1 11 0 81 423 153 423 153 307 162 307;
#P lcolor 12;
#P connect 7 0 6 0;
#P fasten 16 2 23 0 99 416 141 416 141 166 162 166;
#P lcolor 4;
#P connect 1 1 2 0;
#P connect 26 0 13 0;
#P connect 27 0 13 0;
#P fasten 16 3 12 0 117 440 63 440;
#P lcolor 8;
#P connect 16 0 12 0;
#P connect 14 0 16 0;
#P connect 15 0 14 0;
#P connect 4 0 3 0;
#P connect 1 0 4 0;
#P connect 2 0 4 0;
#P connect 5 0 1 0;
#P connect 10 0 1 0;
#P window clipboard copycount 28;


March 29, 2006 | 1:47 pm

Reproducible here, but what I’ve just noticed is that jit.gl.texture had
other render context than jit.gl.render. if they are the same, there’s no
problem.

One workaround for previous situation is to force ‘texture rebuilding’, by,
for instance, changing dims, or some similar hack:

#P window setfont Geneva 9.;
#P window linecount 1;
#P message 315 133 111 9830409 drawto somewhereelse;
#P message 315 151 41 9830409 dim 1 1;
#P window setfont "Sans Serif" 9.;
#P message 338 444 50 9109513 fsaa 0;
#P message 283 445 50 9109513 fsaa 1;
#P message 261 204 63 9109513 text aaa;
#P window linecount 2;
#P newex 241 229 228 9109513 jit.gl.text3d output @blend_enable 1 @color 1.
1. 1. 1. @scale 0.2 0.2 @automatic 0 @position -0.5 0. 0.;
#P window linecount 1;
#P newex 157 172 23 9109513 t b;
#B color 3;
#P comment 367 96 169 9109513 4) display rendered scene in window;
#P comment 367 78 125 9109513 3) render gridshape;
#B color 11;
#P comment 311 22 92 9109513 render sequence:;
#P comment 367 44 125 9109513 1) erase previous frame;
#B color 7;
#P comment 367 61 120 9109513 2) render text objects;
#B color 3;
#P comment 75 40 100 9109513 2) send a bang;
#P newex 58 390 64 9109513 t b b b erase;
#P toggle 58 171 15 0;
#P newex 58 353 57 9109513 qmetro 40;
#P newex 283 485 271 9109513 jit.window output @depthbuffer 1 @fsaa 1 @size
640 480;
#P newex 58 446 209 9109513 jit.gl.render output @erase_color 0. 0. 0. 1.;
#P window linecount 2;
#P newex 157 313 346 9109513 jit.gl.gridshape output @shape plane
@blend_enable 1 @texture typo @tex_map 1 @color 1. 1. 1. 1. @dim 1 1
@depth_enable 0 @blend_mode 2 4 @automatic 0;
#B color 5;
#P window linecount 1;
#P message 43 21 30 9109513 read;
#P window setfont "Fixedwidth Serif" 10.;
#P flonum 294 357 49 10 0 0 0 141 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont "Sans Serif" 9.;
#P newex 178 379 129 9109513 pak tex_plane_s 1. 0. 0. 0.;
#P message 168 245 68 9109513 text test123;
#P window linecount 2;
#P newex 157 266 234 9109513 jit.gl.text3d output @blend_enable 1 @color 1.
1. 1. 1. @scale 0.2 0.2 @automatic 0;
#P button 58 39 15 0;
#P window linecount 1;
#P newex 58 101 217 9109513 jit.matrix 4 char 256 256 @planemap 1 2 2 2;
#P newex 58 123 179 9109513 jit.gl.texture output @name typo @flip -1;
#P button 153 82 15 0;
#P newex 58 63 105 9109513 jit.qt.movie 128 128;
#P comment 75 22 100 9109513 1) read a texture;
#P connect 29 0 3 0;
#P connect 4 0 3 0;
#P connect 28 0 3 0;
#P connect 10 0 1 0;
#P connect 5 0 1 0;
#P connect 2 0 4 0;
#P connect 1 0 4 0;
#P connect 15 0 14 0;
#P connect 14 0 16 0;
#P connect 16 0 12 0;
#P fasten 16 3 12 0 117 440 63 440;
#P lcolor 8;
#P connect 27 0 13 0;
#P connect 26 0 13 0;
#P connect 1 1 2 0;
#P fasten 16 2 23 0 99 416 141 416 141 166 162 166;
#P lcolor 4;
#P connect 7 0 6 0;
#P fasten 16 1 11 0 81 423 153 423 153 307 162 307;
#P lcolor 12;
#P connect 8 0 11 0;
#P connect 25 0 24 0;
#P connect 23 0 24 0;
#P lcolor 4;
#P connect 23 0 6 0;
#P lcolor 4;
#P connect 9 0 8 4;
#P window clipboard copycount 30;


March 29, 2006 | 6:21 pm

Thanks I overlooked that. This makes it even less of an issue. At least
now I know where to look when the error turns up.

best, T_


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