Jump to content
  • Advertisement
Sign in to follow this  
coba2

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

This topic is 3928 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
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!