Suggest for saving file object 3D [MFC C++]

Started by
1 comment, last by coba2 16 years, 7 months ago
Hi.. Can you a suggest for how I must save the object 3D file?? Maybe you can give some example way... I'm not ask to most safe or what, but maybe I want the simple one. Right now, i already try it. I has been save the properties of object 3D in file text. So, I save all of size, position, etc in file text. But, using MFC C++ give me some difficulties to write or read float data... Ok, I hope all of you can give me some advise. Thanx.
Advertisement
Using MFC, you have access to the CFileDialog class. Use this to specify a filename to save to, and then have it call some custom object exporting routine. It should be simple to come up with a basic format to export an object. Using the standard file i/o routines ( fputs,fprintf etc ) or the cout object, or whatever method you choose. Typically, you would export all the verts of an object, and then the define the polys as they are constructed from indexes of those verticies... That's about it, not including any other supplemental info.
OK thanx for your reply ahayweh.
Maybe somebody have another idea?? Thanx

This topic is closed to new replies.

Advertisement