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 |
All times are GMT +1. The time now is 09:35 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
HardwareBanter.com