nehe milkshape model loading problem
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?
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
just remove the .\\ and add the texture path
btw u can use ''/'' instead of "\\"
"The Railgun Master"
DaHeR
The author have been updated the source code for fix that.
Here''s the link.
Choose : "Loading Models (Source) "
http://rsn.gamedev.net/
========================
Leyder Dylan
http://ibelgique.ifrance.com/Slug-Production/
Here''s the link.
Choose : "Loading Models (Source) "
http://rsn.gamedev.net/
========================
Leyder Dylan
http://ibelgique.ifrance.com/Slug-Production/
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
-------------------------
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
-------------------------
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement