lesson 6 : too many textures ??
Hello
I just finished lesson 6 on texture mapping, and as suggested, I tried to modify the code to put my own textures on the cube.
Works fine with 1 or 2 texture, but when I try loading more than 2, I get all sorts of errors. Sometimes, I can''t register class, some other time, the app will run but it will get extremely laggy, never displaying anything.
What''s wrong ?
Did you raise the texture and TextureImage arrays to the amount of textures you are using? If not, then you will get errors.
I did.
I ran the prog with debbug and it looks like all the textures are loading correctly. I get to the main loop (with the message pump,dispatch, etc). It''s just that the prog run without ever displaying anything.
I''ve also tried doing the same with nehe code and I get an assertion failed on dbgheap.c
any idea ?
b.t.w. I''m using vc++6 (with the visual c++ code of the lesson)
I ran the prog with debbug and it looks like all the textures are loading correctly. I get to the main loop (with the message pump,dispatch, etc). It''s just that the prog run without ever displaying anything.
I''ve also tried doing the same with nehe code and I get an assertion failed on dbgheap.c
any idea ?
b.t.w. I''m using vc++6 (with the visual c++ code of the lesson)
You''ll have to post some of your code for anyone to see the problem. Post your loading section first.
---
Make it work.
Make it fast.
"I’m happy to share what I can, because I’m in it for the love of programming. The Ferraris are just gravy, honest!" --John Carmack: Forward to Graphics Programming Black Book
---
Make it work.
Make it fast.
"I’m happy to share what I can, because I’m in it for the love of programming. The Ferraris are just gravy, honest!" --John Carmack: Forward to Graphics Programming Black Book
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement