[jitter] Anti-aliasing jit.gl.graph - what's my mistake?
Aaron Faulstich
afaulsti at hotmail.com
Tue Aug 7 18:12:05 MDT 2007
- Previous message: [jitter] About my MS thesis project in Audio Engeering (but actually nothing related to Audio Engineering)
- Next message: [jitter] Anti-aliasing jit.gl.graph - what's my mistake?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I'm still a beginner with Jitter, trying to port over what I know from using openGL in JSUI objects. I'm using jit.gl.graph to draw a very simple graph, and I would like to anti-alias it along the lines of "fsaa = 1" inside a JSUI object. This patch shows what I've tried so far, being "fsaa 1" to the jit.pwindow, "antialias 1" to the jit.gl.graph object, and "fsaa 1" to the jit.gl.render object. None of those commands is working in this patch on my system. The "antialias 1" message thickens the line, but it does not create any smoother edges. It gives me the same result as changing the line_width property to a higher value. I hope my mistake is obvious. #P window setfont "Sans Serif" 9.; #P window linecount 1; #P newex 824 191 63 9109513 prepend fsaa; #P toggle 825 166 15 0; #P newex 558 190 63 9109513 prepend fsaa; #P toggle 559 165 15 0; #P window setfont "Sans Serif" 14.; #P comment 708 109 100 9109518 Rendering; #P window setfont "Sans Serif" 9.; #P newex 397 411 78 9109513 prepend antialias; #P toggle 399 385 15 0; #P button 160 303 15 0; #N counter 0 512; #X flags 0 0; #P newobj 278 264 66 9109513 counter 0 512; #P newex 152 335 102 9109513 jit.matrix 1 float32 512; #P toggle 732 141 15 0; #P newex 732 170 50 9109513 qmetro 40; #P user jit.pwindow 576 245 514 258 1 0 0 0 0 0; #P newex 734 220 288 9109513 jit.gl.render lines @scale 2. 1. 1. @erase_color 1. 1. 1. 1. @ortho 2; #P newex 732 194 45 9109513 t b erase; #P newex 590 219 131 9109513 jit.matrix lines 4 char 512 256; #P newex 159 436 326 9109513 jit.gl.graph lines @color 0. 0. 0. 1. @circpoints 1 @line_width 4. @antialias 1; #P newex 157 403 194 9109513 jit.expr @expr "sin(norm[0] + 2*PI*in[1]/512)"; #P toggle 299 210 15 0; #P newex 284 236 50 9109513 qmetro 40; #P window setfont "Sans Serif" 14.; #P comment 278 180 100 9109518 Wave Motion; #P connect 13 0 11 0; #P connect 11 0 3 0; #P connect 15 0 4 0; #P connect 3 0 4 0; #P connect 12 0 13 0; #P connect 1 0 12 0; #P connect 2 0 1 0; #P connect 12 0 3 1; #P connect 14 0 15 0; #P connect 17 0 18 0; #P connect 18 0 8 0; #P connect 5 0 8 0; #P connect 9 0 5 0; #P connect 10 0 9 0; #P connect 9 0 6 0; #P connect 20 0 7 0; #P connect 6 0 7 0; #P connect 6 1 7 0; #P connect 19 0 20 0; #P window clipboard copycount 21;
- Previous message: [jitter] About my MS thesis project in Audio Engeering (but actually nothing related to Audio Engineering)
- Next message: [jitter] Anti-aliasing jit.gl.graph - what's my mistake?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
