Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

LordSoth

Blending and color problems

This topic is 5939 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

Hi Guys, and Well met, I am a new opengl programmer and using the tutorials here. But I encountered a problem with the blending. After using the blending in lesson08, I tried to add another quad, like this: glLoadIdentity(); glTranslatef(0.0f,0.0f,-4.0f); glBegin(GL_QUADS); glNormal3f(0.0f,0.0f,1.0f); glColor3f(1.0f,0.0f,1.0f); glVertex3f(1.0f,1.0f,0.0f); glVertex3f(1.0f,0.0f,0.0f); glVertex3f(0.0f,0.0f,0.0f); glVertex3f(-1.0f,1.0f,0.0f); glEnd(); The funny thing is the colors are just mixed up while the lighting is on, when off, the quad above does not have the color I specified. I really couldnot understand the problem. (Nothing to do with the blending actually, ''cause blending is always turned off) Thanks, Greetings, and have fun! Alp Y. DM/RS-GIS Modeller Computer Programmer

Share this post


Link to post
Share on other sites
Advertisement
Thanks Gee,

I later found out he problem, you may call me crazy but I am working with a S3VGA card with 1 MB, that''s why the colors appears so weird. I tried with other tutorials, and found out when I import textures, the colors of quads just go weird.

I hope this is the REAL problem.

See YA


Greetings, and have fun!

Alp Y.
DM/RS-GIS Modeller
Computer Programmer

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!