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.

DarkBASIC Professional Discussion / .dbo under patch 4 - thought you could now "SAVE OBJECT"

Author
Message
Duffer
23
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 22nd Mar 2003 06:56
I thought under Patch 4 you could save more than just a mesh - I thought you could save a 3d object (.x) in .dbo format? I can't find the "SAVE OBJECT" command to do this...? I am missing something, right?
Duffer
23
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 22nd Mar 2003 07:03
Sorry, posted my question without first prefacing it with congrats to the DB programming team for the fantastic upgrade that is Patch 4. Certainly, a lot of the demos and my programs are working v. much faster / smoother than before...

Anyway, does anyone know any answers re above question???

MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 22nd Mar 2003 09:38
You probably wont be able to save objects for a few more patches yet.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 22nd Mar 2003 12:20
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 22nd Mar 2003 16:02
Heh heh, Patch 5!

I can't wait for the first 'when is patch 5 being released' post
Duffer
23
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 22nd Mar 2003 19:11
Indi,

That Save Mesh will save a single mesh as a .x - what is the best way to put together and save 3d animation as things stand? do I have to sort it out externally and then load in as .x (in patch 4)? can I save new keyframes for an object within dbpro?

indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 23rd Mar 2003 04:15
duffer,

You can either make a program that follows the x file requirements or code your own format.

the x file can be expressed as a text file or binary file.

when you are writing out the data u follow the format of the file by making up a text file to export out the required mesh data /centerpoint / texture / normal data and animation data.

If u take a cube in any package that exports to x, export it thusly then open that file in notepad u will see the format.

You may want to track down on the web a file format reference for x files

I think it used to be called d3d and Im not sure if this info will help



this is prolly more closer to home

http://astronomy.swin.edu.au/~pbourke/geomformats/directx/

Theres no stopping you writing your own x file exporter in ascii or binary if your really clever but its easier to bugtest in ascii.

If u think thats definately for the hard basket then just be patient and keep studying the commands until something is created that performs this.

If nothing is created that will do this then request for methods to solve it

Duffer
23
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 23rd Mar 2003 15:57
Thanks Indi,

Is there anyway i can save animation frames 'on-the-fly' inside DB Pro...? Apart from using my own code for 3d object anyway (which I am working on). If there is no animation frame 2 and I move my object's limbs etc to a new stance can I then set object frame x,2 to set that as a new frame>?

indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 23rd Mar 2003 17:41
oh maybe with a timer sure, you would need to grab the positions of the limbs moved and by how much for each grab inside the timer.

Duffer
23
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 23rd Mar 2003 22:04
and then save out in my own file format...?

do you think that Patch 5 will have back full cross-format 3d compatability and ability to LOAD OBJECT and (much more importantly) SAVE OBJECT for .dbo?

wonder whether the coders could add a SET NEW ANIMATION FRAME command as well...? ... with all the above we could code our own 3d modellers and animators...

indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 24th Mar 2003 03:31
email [email protected] or [email protected] with your suggestions of this nature for a more accurate answer.

Login to post a reply

Server time is: 2026-07-11 12:03:16
Your offset time is: 2026-07-11 12:03:16