Re: OpenGL Points are square instead of round with GL_POINT_SMOOTH

ULTRA • <[email protected]> Sat, 20 Mar 2021 02:55:43 -0700 (PDT)
Newsgroups alt.comp.periphs.videocards.nvidia
Message-ID <[email protected]>
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