Sign in to follow this  

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

This topic is 3740 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

This topic is 3740 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this