Skip to main content
GameDev.net gamedev.net
🔒 Locked

Lesson 13 help?

Started by wildhalcyon Mar 21, 2006 at 10:01 AM 2 replies 2.8k views
Original Post
wildhalcyon
wildhalcyon
Im working on adding some text to my code (to keep track of some display variables as I move around the screen). Right now, I just have a few quads with 2 different textures, Im not using a display list for them however. Now, when I add the text code, everything goes wonky. The text may or may not be displayed (this seems to be a problem with scaling - the lesson says that the bounds are +-0.5f, but on my screen, its more like +-0.4 in the y direction, I've corrected this so long as nobody resizes the window). The other problem has to do with coloring. I haven't set glEnable(GL_COLOR_MATERIAL);, yet the texture is still colored according to the text color. I've gotten around this by calling glColor3f before the texture to reset it to white, and then I call glColor3f for the text to change its color. Unfortunately, it doesn't seem to color according to the normal [0,1] scale. If I call glColor3f(1.0f,1.0f,1.0f); its a muddy yellow. Any suggestions on this?
wildhalcyon
wildhalcyon
Alright, here's a screen capture:

http://img156.imageshack.us/img156/4172/badtext3km.jpg

If anyone has any idea why its muddy, not white, I would LOVE to know?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.