Advertisement

Texture mapping help...

Started by December 18, 2000 08:00 PM
5 comments, last by DarkMage139 23 years, 11 months ago
OK, I was recently doing some Nehe tutorials to brush up on my GL skills (been doing mostly DX recently). I did Lesson 6 (the one about texture mapping), and it compiled fine. I ran it, and noticed I had a white cube. That wasn''t right. I was supposed to have an explosion texture. I checked my files (correct BMP name), I even used NeHe''s code to see what I was doing wrong. But it still resulted in a white cube. What could I be doing wrong?! Please help... - DarkMage139 (Neokatana Software) "I can smell the sea." - Majiir Paktu, Homeworld
- DarkMage139
well, I'll just point out the obvious. make sure your bitmap has a length and width that are multiples of four. like 16x16, 64x64, 128x128, etc. even 64x128 for example. next, make sure you have
glEnable(GL_TEXTURE_2D);
declared.

JoeMont001@aol.com www.polarisoft.n3.net

Edited by - Julio on December 18, 2000 9:14:54 PM
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911
Advertisement
Thanks. I''ll fix it.

- DarkMage139 (Neokatana Software)
"I can smell the sea." - Majiir Paktu, Homeworld
- DarkMage139
Ummm, it''s still not working. The bitmap is 256 colors. Could that be it?

- DarkMage139 (Neokatana Software)
"I can smell the sea." - Majiir Paktu, Homeworld
- DarkMage139
Does it refer to GeForce?
And if it does, check out NeHe about texture mapping bugs from 12-18-2000.

Uh, it worked before...

- DarkMage139 (Neokatana Software)
"I can smell the sea." - Majiir Paktu, Homeworld
- DarkMage139
Advertisement
The code\demo\tutorial I mean.

- DarkMage139 (Neokatana Software)
"I can smell the sea." - Majiir Paktu, Homeworld
- DarkMage139

This topic is closed to new replies.

Advertisement