Jump to content
  • Advertisement
Sign in to follow this  
laura1316

Lesson 31 Help

This topic is 4299 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi All: I have created my own Milkshape object. I have not put any materials on it. It looks just like the Milkshape object in lesson 31 of the cross. But when I import it in, the Wood.bmp does not go on it. Its just a white object. Does anyone know why? Please help, my object looks awful! Thanks!

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
im not sure but i think it has something to do with relative vs absolute filepaths. Try putting your image file in the same directory as the model.

Share this post


Link to post
Share on other sites
I did put it in the same directory and gave it the same model name "model.ms3d" I don't know if there is a certain setting needed to put on my file? Do you know? What does it mean absolute and relative path?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
What you need to remember is that Milkshape stores the image location relative to where the model is stored, ie. if the model is saved at c:\models\model.ms3d and the image is at c:\models\images\image.gif then inside the model.ms3d it will reference the image as \images\image.gif. If your image isn´t at that location relative to where you load you model inside your 3d code then it will not show.

You need to:
a) put the image at the right location as described above or
b) change your 3d code to load the image from the location where you have put the image ( to begin with you can hardcode the path - just to make sure the 3d code works )

Share this post


Link to post
Share on other sites
I did this. I get my model imported and I can put the texture in it. Now I am wondering how I can put more than one texture. My program can find the material that the Milkshape object is imported with but it doesn't import it. It gives me a white object. Why is that?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!