Consistency of DirectX models
Posted
by
marc wellman
on Game Development
See other posts from Game Development
or by marc wellman
Published on 2012-11-04T02:46:29Z
Indexed on
2012/11/04
5:24 UTC
Read the original article
Hit count: 304
Is there a way to check the consistency of a DirectX model (.x) ?
Whilst compiling .x files with XNA GameStudio 3.1 compilation is aborted with the following error message:
Error 2 Could not read the X file. The file is corrupt or invalid. Error code: D3DXFERR_PARSEERROR. C:\WFP\Browser\Content\m.x KiviBrowser
Some models compile correctly without any error/warning and some abort as described. The files of each model have several thousand lines.
I am creating the files in Googles SketchUp 8 where they all look fine and don't show any sign of corruption.
Suppose I have such a model my XNA compiler won't compile because their is an inconsistency somewhere in the file - how could I identify this in order to correct it ?
© Game Development or respective owner