Looking for example of X file parser
I am a learner on DirectX.
I want to parse X file, but I have only examples code based on DX8. It can not work properly in DX9. I tried to modify it but failed.
If someone knows where to get an example, please help me.
Thanks.
Hi,
if you are programming in c# here is a very good site: http://www.tar.hu/directx9kick/index.html eveything is explained from the beginning, how to load a mesh from a file....
if you are programming in c# here is a very good site: http://www.tar.hu/directx9kick/index.html eveything is explained from the beginning, how to load a mesh from a file....
Thanks for your information.
But I am looking for a C++ example.
And the C# example seems like just loaded a file as a whole(I have not learned C#,just a guess).
I want to load parts of a X file,so I need to parse the X file.
I have changed a DX8 Example to use DX9 classes,but it do not work.
ID3DXFile *pDXFile = NULL;
ID3DXFileEnumObject *pDXEnum = NULL;
V_RETURN( ( D3DXFileCreate(&pDXFile)));
V_RETURN( ( pDXFile->CreateEnumObject("tiny.x",D3DXF_FILELOAD_FROMFILE,&pDXEnum) ));
........
I got an error Code when calling CreateEnumObject(): hr=D3DXFERR_PARSEERROR (0x88760390)
The same .x file can be parsed correctly use DX8 example executable file, it's an example x file from microsoft.
But I am looking for a C++ example.
And the C# example seems like just loaded a file as a whole(I have not learned C#,just a guess).
I want to load parts of a X file,so I need to parse the X file.
I have changed a DX8 Example to use DX9 classes,but it do not work.
ID3DXFile *pDXFile = NULL;
ID3DXFileEnumObject *pDXEnum = NULL;
V_RETURN( ( D3DXFileCreate(&pDXFile)));
V_RETURN( ( pDXFile->CreateEnumObject("tiny.x",D3DXF_FILELOAD_FROMFILE,&pDXEnum) ));
........
I got an error Code when calling CreateEnumObject(): hr=D3DXFERR_PARSEERROR (0x88760390)
The same .x file can be parsed correctly use DX8 example executable file, it's an example x file from microsoft.
Hi,
here I found this topic, I don't know if you have seen it. The guy has quite the same problem as you do: http://www.gamedev.net/community/forums/topic.asp?topic_id=398970. Apparently it has something to do with the templates.
here I found this topic, I don't know if you have seen it. The guy has quite the same problem as you do: http://www.gamedev.net/community/forums/topic.asp?topic_id=398970. Apparently it has something to do with the templates.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement