if( FAILED( D3DXLoadMeshFromX( MeshName, D3DXMESH_SYSTEMMEM,
g_pd3dDevice, NULL,
&pD3DXMtrlBuffer, NULL, &g_dwNumMaterials,
&g_pMesh ) ) )
{
// If model is not in current folder, try parent folder
if( FAILED( D3DXLoadMeshFromX( "..\\test.x", D3DXMESH_SYSTEMMEM,
g_pd3dDevice, NULL,
&pD3DXMtrlBuffer, NULL, &g_dwNumMaterials,
&g_pMesh ) ) )
{
MessageBox(NULL, "Failed", "DirectXMeshes.exe", MB_OK);
exit(0);
return E_FAIL;
}
}
Exporting a .X from 3ds max 7
I've recently hit a snag using 3ds max and the panda exporter for creating .x files for a directx application i've been working on.
I exported a UVW mapped model of a sports car, including textures, and loaded this into an application, all was good, infact there follows a screenshot of the application running:
Now, i wanted to try some new stuff, so i created a custom specular map for the car, in an attempt to get the glass looking more glass-like and the metal more metallic. i exported the mesh usign the panda exporter (as i had previously) but this time, i went to run the application, and the following code section failed:
the settings in panda were, as far as i can tell, exactly the same. can anyone with experience using the panda exporter give me any pointers? why is my mesh no longer recognised by my application (or the directx SDK mesh viewer), even when i remove the new maps and revert everything to the previous settings?
thanks,
mal
UPDATE:
I've tried using a free .x model from the turbosquid website, and that works perfectly within my code, this indicates to me that this problem is deffinately with my exporting from 3ds max.
can anyone help?
I've tried using a free .x model from the turbosquid website, and that works perfectly within my code, this indicates to me that this problem is deffinately with my exporting from 3ds max.
can anyone help?
ADDITIONAL UPDATE:
Mostly just bumping this because it's been 10 days since my last post on here, and still no response.
does anyone know anything about 3ds max and the panda exporter and can give me some help?
I know there's got to be some setting that needs to be set, but i can't find it, none of the models i create in 3ds max will load in my directx programs anymore despite them doing so previously (as per the screenshot).
come on, i really need some kind of response here.
Mostly just bumping this because it's been 10 days since my last post on here, and still no response.
does anyone know anything about 3ds max and the panda exporter and can give me some help?
I know there's got to be some setting that needs to be set, but i can't find it, none of the models i create in 3ds max will load in my directx programs anymore despite them doing so previously (as per the screenshot).
come on, i really need some kind of response here.
Give KWXport a try.
As far as i remember the panda exporter had some glitches.
EDIT: just noticed it should work in max7..maybe kwxport still works..though the website says 8&9..
As far as i remember the panda exporter had some glitches.
EDIT: just noticed it should work in max7..maybe kwxport still works..though the website says 8&9..
Quote: Original post by youaresomean
Give KWXport a try.
As far as i remember the panda exporter had some glitches.
EDIT: just noticed it should work in max7..maybe kwxport still works..though the website says 8&9..
hmm, it does appear to be for 3ds max 8 and 9. I downloaded it anyway, but it seems like the only version there is is the source code, so i'm not sure how it is you use that plugin at all.
thanks for the suggestion though.
Quote: Original post by MalazarQuote: Original post by youaresomean
Give KWXport a try.
As far as i remember the panda exporter had some glitches.
EDIT: just noticed it should work in max7..maybe kwxport still works..though the website says 8&9..
hmm, it does appear to be for 3ds max 8 and 9. I downloaded it anyway, but it seems like the only version there is is the source code, so i'm not sure how it is you use that plugin at all.
thanks for the suggestion though.
Right, That didn't work. has anyone ever used the panda exporter? what settings need to be set to create a valid .x file? i'm certain i've tried changing every setting, but none of them seem to work - whilst the default settings used to work just fine.
it's been over two weeks since i posted this, and i've been unable to make any progress on any of my projects in that time because none of the graphics will load anymore.
I also have Max 7 and this exporter and it seems very buggy to me (although rather than use DirectX's loading functions I wrote a converter from .X to my own format since I'm using OpenGL). Anyway, a problem I had was the "Optimize mesh" option, make sure it is set to "none" because I've had problems with other settings. Sorry I can't help more.
Quote: Original post by Gumgo
I also have Max 7 and this exporter and it seems very buggy to me (although rather than use DirectX's loading functions I wrote a converter from .X to my own format since I'm using OpenGL). Anyway, a problem I had was the "Optimize mesh" option, make sure it is set to "none" because I've had problems with other settings. Sorry I can't help more.
Thanks for the suggestion. that didn't work, but i'll make sure that setting remains set to "none" whilst i continue to search for the answer.
anyone else with similar problems/experiences, please speak up - you never know, at this rate this thread might end up as a comprehensive aid to anyone having any problems in the future :P
Quote: Original post by MalazarQuote: Original post by Gumgo
I also have Max 7 and this exporter and it seems very buggy to me (although rather than use DirectX's loading functions I wrote a converter from .X to my own format since I'm using OpenGL). Anyway, a problem I had was the "Optimize mesh" option, make sure it is set to "none" because I've had problems with other settings. Sorry I can't help more.
Thanks for the suggestion. that didn't work, but i'll make sure that setting remains set to "none" whilst i continue to search for the answer.
anyone else with similar problems/experiences, please speak up - you never know, at this rate this thread might end up as a comprehensive aid to anyone having any problems in the future :P
well it looks like i managed to find the correct settings for the panda exporter, this is for a game engine, but it works in my application as well, hopefully, future users of this forum, and of panda exporter, will be able to find these settings more easily and get the correct file format to load a mesh into their applications:
http://www.3impact.com/3Impact_Engine/hulk7123/3dsmaxtips.htm
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement