tags:

views:

57

answers:

1
+3  Q: 

Writing .x files

Hi,

I have a bunch of polygons that are generated by my program (i.e. I manually calculate the position vectors for the vertices). I want to dump these to a .x file (or .fbx or any format I could reload later with XNA). Is there any C# or XNA API for doing this?

10x!

Yoyo

+1  A: 

You could try XmlSerializer's Serialize() and Deserialize() methods to save and recall your polygons, as well as anything else in your program.

smoore