View Full Version : Lighting textures
03-25-2005, 01:33 PM
I am working on a program that has textures in it and I want the textures to be shaded. I did the normal things for the lighting but the textures seem unaffected. Is there any special way to light the textures?
03-25-2005, 01:39 PM
Oh I was also wondering if you could post the number or something that the computer returns when you hit the enter key such as the escape key is 27. Just if you guys know I could use it in some of my programs the \n thing doesn't work
03-25-2005, 01:49 PM
use glTexEnvf(GL_TEXTURE_ENV,GL_TEXTURE_ENV_MODE,GL_MO DULATE);
for your texturing method
and ensure lighting is enabled.
03-25-2005, 02:16 PM
I know that VK_RETURN works in other programs but I use mostly C++ for all my functions just use OGL for my grafics and I haven't figured out how to convert that way of keyboard handeling into my programs yet.
The lighting works a little I can see a little shine but when I rotate my object the whole thing will get shaded or lightened realy bright or dark.
03-25-2005, 02:24 PM
I take that back there is no shine no matter how shiny I tell it to be but the shades and colors do work. It's like it thinks the whole thing is one polygon. hold on let me try this real quike
03-25-2005, 02:31 PM
never mind didn't work
Originally posted by Terminatore3:
Oh I was also wondering if you could post the number or something that the computer returns when you hit the enter key such as the escape key is 27. Just if you guys know I could use it in some of my programs the \n thing doesn't work ASCII TABLE (http://"http://www.lookuptables.com/")
enter is 13
Well, simply have a look at glut.h for your keys.
Thanks alot uruk. But your link is broken. but thanks!
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.