Advertisement

texture mapping

Started by March 20, 2003 01:00 PM
0 comments, last by chebden 21 years, 11 months ago
I''m just learning OpenGL, so I''m sure my problem is simple and stupid. I''m having trouble texture mapping objects. I''m using the code from the tutorial as a launching point. I added a bmp image to the "data" folder, and changed the name from "Mud.bmp" to "test.bmp". Everywhere there should be a texture, there is white. I then thought there was a difference since the bmp I was mapping was a much higher resolution. So, I knocked that down to the same size and resolution of the sample file, "Mud.bmp". No change. Is there somewhere I need to preload the texture or something I need to do with the image so that it is mappable? I appreciate any suggestions, or links that would explain it. chebden
call glEnable(GL_TEXTURE_2D) somewhere and make sure the image length/width is 2^x (8,16,32,64,128,256)

This topic is closed to new replies.

Advertisement