software rendering on win

Nov 1, 2006 at 2:48pm

software rendering on win

Hi List,

I get these errors trying to render into a matrix with the simple patch
below on a pc (winxp pro sp2, AMD Athlon 3500, 2*NVIDIA GeForce60600GT
in SLI Mode)
I get the same errors trying to render into a matrix using the
jit.gl.render help patch

any hints what could be wrong?

Falk

jit.gl.texture: setting compare mode.: GL Error: Invalid enumeration
jit.gl.texture: setting compare func.: GL Error: Invalid enumeration
jit.gl.texture: setting texture mode.: GL Error: Invalid enumeration

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 214 124 48 196617 loadbang;
#P message 216 171 138 196617 importmovie chilis.jpg , bang;
#P button 56 70 15 0;
#P user jit.pwindow 52 236 82 62 0 1 0 0 1 0;
#P newex 215 196 55 196617 jit.matrix;
#P newex 55 100 58 196617 t b b erase;
#P newex 91 162 86 196617 jit.gl.render test;
#P newex 54 201 157 196617 jit.matrix test 4 char 320 240;
#P newex 215 235 103 196617 jit.gl.videoplane test;
#P connect 8 0 7 0;
#P connect 7 0 4 0;
#P connect 4 0 0 0;
#P connect 3 1 2 0;
#P connect 3 2 2 0;
#P connect 6 0 3 0;
#P connect 3 0 1 0;
#P connect 1 0 5 0;
#P window clipboard copycount 9;

#28472
Nov 1, 2006 at 3:18pm

i have that text in max window too, but the rendering works: i see chillies
in the pwindow…

best,
nesa

#87446
Nov 1, 2006 at 6:13pm

#87447
Nov 1, 2006 at 7:22pm

hello falk,

i’ve just checked your older patch(and the one in your previous post), and
it seems that the problem is probably in quicktime.

if you send 4 plane jit.noise as a texture to videoplane, you’ll see that
alpha is normally read back from gpu.

luckily, there is a workaround for this: you can convert your .png to say
PICT in photoshop, in the following way:
load .png file, with layer transparency,
create alpha channel from layer mask:
a) selection->load selection, for ‘channel’ select Layer 0 Transparency
b) selection->save selection, ‘channel’ should be ‘new’, type the name:
Alpha 1

now, save the file as pict or tiff file, make sure that the ‘alpha channels’
is checked in ‘save as’ dialog.

i hope your game will have multiplayer option:)

best,
nesa

#87448
Nov 1, 2006 at 7:40pm

#87449
Nov 1, 2006 at 8:16pm

#87450
Nov 1, 2006 at 8:47pm

yes, and it works: all pwindows are showing noise.

what about this kind of readback:

