can't get antialiased points

does anybody know why certain h/w renderers don’t apply antialiasing on points?

i mean, i expect circles but i got squares.
blending is enabled, BlendFunc chosen, GL_POINT_SMOOTH enabled.

any idea?

btw, all s/w renderers i tested spit out antialiased points.

The openGL standard doesn’t specify what points look like, only that the size should be able to be set with glPointSize().

It seems fairly sensible to me to have them as pixel shaped entities, cos thats what they are.

If you want circles, you’re probably best off using bill-boarded particles.

Have you tried a glHint with GL_NICEST parameter ?

There was a demo using point_parameter that seemed to give circle like points. But I think that just adjusts the size based on the z-value.

Since its not specified in the gl specs, then there are no guarantees.

I seem to remember my old g200 giving round ones though. not sure.

V-man

>>Have you tried a glHint with GL_NICEST parameter ?<<

i tried even this. glHint(GL_POINT_SMOOTH_HINT, GL_NICEST)
no way.
i am a little bit frustrated. seems i gotta billboard textured quads to go on…
thanx for the help guys

If you have the OpenGL Red Book, go and read it. It’s explained there. Btw, having GL_POINT_SMOOTH on only means that fractional components for surrounding pixels of some pixel are being calculated (in case you didn’t know)

If you dont have the book, here’s how to do it (according the book):

  • Enable point antialiasing (GL_POINT_SMOOTH)
  • Disable blending
  • Use alpha function that only permits fragments with alpha value greater than 0.5

I’ve tried it and here you have fully working code (if the used point-size is supported by your GL implementation):

glEnable(GL_POINT_SMOOTH);
glEnable(GL_ALPHA_TEST);
glAlphaFunc(GL_GREATER,.5);
glColor4f(0,0,1,1);
glPointSize(5);
glBegin(GL_POINTS);
glVertex3f(0,0,0);
glEnd();

thanx niftybitz but it doesn’t work.
i think some h/w renderers just don’t apply point antialiasing… maybe it works on your machine, not on mine (macG4/ATIradeon7500). it works perfectly with the same card on a PC, while it does not work with matrox G200/400/450/550 on PC’s… btw, it always works with no h/w acceleration on the configs named above

Hmm, that sucks. I have a authentic GeFORCE 256, so maybe it is hardware dependant. Strange, cuz i thought that if such a feature isn’t supported by your hw, OpenGL would surely try to emulate it in software. Well, guess you’re up to calculating the fractional values by hand

Ciao,

Niftybitz.