nehe milkshape model loading problem

Started by
4 comments, last by Subotron 22 years, 3 months ago
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?
Advertisement
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
____________________________________MSN | AIM | YIM | ICQ
uhhhhhhhhh.... where can I find this .\\ and change it? In Milkshape??
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/
========================Leyder Dylan (dylan.leyder@slug-production.be.tf http://users.skynet.be/fa550206/Slug-Production/Index.htm/
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
-------------------------
Thank you all for the help, I know where the problem is now and have received several ways to fix it. I can continue coding now thanx very much all

This topic is closed to new replies.

Advertisement