Sign in to follow this  
giugio

db and save/restore meshes

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
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

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