View Single Post
  #1  
Old March 20th 21, 09:55 AM posted to alt.comp.periphs.videocards.nvidia
ULTRA •
external usenet poster
 
Posts: 1
Default OpenGL Points are square instead of round with GL_POINT_SMOOTH

On Monday, September 23, 2002 at 6:42:20 PM UTC+4, Joerg Seebohn wrote:
I tried using:
glHint( GL_POINT_SMOOTH_HINT, GL_NICEST );
It didn't make any difference on the nVidia GeForce 2 card.
You may be right about not being able to do round points in hardware.

You need two additional calls to enable smoothing and alpha blending.
The smoothing filter produces only correct alpha values.
Use the following code sequence to draw "round" points.
glEnable (GL_POINT_SMOOTH) ;
glEnable (GL_BLEND) ;
glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) ;
glBegin(GL_POINTS) ;
...
glEnd() ;
Joerg
www.s.netic.de/jseebohn

it worked for me without glBeginand glEnd thanks man