Jump to content
  • Advertisement
Sign in to follow this  
giugio

db and save/restore meshes

This topic is 3020 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

hy. I would find a good method for save/restore 3d meshes an opengl application in c++ to/from database. The solution that i think are two: 1)save all mesh vertex data and texture in tables on a db 2)serialize in a binary file the mesh vertex data structures and textures and save only the path of the serialized file. i dont know what prestation have the towo solution ,but i think that the first solution is more flexible and i can execute query on the data . But the solution one, "kill the db" or is possible? what do you think? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Why do you want to store meshes in a database? That's not what they're designed for at all - it's possible, but probably not a good idea.

Share this post


Link to post
Share on other sites
thanks , Steeve , then is a better solution to store data in binary files with serialization then set the file path in db?

Share this post


Link to post
Share on other sites
That sounds reasonable, yes - so long as you keep the database and files on disc in sync.
That's what phpbb does for avatars - the avatars themselves are just image files on disc, and the database contains the filename of the image.

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!