Save programmatically created Mesh to .X Files using SlimDX throw null exception
- by zionpi
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.