Archived

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

tom76

.x files with built-in textures

Recommended Posts

Ok I''m looking at the donuts3D game to see how it all works, and looking to change certain aspects. I''m puzzled by the terrain. I made my own terrain and loaded it up, and everything was pitch black. No problem I thought, just no textures. SO I just made two more terrains, with textures, and saved as an .x file. I load them up, and what do I get? Something that roughly looks like my designs but the textures have gone (all I have now is grey) and the objects in the game go down beneath the floor in certain areas. Why didn''t the textures load? Why does it not look exactly like my designs? Can anyone help? Observe everything, remember more!

Share this post


Link to post
Share on other sites
Hey.
I had the same problem a couple of days ago. First of all the terrain x model in the sdk in the media folder has a terrain.bmp with it. Make sure all your code is right unless your using donuts3D. Second for the terrain models you made, make ure they have texture coords from your modeller. When I didn''t have texture coords the textured load but not on my model and it was grey. I guess that is the default. Will I hope this helps.

Share this post


Link to post
Share on other sites
ok that''s good info spindle. When you say texture co-ordinates, I''m using milkshape - any idea how I get to co-ords?
ALSO when I have them, how do I implement them?

Thanks,
Daniel

Observe everything, remember more!

Share this post


Link to post
Share on other sites
Don''t forget to include the texture in the same directory than your project because when you save it into the .x file, it only save the name of the bitmap but not the path (EX: it wouldn''t save it as C:\WINDOWS\DESKTOP\image.bmp, it will only be image.bmp).

Share this post


Link to post
Share on other sites
ok I''ve got my terrain and texture into Donuts3D, but my ship is on an invisible ''hill'' with the donuts, and we all keep going up and down through the terrain. Why is this?

Observe everything, remember more!

Share this post


Link to post
Share on other sites