View Full Version : maya and directx .x question
dstammel 06-29-2006, 09:37 AM maya and directx .x question
so i have files in maya that i want to export as .x files for directx
They export fine so they look good in the viewer and they have their textures and everything.
But where is the texture? Shouldn't i have a file that is a .x and a .dds to use for the game?
But where is the .dds? where does maya put it? or do i have to make the .dds and attach it somehow?
Any help or advice on directx would be appreciated because i'm new to exporting .x files.
david
| |
CGmonkey
06-29-2006, 01:10 PM
I'd assume that it's the programmer that specify where the .x file read the texture and what texture to read.
ssjchrono
06-30-2006, 01:15 AM
It depends on how you exported the file. I assume you exported with materials, if so there is probobly a material definition that looks like this:
Material {
0.800000;0.800000;0.800000;1.000000;;
0.000000;
1.000000;1.000000;1.000000;;
0.000000;0.000000;0.000000;;
TextureFilename {
"sky_Moonscape.dds";
}
}
Where it says TextureFilename, put whatever you want the texture to be, the UVs should've been exported in the xfile as well so you shouldn't have to worry about that.
Easiest thing is to open the xfile with notepad or wordpad and search for TextureFilename.
Hope this gets you on the right track. There is a lot more you have to do ofcourse. Like actually creating a material based on the xfile, and then getting the string TextureFilename to be use to make a texture in programming wise, but it's actually too much for me to explain it in this post.
dstammel
06-30-2006, 03:12 AM
Thanks that was a big help.
now do you know how to export normals maps or bump maps along with it? my models have normals but when i view them in the viewer i only see the color map no normals. are normals exported as an effect file?
thanks again
CGTalk Moderation
06-30-2006, 03:12 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2009, Jelsoft Enterprises Ltd.