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 Discussion / A question about DBO files (yes, this is the right board...)

Author
Message
Robert The Robot
18
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 1st Oct 2007 15:02 Edited at: 1st Oct 2007 15:03
I'm wondering if it's possible to get DBO files to load in DBC.

I found the attached file after a Google search, and I think it gives all the details of the DBO file format - but I don't know what it all means. Could someone take a look at it and explain it to me, so I can have a try at writing a Load Function for DBC?

Granted, not all the features of DBO would be supported, but is such a thing possible?

On our way 'ome, on our way 'ome...

Attachments

Login to view attachments
Robert The Robot
18
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 6th Oct 2007 16:06
Guys?

On our way 'ome, on our way 'ome...
Ron Erickson
Moderator
22
Years of Service
User Offline
Joined: 6th Dec 2002
Location: Pittsburgh, PA, USA
Posted: 6th Oct 2007 16:20
I'm not sure how you would build a load function. I think it would almost have to be built directly into DBC. What is the reason for loading dbo objects in DBC?


a.k.a WOLF!
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 7th Oct 2007 10:41
DBO was the native format for DBP, and will not be supported by DBC. Could a load function be written to at least use the vertex and texture data? Probably, with the use of memblocks for reconstructing the file.


Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 7th Oct 2007 15:13
Quote: "Could a load function be written to at least use the vertex and texture data? Probably, with the use of memblocks for reconstructing the file."


That sounds like a good approach, though the FVF format can be a bit different between the two, but I think that could be managed.

Would it make sense to convert the DBPro file to a DitectX 7 D3D file and then load that into DBC? That way you might be able to manage the frames as separate meshes - since DBC wouldn't be able to do vertex animation by manipulating bones. I think the animation would be the hardest thing to reproduce without some major conversions. DirectX 7 only has 3 matrix transforms and Directx 9 has at least 4 (maybe that's all) the 4th being vertex transformations (bones).

Quote: "Granted, not all the features of DBO would be supported, but is such a thing possible?"


I believe so - depending on your goal.

Enjoy your day.
Robert The Robot
18
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 7th Oct 2007 22:50
Quote: "What is the reason for loading dbo objects in DBC?"


I've been putting the finishing touches to Lightning Lights, a program that lets you illuminate levels and then export the light data as DBA source code. Because DBC and DBPro's lighting commands are almost identical (DBPro has a few more Vertex commands) I've been trying to cater for DBPro users too.

Quote: "I think the animation would be the hardest thing to reproduce "


I wasn't actually planning on trying. All I wanted was a way of loading the file as a static level, ignoring all the special effects (particles, lightmapping, etc. which I know DBC can't support).

Using memblocks to create and manipulate the vertex and texture data sounds great, but I can't quite get the hang of the file format. I've never really read documents like this one before, and it doesn't help not having any DBO files to practice on!

On our way 'ome, on our way 'ome...

Login to post a reply

Server time is: 2025-05-31 20:47:55
Your offset time is: 2025-05-31 20:47:55