[jitter] opengl problems
Garrett Lynch
lists at asquare.org
Sun Nov 4 14:00:46 MST 2007
- Previous message: [jitter] Re: Efficient way to display a mix of video, image and 3D
- Next message: [jitter] Texture 3D buffer to videoplane
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
hello attempting to do something with opengl and having a few issues. My patch (below) will not display my primative shapes when i lauch the patch unless I click on reset first, can't understand why? Second problem is I can't figure out how to move shapes, do I use moveto x y z? and where? It works for simple shapes but can't seem to get it to work with the gl shapes. Any help much appreciated. a+ gar max v2; #N vpatcher 434 84 1435 844; #P origin 15 -56; #P window setfont "Sans Serif" 9.; #P window linecount 1; #P newex 243 449 48 196617 loadbang; #P message 154 200 308 196617 glcolor 0. 1. 0. 0.5 \, glblendfunc 1 7 \, moveto 0. 0. -0.6 \, circle 1.2; #P message 164 168 221 196617 glcolor 1. 0. 0. 1. \, moveto 0. 0. -0.5 \, circle 1.; #P message 50 445 32 196617 reset; #P newex 50 465 159 196617 jit.gl.handle visualiser @radius 1; #P message 32 52 14 196617 1; #P newex 528 57 48 196617 loadbang; #P newex 591 35 280 196617 jit.window visualiser @depthbuffer 1 @rect 10 50 660 530; #P newex 528 101 43 196617 jit.qball; #P newex 528 80 55 196617 metro 20; #P newex 528 122 55 196617 t b erase b; #N vpatcher 273 403 598 811; #P origin -17 -10; #P button 115 26 15 0; #P window setfont "Sans Serif" 9.; #P window linecount 0; #P newex 115 47 45 196617 loadbang; #P comment 72 26 42 196617 Trigger; #P window linecount 2; #P comment 118 334 62 196617 Erase_color to jit.render; #P window setfont "Gill Sans" 10.; #P window linecount 1; #P comment 233 110 29 278003722 Alpha; #P comment 211 110 13 278003722 B; #P comment 174 110 13 278003722 G; #P comment 137 110 13 278003722 R; #P window linecount 2; #P comment 51 194 62 278003722 Background erase colour; #P window setfont "Sans Serif" 9.; #P window linecount 1; #P newex 213 171 49 196617 * 255.; #P newex 164 171 48 196617 * 255.; #P newex 115 171 48 196617 * 255.; #P user panel 187 194 75 40; #X brgb 0 0 0; #X frgb 0 0 0; #X border 1; #X rounded 0; #X shadow 0; #X done; #P message 115 124 35 196617 0.; #P message 152 124 35 196617 0.; #P window setfont "Gill Sans" 10.; #P comment 32 125 82 278003722 Preset:: dark blue; #P window setfont "Sans Serif" 9.; #P message 226 124 36 196617 1.; #P message 189 124 35 196617 0.; #P flonum 226 143 36 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 189 143 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 152 143 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 115 143 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 115 244 147 196617 pak erase_color 0. 0. 0. 0.; #P outlet 184 339 15 0; #P newex 114 214 68 196617 prepend brgb; #P newex 114 194 70 196617 pak list 0 0 0; #P user panel 14 316 283 62; #X brgb 255 255 255; #X frgb 255 0 0; #X border 2; #X rounded 0; #X shadow 0; #X done; #P connect 1 0 2 0; #P connect 26 0 25 0; #P connect 25 0 13 0; #P connect 13 0 5 0; #P connect 5 0 15 0; #P fasten 15 0 1 1 120 190 139 190; #P fasten 5 0 4 1 120 166 264 166 264 236 154 236; #P fasten 25 0 12 0 120 83 157 83; #P connect 12 0 6 0; #P fasten 16 0 1 2 169 190 159 190; #P fasten 6 0 16 0 157 169 169 169; #P fasten 17 0 1 3 218 190 179 190; #P fasten 6 0 4 2 157 164 266 164 266 238 188 238; #P fasten 4 0 3 0 120 291 189 291; #P fasten 2 0 14 0 119 233 185 233 185 192 192 192; #P fasten 25 0 9 0 120 83 194 83; #P connect 9 0 7 0; #P fasten 7 0 17 0 194 169 218 169; #P fasten 7 0 4 3 194 162 268 162 268 240 222 240; #P fasten 25 0 10 0 120 83 231 83; #P connect 10 0 8 0; #P fasten 8 0 4 4 231 160 270 160 270 242 256 242; #P pop; #P newobj 593 131 71 196617 p erasecolour; #P newex 547 153 193 196617 jit.gl.render visualiser @camera 0. 0. 4.; #P number 247 32 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P toggle 202 32 15 0; #P newex 202 58 55 196617 metro 20; #N counter 1 1 360; #X flags 0 0; #P newobj 201 81 83 196617 counter 1 1 360; #B color 5; #P window setfont "Fixedwidth Serif" 10.; #P flonum 33 76 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P window setfont "Sans Serif" 9.; #P user ubumenu 285 109 68 196617 0 1 1 0; #X add points; #X add lines; #X add line_strip; #X add line_loop; #X add triangles; #X add tri_strip; #X add tri_fan; #X add quads; #X add quad_strip; #X add polygon; #X add tri_grid; #X prefix_set 0 0 <none> 0; #P window setfont "Fixedwidth Serif" 10.; #P flonum 200 107 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 160 108 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 121 108 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 63 108 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 19 109 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 37 137 160 1441802 pak 0. 0. 0. 0. 0. symbol; #P window linecount 17; #P message 54 224 361 1441802 glmatrixmode modelview \, glscale \$1 \$2 \, glrotate \$3 1 0 0 \, glrotate \$4 0 1 0 \, glrotate \$5 0 0 1 \, glbegin \$6 \, glcolor 1 0 0 0.1 \, glvertex 0. 0.47 \, glcolor 0 1 0 0.5 \, glvertex 0.38 0.28 \, glcolor 0 0 1 0.5 \, glvertex 0.47 -0.11 \, glcolor 1 0 0 0.1 \, glvertex 0.38 0.28 \, glcolor 0 1 0 0.5 \, glvertex 0.47 -0.11 \, glcolor 0 0 1 0.5 \, glvertex 0.21 -0.41 \, glcolor 1 0 0 0.5 \, glvertex 0.47 -0.11 \, glcolor 0 1 0 0.5 \, glvertex 0.21 -0.41 \, glcolor 0 0 1 0.5 \, glvertex -0.21 -0.41 \, glcolor 1 0 0 0.5 \, glvertex 0.21 -0.41 \, glcolor 0 1 0 0.5 \, glvertex -0.21 -0.41 \, glcolor 0 0 1 0.5 \, glvertex -0.47 -0.11 \, glcolor 1 0 0 0.5 \, glvertex -0.21 -0.41 \, glcolor 0 1 0 0.5 \, glvertex -0.47 -0.11 \, glcolor 0 0 1 0.5 \, glvertex -0.38 0.28 \, glcolor 1 0 0 0.5 \, glvertex -0.47 -0.11 \, glcolor 0 1 0 0.5 \, glvertex -0.38 0.28 \, glcolor 0 0 1 0.5 \, glvertex 0. 0.47 \, glcolor 1 0 0 0.5 \, glvertex -0.38 0.28 \,! glcolor 0 1 0 0.5 \, glvertex 0. 0.47 \, glcolor 0 0 1 0.5 \, glvertex 0.38 0.28 \, glend; #P window setfont "Sans Serif" 9.; #P window linecount 1; #P message 234 480 34 196617 reset; #P window linecount 2; #P newex 144 512 258 196617 jit.gl.sketch visualiser @blend_enable 1 @depth_enable 1 @smooth_shading 1 @lighting_enable 0; #B color 5; #P connect 10 0 4 0; #P connect 22 0 10 0; #P connect 4 0 3 0; #P connect 24 0 23 0; #P connect 3 0 2 0; #P connect 10 0 5 0; #P connect 5 0 3 1; #P connect 6 0 3 2; #P connect 7 0 3 3; #P connect 23 0 0 0; #P connect 1 0 0 0; #P connect 26 0 0 0; #P connect 2 0 0 0; #P connect 8 0 3 4; #P connect 9 1 3 5; #P connect 11 0 8 0; #P connect 12 0 11 0; #P connect 13 0 12 0; #P connect 27 0 1 0; #P connect 14 0 12 1; #P connect 21 0 18 0; #P connect 18 0 19 0; #P connect 19 0 17 0; #P connect 16 0 15 0; #P connect 17 1 15 0; #P connect 17 0 15 0; #P pop;
- Previous message: [jitter] Re: Efficient way to display a mix of video, image and 3D
- Next message: [jitter] Texture 3D buffer to videoplane
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
