This topic is now archived and is closed to further replies.


about Tutorial 32 and also about textures

Recommended Posts

leggyguy    128
I have been going through tuturial 32 (the tutorial where we load a milkshape model into our program). I understand the code, and the things this tutorial has tuaght me are great. I can see these things being the basis for my continued learning in opengl. However, I have one problem. When I use my own milkshape model in the program, i get no textures. My model comes with a texture (one or two have several). But when my model is loaded into the tutorials code instead of the original model, no texture appears. Instead I get my model in white. Now I think this means my textures are somehow lost to the program, but I am not sure how, why, or how to stop this. I have done a search of the forum, and this problem was brought up before, and someone said this was a known issue, but no one explained how to remedy this. Can anyone help me here? It would be great if someone could. JFYI, the model which comes with the tutorial''s source code works fine in the program. It is just new models that don''t.

Share this post

Link to post
Share on other sites
brettporter    122
This should be a FAQ!

The corrected code is available at However I recently discovered I left out one of the files, so you''ll need Model.cpp from NeHe''s archive. I must correct this soon.

Once I fix that I''ll remind NeHe again to repost it cause I get this a lot and it no doubt causes frustration for downloaders.

At my site, there is also a tut on skeletal animation, and a library that has both that and shadowed rendering of models.


Brett Porter
PortaLib3D : A portable 3D game/demo libary for OpenGL
Community Service Announcement: Read How to ask questions the smart way before posting!

Share this post

Link to post
Share on other sites