🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Lesson 31 Help
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!
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.
i guess u didn't see my previous post?
U can also try using SetCurrentDirectory or similar.
U can also try using SetCurrentDirectory or similar.
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?
SetCurrentDirectory can you please explain? Not sure what you mean. Sorry I am new to this whole thing.
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 )
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 )
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement