Save programmatically created Mesh to .X Files using SlimDX throw null exception

Posted by zionpi on Game Development See other posts from Game Development or by zionpi
Published on 2014-06-05T02:11:40Z Indexed on 2014/06/05 3:40 UTC
Read the original article Hit count: 273

Filed under:
|
|

Mesh has been created properly using SlimDX,but when I use the following line:

Mesh.ToXFile(barMesh, "foo.x", XFileFormat.Text,CharSet.Unicode);

It throws NullReferenceException,through monitor window I can see barMesh is not null,

inside the mesh structrue, SkinInfo is null. If SkinInfo is the problem,then how can I

initialize it properly?Internet doesn't seems have much information on this.

© Game Development or respective owner

Related posts about directx

Related posts about slimdx