Forums > Jitter

OpenGL Pointsmooth

January 12, 2007 | 11:37 am

Hello there!

I have a jit.gl.sketch object drawing a matrix as points.
I?m looking for the right message to jit.gl.sketch drawing the points antialiased – in OpenGL it?s the argument GL_POINT_SMOOTH.
I tried some variations like "glpointsmoth 1" "pointsmooth_enable 1" "smooth_points 1" but none of them seem to work.
Does anyone know the right message?
Thanks a lot!
Sonja


January 12, 2007 | 12:57 pm

antialias $1

u can also do more interpolation on the jit.gl.render and jit.window, alternatively u could try fsaa $1.

these msg are documented in the jit.gl.group HTML jitter documentation. another nice way of reminding urself what msg are is using ctrl + alt + LMB click – u get a list of all msg for that object.

j


January 12, 2007 | 1:05 pm

That`s it! I?ll check the other ways too..
Thank you!!
S


January 14, 2007 | 7:25 pm


January 15, 2007 | 1:30 pm

sorry, for some reason my response wasn’t published earlier.

glpointsmooth needs to be enabled. do this by sending the command glenable pointsmooth to sketch, then alter the size of the point using the command glpointsize. (jit.gl.sketch also has an attribute ‘pointsize’).

pelado


January 17, 2007 | 9:28 am

sorry, took a while for answering, too.. thanks for your answer! your way seems to be the right for windows! "antialiasing 1" for sketching points worked fine on mac os but not on windows. on windows though it works with "glenable pointsmooth" and altering the pointsize manually for antialiasing to be possible…
thanks! have a nice day!
s


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