#P window setfont Geneva 9.;
#P window linecount 1;
#P newex 386 340 311 9961481 jit.gl.texture showme @name readback @dim 320
240 @automatic 0;
#P objectname jit.gl.texture;
#P user jit.pwindow 157 523 82 62 0 1 0 0 1 0;
#P objectname jit.pwindow[8];
#P user jit.pwindow 247 523 82 62 0 1 0 0 1 0;
#P objectname jit.pwindow[7];
#P user jit.pwindow 427 523 82 62 0 1 0 0 1 0;
#P objectname jit.pwindow[6];
#P user jit.pwindow 286 204 82 62 0 1 0 0 1 0;
#P objectname jit.pwindow[4];
#P user jit.pwindow 541 204 82 62 0 1 0 0 1 0;
#P objectname jit.pwindow[3];
#P user jit.pwindow 456 204 82 62 0 1 0 0 1 0;
#P objectname jit.pwindow[2];
#P window setfont “Sans Serif” 9.;
#P newex 287 142 66 9109513 jit.unpack;
#P objectname jit.matrix[5];
#P user jit.pwindow 371 204 82 62 0 1 0 0 1 0;
#P objectname jit.pwindow[1];
#P newex 306 59 105 9109513 jit.noise 4 char 320 240;
#P objectname jit.matrix[4];
#P newex 386 417 66 9109513 jit.unpack;
#P objectname jit.matrix[2];
#P user jit.pwindow 337 523 82 62 0 1 0 0 1 0;
#P objectname jit.pwindow[5];
#P flonum 107 120 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname flonum[1];
#P flonum 71 120 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname flonum[2];
#P flonum 35 118 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname flonum[6];
#P newex 35 151 84 9109513 pak lookat 0. 0. 0.;
#P newex 386 391 126 9109513 jit.matrix pixi 4 char 320 240;
#P objectname jit.matrix[3];
#P button 306 36 15 0;
#P newex 386 363 82 9109513 jit.gl.slab showme;
#P objectname jit.matrix;
#P flonum 216 118 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname flonum[5];
#P flonum 180 118 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname flonum[4];
#P flonum 144 118 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname flonum[3];
#P newex 144 149 95 9109513 pak camera 0. 0. 0.;
#P newex 306 115 318 9109513 jit.gl.videoplane showme @scale 1.100005
0.82521 0.82521 @automatic 0;
#P objectname jit.gl.videoplane;
#P number 19 54 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname number;
#P toggle 1 55 15 0;
#P objectname toggle;
#P newex 2 216 175 9109513 jit.gl.render showme @capture readback;
#P objectname jit.gl.render;
#N vpatcher 548 420 1034 775;
#P window setfont “Sans Serif” 9.;
#P window linecount 0;
#P newex 126 88 50 9109513 route ms;
#P window linecount 2;
#P message 230 137 87 9109513 ; jitter cursor $1;
#P window linecount 1;
#P newex 227 110 31 9109513 == 0;
#P newex 113 33 48 9109513 loadbang;
#P newex 113 56 80 9109513 patcherargs ms;
#P outlet 81 209 15 0;
#P newex 117 175 218 9109513 jit.window showme @fsmenubar 0 @depthbuffer 0;
#P toggle 199 123 15 0;
#P newex 160 119 35 9109513 sel 27;
#P newex 115 119 40 9109513 key;
#P newex 115 141 91 9109513 prepend fullscreen;
#P newex 45 124 57 9109513 qmetro 40;
#P newex 45 165 66 9109513 t b b b erase;
#P inlet 45 89 15 0;
#P inlet 92 90 15 0;
#P outlet 45 209 15 0;
#P outlet 63 209 15 0;
#P connect 3 0 5 0;
#P connect 5 0 4 0;
#P connect 4 0 1 0;
#P connect 4 3 1 0;
#P connect 4 1 0 0;
#P connect 4 2 11 0;
#P fasten 16 0 5 1 131 110 97 110;
#P connect 2 0 5 1;
#P connect 13 0 12 0;
#P fasten 9 0 6 0 204 139 120 139;
#P connect 6 0 10 0;
#P fasten 12 1 16 0 188 78 131 78;
#P fasten 7 0 8 0 120 138 157 138 157 117 165 117;
#P fasten 8 0 9 0 165 137 196 137 196 117 204 117;
#P fasten 9 0 14 0 204 142 217 142 217 104 232 104;
#P connect 14 0 15 0;
#P pop;
#P newobj 1 79 54 9109513 p @ms 40;
#P newex 146 239 114 9109513 autopattr @autoname 1;
#X prestore flonum[1] 1 0 0.01;
#X prestore flonum[2] 1 0 -0.41;
#X prestore flonum[3] 1 0 0.;
#X prestore flonum[4] 1 0 -0.89;
#X prestore flonum[5] 1 0 0.36;
#X prestore flonum[6] 1 0 0.;
#X prestore number 1 0 40;
#X prestore toggle 1 0 1;
#P objectname u908000169;
#P connect 3 0 1 0;
#P fasten 4 0 1 1 24 73 50 73;
#P fasten 14 0 13 1 40 143 64 143;
#P fasten 15 0 13 2 76 143 88 143;
#P fasten 16 0 13 3 112 143 112 143;
#P fasten 18 0 27 0 391 480 163 480;
#P fasten 7 0 6 1 149 141 177 141;
#P fasten 8 0 6 2 185 141 205 141;
#P fasten 9 0 6 3 221 141 233 141;
#P fasten 18 1 26 0 405 480 253 480;
#P fasten 21 0 24 0 292 185 292 185;
#P connect 11 0 19 0;
#P connect 19 0 5 0;
#P fasten 19 0 21 0 311 103 292 103;
#P fasten 1 2 5 0 50 103 311 103;
#P fasten 18 2 17 0 419 480 343 480;
#P fasten 21 1 20 0 306 185 377 185;
#P connect 18 3 25 0;
#P fasten 21 2 22 0 320 185 462 185;
#P fasten 21 3 23 0 334 185 547 185;
#P fasten 13 0 2 0 40 193 7 193;
#P connect 1 0 2 0;
#P fasten 6 0 2 0 149 190 7 190;
#P connect 12 0 18 0;
#P connect 10 0 12 0;
#P connect 28 0 10 0;
#P fasten 2 0 28 0 7 287 391 287;
#P window clipboard copycount 29;

#87451
Nov 2, 2006 at 12:05am

Hi Falk,
The errors being printed are from the ARB_shadow OpenGL extension that
started with OpenGL 1.3
(http://oss.sgi.com/projects/ogl-sample/registry/ARB/shadow.txt). The
printing of errors to the max window has been addressed from the next
version of jitter if your rendered doesn’t support this extension,
which it seems that your software renderer doesn’t.

thanks,
wes

On 11/1/06, Falk Grieffenhagen wrote:
>
> Hi List,
>
> I get these errors trying to render into a matrix with the simple patch
> below on a pc (winxp pro sp2, AMD Athlon 3500, 2*NVIDIA GeForce60600GT
> in SLI Mode)
> I get the same errors trying to render into a matrix using the
> jit.gl.render help patch
>
> any hints what could be wrong?
>
> Falk
>
>
> jit.gl.texture: setting compare mode.: GL Error: Invalid enumeration
> jit.gl.texture: setting compare func.: GL Error: Invalid enumeration
> jit.gl.texture: setting texture mode.: GL Error: Invalid enumeration
>
> #P window setfont “Sans Serif” 9.;
> #P window linecount 1;
> #P newex 214 124 48 196617 loadbang;
> #P message 216 171 138 196617 importmovie chilis.jpg , bang;
> #P button 56 70 15 0;
> #P user jit.pwindow 52 236 82 62 0 1 0 0 1 0;
> #P newex 215 196 55 196617 jit.matrix;
> #P newex 55 100 58 196617 t b b erase;
> #P newex 91 162 86 196617 jit.gl.render test;
> #P newex 54 201 157 196617 jit.matrix test 4 char 320 240;
> #P newex 215 235 103 196617 jit.gl.videoplane test;
> #P connect 8 0 7 0;
> #P connect 7 0 4 0;
> #P connect 4 0 0 0;
> #P connect 3 1 2 0;
> #P connect 3 2 2 0;
> #P connect 6 0 3 0;
> #P connect 3 0 1 0;
> #P connect 1 0 5 0;
> #P window clipboard copycount 9;
>
>
>
>
>

#87452
Nov 3, 2006 at 7:14pm

#87453

You must be logged in to reply to this topic.