Sign in to follow this  
phyxle

glLineWidth and scaling

Recommended Posts

I noticed that once the line width is set using glLineWidth, it does not change even if the model is scaled. That becomes noticeable when the objects is scaled to be small but the line width is a great number. I know I can manually change the width every time I scale but I was wondering if there is a better way to do it. Moreover, I am using a display list and I change the scale after creation of the display list and during rendering. Therefore, I am not able to change the line width at run time. Let me know if there is way to do this. Thanks!

Share this post


Link to post
Share on other sites
Line as far as i know is drawn in a different way than triangles. Line just connects two points in screen-space. It's like a brush on canvas. If you need the lines to have actual scalable width you'll need to draw a strip of quads. Lists are deprecated, by the way.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this