Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Writing .x files

Tags:

c#

geometry

xna

.x

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

like image 486
Yaniv Avatar asked Feb 21 '26 16:02

Yaniv


1 Answers

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

like image 61
Seth Moore Avatar answered Feb 23 '26 05:02

Seth Moore