Archived

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

Subotron

nehe milkshape model loading problem

Recommended Posts

Today I tried to load one of my Milkshape 3D v1.5.9 models using the code from lesson 32 from Nehe. It loaded the mesh, but it was not textured at all! Instead it was all white. Does anyone have a solution for this problem?

Share this post


Link to post
Share on other sites
i had such a problem, the problem is with the texture name its being stored as ".\\TexName.whatever"

just remove the .\\ and add the texture path
btw u can use ''/'' instead of "\\"






"The Railgun Master"
DaHeR

Share this post


Link to post
Share on other sites
I had a simpler solution.

The problem is the model is trying to load the textures from whatever directory the .exe file is run from. So if its run from /game/game.exe, it will look for the textures in /game/.
Just becuase the model is in /game/data doesnt mean thats where the game is looking. So here is my fix.

In the data directory I created another directory named data. I created my milkshape3d models in the first data directory and placed the texture maps in both data diretoires. .

so ...

/data/ <--- milkshape3d model + texture maps.
/data/data <--- texture maps for model.

When I create my model in milkshape I use the textures from /data/data/. Then when I load my milkshapemodel from /data/model.ms3d the model knows to grab the textures also from /data.

Hope this isnt too confusing.

Nitzan

-------------------------
www.geocities.com/nitzanw
www.scorchedearth3d.net
-------------------------

Share this post


Link to post
Share on other sites