View Full Version : Lighting and Texturing Problems
King Fuzzy
08-23-2001, 01:38 PM
I cant get textures on my models
can someone please email me code to do this
When I enabled lighting the coloring on my model turned to a uniform shade of grey
sugestions where to look for errors
My Email Address if fuz_king@hotmail.com
no-one
08-23-2001, 02:55 PM
did you set the texture paramaters adn the enviornment variables using glTexParamater*() and glTexEnv*()??
such as
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S,GL _REPEAT);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,GL _REPEAT);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTE R,GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTE R,GL_LINEAR);
glTexEnvi(GL_TEXTURE_ENV,GL_TEXTURE_ENV_MODE,GL_MO DULATE);
King Fuzzy
08-23-2001, 04:01 PM
Originally posted by no-one:
did you set the texture paramaters adn the enviornment variables using glTexParamater*() and glTexEnv*()??
such as ...
No I did and it is now working Thankyou very much,
http://www.opengl.org/discussion_boards/ubb/smile.gif http://www.opengl.org/discussion_boards/ubb/smile.gif http://www.opengl.org/discussion_boards/ubb/smile.gif http://www.opengl.org/discussion_boards/ubb/smile.gif http://www.opengl.org/discussion_boards/ubb/smile.gif
[This message has been edited by King Fuzzy (edited 08-23-2001).]
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.