Archived

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

CoolTomK

exporting materials with BMPs in 3ds

Recommended Posts

Whenever I try to export a model that contains a material with a bitmap texture into a Microsoft .x file (or any other format) it does not save the BMP texture info, and just shows the color of the material when I render it in my game, or any .x model viewer. But 3DS MAX does render the texture on my object.

Share this post


Link to post
Share on other sites
I think this is something to do with the way DirectX and the .x format handle textures. Have you posted this on the programmers forum?

Out of curiousity, have you tried the same textures but as .jpg or .tga? (well, to find out if it''s a problem with bmps)

Make sure the model ahas texture co-ordinates. (UV co-ord or texture cooridnates assigned to primative)

...
Hope this helps.


www.stephen-hawes.co.uk

Share this post


Link to post
Share on other sites
Theres nothing wrong with my code or the way I am loading files, zonbie, because I can load other .X files into my game with textured materials just fine(using MS''s .X file class). I also checked out the .X file itself and found no refernces to the bitmap texture I am loading. Im Pretty sure that it has to be a setting in 3DS MAX that I haven''t set properly. Oh yeah, Im using 3D Studio MAX r3.0

-thanks in advance

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
If you are using the DirectX SDK viewer, then the viewer will look in the Direct3D\Media Directory for the bitmaps rather than the directory the .x file is in.

Stuff everything into the Media directory.

Share this post


Link to post
Share on other sites