Sign in to follow this  

Lines drawn are always grey or dark colors

This topic is 2548 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

When I try to draw a line, No matter what I set the alpha or color to, the line is always extremely dark, even when it should be white.
This is my code:

glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
glColor3f(1.0f, 1.0f, 1.0f);
glBegin(GL_LINES);
glColor3f(1.0f, 1.0f, 1.0f);
glVertex3i(0.0, 0.0, 0.0);
glColor3f(1.0f, 1.0f, 1.0f);
glVertex3f(200.0, 200.0, 0.0);
glEnd( );

Share this post


Link to post
Share on other sites
If you have lighting on, that could be messing up your line's color.

Another thought... maybe anti aliasing could be blending your line too much into the background? Assuming the background is black!

2 random thoughts you might explore :P

Share this post


Link to post
Share on other sites

This topic is 2548 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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