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 / Write a script to export a .DBO object from Blender ?

Author
Message
PEH
19
Years of Service
User Offline
Joined: 18th Dec 2005
Location: usa
Posted: 6th Feb 2009 00:55
Would this be possible? I think I could get my head around the python scripting eventually but I haven't a clue how the DBO format works. I have the DBO format headers and stuff from the 6.3 extras but could someone help me get my head around it?
CuCuMBeR
22
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 6th Feb 2009 08:38
That is what TGC should give us, also not limited to Blender but a 3d Max, Maya..etc exporters as well.

Your offer is generous, and i would love to see that you make one.

There is always one more imbecile than you counted on.
PEH
19
Years of Service
User Offline
Joined: 18th Dec 2005
Location: usa
Posted: 6th Feb 2009 17:41 Edited at: 6th Feb 2009 17:42
I wouldn't say that it would be something that TCG should give us but it would be really nice.

I really love working in blender and there are so many things you can do in it but there are alot of things that don't transfer into the .x format even though Dbp supports it.(e. g. Multi texturing)

If I could write a script for it I could even save the positions and properties of the lights, cameras, etc. to a text file so that blender could be used as the main map editor for our games.

Now if someone could point me in the right direction for understanding the .dbo format.......
AndrewT
18
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 7th Feb 2009 04:06
Quote: "Now if someone could point me in the right direction for understanding the .dbo format....... "


You could check out the help files. TGC does not provide any DBO exporters, and I totally understand why; it would be very time-consuming to create exporters and importers for every app out there. Rather they do something just as good; they provide an entire VC++ project in the DBP help files which demonstrates loading a DBO file, which should give you insight into how the file is layed out.

PEH
19
Years of Service
User Offline
Joined: 18th Dec 2005
Location: usa
Posted: 7th Feb 2009 22:50
Quote: "You could check out the help files"


I did:
Quote: "I have the DBO format headers and stuff from the 6.3 extras "

I'm asking:
Quote: "could someone help me get my head around it"


I haven't used c++ before or any form of it. So if it's for VC++ can I use the express editions? in other words can I use them in anything free?
AndrewT
18
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 7th Feb 2009 23:06
Quote: "I did"


Ahh, sorry I didn't see that.

Quote: "I haven't used c++ before or any form of it. So if it's for VC++ can I use the express editions? in other words can I use them in anything free?"


If you just wanna look at the code you can open the .cpp and .h files in notepad, however if you wanna do anything much more you'll want an IDE, and yes, the Express versions work fine.

The difficulty involved with creating an export script depends on what you want it to do. If you just want to export vertex data such as UV coordinates, normals, and positions then it'd probably not be very hard. Exporting all the animation data correctly is a different story.

hookkshot
18
Years of Service
User Offline
Joined: 12th Apr 2007
Location: Adelaide, Aus
Posted: 8th Feb 2009 09:25
well this is something i am going to keep my eye on

Silent Shade Download the latest Beta
PEH
19
Years of Service
User Offline
Joined: 18th Dec 2005
Location: usa
Posted: 8th Feb 2009 23:55
Quote: "yes, the Express versions work fine."

sweet then when I get back to my computer I'll have to download it again. I did awhile ago but ran out of space on my 200GB hard drive so I got rid of it.

Quote: "Exporting all the animation data correctly is a different story"

That's what I was afraid of but I guess If I was just using it for a level editor It wouldn't have to right away. I could just use .x for animated models.

Quote: "well this is something i am going to keep my eye on"

Unfortunately I'm in college right now so I won't get much time to work on it. But I hope I can get it sometime.
hookkshot
18
Years of Service
User Offline
Joined: 12th Apr 2007
Location: Adelaide, Aus
Posted: 9th Feb 2009 00:49
well if you want any help i use blender a lot and i can see what i can do.

Silent Shade Download the latest Beta
PEH
19
Years of Service
User Offline
Joined: 18th Dec 2005
Location: usa
Posted: 9th Feb 2009 06:46
Have you done any scripting in python or do you have any VC++ skill by chance? If not then just anything you can find out could be helpful.
hookkshot
18
Years of Service
User Offline
Joined: 12th Apr 2007
Location: Adelaide, Aus
Posted: 9th Feb 2009 07:08
im going to research it now and im ok with c++ not sure what VC++ is

2.0Gh AM2 Processor, 9800GT, 2Gb Ram
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 11th Feb 2009 21:37
Quote: "Exporting all the animation data correctly is a different story."


Not necessarily (but probably not easy!). I don't have DBPro, but I've waltzed around a little with Blender and Python. Can someone post the DBO file format? That would answer a lot of questions. The animations in Blender are stored as a type of object. Inside of these objects are the key frames, the timing, and the transformations.

Enjoy your day.
PEH
19
Years of Service
User Offline
Joined: 18th Dec 2005
Location: usa
Posted: 11th Feb 2009 22:46
All That I can find on the DBO format are Vc++ files for it. I'm trying to learn vc++ now so I can understand it.

Here's the files attached.

Attachments

Login to view attachments
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 11th Feb 2009 23:58 Edited at: 11th Feb 2009 23:58
Well, here's an old document with a description of the DBO format. Not as intuitive as I would like and probably outdated, but gives a good window into what's going on. Are there any updated versions of this document around? See attached:

Enjoy your day.

Attachments

Login to view attachments
Cagedrei
16
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 19th Mar 2009 06:17
I've recently been exporting from Blender to .fbx format, for an animated figure. A program called Fragmotion can import .fbx and both import and export .dbo. I did some hunting last weekend, and couldn't find any evidence of a .dbo export script for Blender, sadly.

Login to post a reply

Server time is: 2025-05-21 04:47:55
Your offset time is: 2025-05-21 04:47:55