Advertisement

line smoothing question!

Started by January 24, 2001 05:09 AM
1 comment, last by shg 23 years, 10 months ago
hi! i am a newbie at openGL, and want to say: thanks for this great web site. now i've modified lesson 2, to write some text and to move lines etc. unfortunately, i am not able to get linesmooting work for me. also i am not able to adjust the line width. below there is the small part of my visual basic code drawing the lines. please help me, whats wrong? my lines are not smooth, they are some kind of little stairs ...;-) glBegin bmLines glLineWidth 20 glEnable glcLineSmooth glHint htLineSmoothHint, hmNicest glVertex2d 0, 0 ' Top glVertex2d -1#, -1# ' Bottom Left glVertex2d 0, 0 glVertex2d 1, -2# glEnd thank you very much in advance and best regards from vienna ! hans g. Edited by - shg on January 24, 2001 8:03:05 AM
I know there is a limit on how big a line can be for smoothing to work, but I don''t think you went over it. Make the lines thinner and see if that helps. If not, bang up the rez.
Advertisement
enable blending with GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA

http://members.xoom.com/myBollux

This topic is closed to new replies.

Advertisement