Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Cyber 1
18
Years of Service
User Offline
Joined: 11th Feb 2008
Location:
Posted: 13th Sep 2012 14:36
Greetings everyone.

Can someone please supply me with some code that will allow
the saving\loading of multiple DBPro primitives as Dbo objects?
I can save\load a primitive (eg. Cube) with its texture restored
but I am unable to restore the original rotation, scale and
position data for the object.
I surely would appreciate somebody passing some code to me
that can solve this problem.
Thanks in advance for any help you can give.

The Creator
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 13th Sep 2012 18:34
The first thing you need to consider when making save files is what format you want to save all of your objects as. I suggest making a nice, readable text file format which could look like this:



So how would we do that? Writing it is quite simple really:



Loading it is just as simple:



You'll have to complete the code, but you get the idea.

TheComet

"Why geeks like computers: unzip, strip, touch, finger, grep, mount, fsck, more, yes, fsck, fsck, fsck, umount, sleep." - Unknown

Login to post a reply

Server time is: 2026-07-08 01:56:07
Your offset time is: 2026-07-08 01:56:07