Third Party Tools / DBO to DirectX converter- for use with legacy, EBE and PBR DBO files

Author
Message
Super Clark
GameGuru TGC Backer
13
Years of Service
User Offline
Joined: 4th Apr 2011
Location: UK
Posted: 22nd Apr 2018 14:43
GUI buttons is easier for everyone... m8 I would think, I know its what i prefair.
PM
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 24th Apr 2018 07:58
working on the "fusing" of the .OBJ exporter code to the main DBO2X program. So soon, will be able to convert DBO's (PBR/EBE/legacy) to .X and .OBJ formats. Once that's all working smoothly, will write some code to generate a .MTL file for the .OBJ model. But will release before that so anyone interested can have a play around. I then need to go and make updates to the Entity Welder program to use same xporter code. Again, I will test that the .OBJ files still import into Blender / Fragmotion / UU3D. So far so good...phew.
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++, C#, VB, SQL, PL-SQL, JavaScript, HTML, Three.js, Darkbasic Pro (still love this language), Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; 12GB.
FPSC to GameGuru Tools: SegAutoWelder, Entity+Weapon Welder, FPEtoBAT, DBO2X
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 25th Apr 2018 17:17 Edited at: 25th Apr 2018 17:18
OBJ format export code now "merged" with the main DBO2X program and now you can multi select DBOs for OBJ conversion. Here's a small (very small) example of 3 models imported into Blender post multi-DBO select.

Hoping to upload this to google drive later on as I have family around at the moment and my wee 2 month old to look after/entertain.

more soon....loads still to do on it but I'm pleased with it so far.
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++, C#, VB, SQL, PL-SQL, JavaScript, HTML, Three.js, Darkbasic Pro (still love this language), Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; 12GB.
FPSC to GameGuru Tools: SegAutoWelder, Entity+Weapon Welder, FPEtoBAT, DBO2X

Attachments

Login to view attachments
Super Clark
GameGuru TGC Backer
13
Years of Service
User Offline
Joined: 4th Apr 2011
Location: UK
Posted: 25th Apr 2018 17:29
Excellent m8, well done, will test it out once you release it and do some texting.
PM
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 26th Apr 2018 09:22
ok, was going to roll this one out last night, but found an issue I need to resolve (typical) ..... will fix as soon as ....
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++, C#, VB, SQL, PL-SQL, JavaScript, HTML, Three.js, Darkbasic Pro (still love this language), Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; 12GB.
FPSC to GameGuru Tools: SegAutoWelder, Entity+Weapon Welder, FPEtoBAT, DBO2X
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 26th Apr 2018 22:44 Edited at: 27th Apr 2018 06:59
Here is the link to the app (v1.6):

https://drive.google.com/open?id=1YaedBucmgQcLne5OtMGqWo5i4IUlhwFn

password = "youshallnotpass" without quotes.

It's not 100% perfect yet so there will be some flaws still and there is still a lot more to do/add.

I will do a video soon as possible.

For PBR/EBE DBO's, at the moment to convert to OBJ format, first convert to .X and then change the .INI setting and convert to .OBJ. For EBE DBO files, make sure ISEBESTRUCTURE=1 in the INI file (root of your drive). This option will remove the sphere attached to the DBO.

Setting the "CONVERTTOOBJ" parameter to 1, will allow to select either .DBO/.X and also you can multi-select using either CTRL-A to select all DBO/X files or single select i.e. CTRL + left mouse.

MTL file still to be created for .OBJ but you can load in a texture e.g. in Fragmotion and create a material from that texture and assign to the mesh or mesh groups.

I am expecting some issues, but please feel free to post/email comments.
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++, C#, VB, SQL, PL-SQL, JavaScript, HTML, Three.js, Darkbasic Pro (still love this language), Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; 12GB.
FPSC to GameGuru Tools: SegAutoWelder, Entity+Weapon Welder, FPEtoBAT, DBO2X
granada
Forum Support
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 26th Apr 2018 23:46
Many thanks I will experiment tomorrow


Dave
Windows 10 Pro 64 bit
GeForce GTX 1050 Ti
AMD FX (tm)-9590 Eight-core Processor
31.96 GB RAM
1920x1080,60 Hz
PM
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 27th Apr 2018 06:27
Thank you.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Super Clark
GameGuru TGC Backer
13
Years of Service
User Offline
Joined: 4th Apr 2011
Location: UK
Posted: 27th Apr 2018 11:59
Thanks m8 will have a play and let you know.
PM
JPH-GAMES
3D Media Maker
9
Years of Service
User Offline
Joined: 13th Feb 2015
Location: Belgique
Posted: 28th Apr 2018 19:02
Thank you Bored of the Rings

Intel Pentium CPU G3220 3.000 GHz , 8 GB Ram , NVIDIA GeForce GTX 745 2GB , Windows 10 64-bit.
GameGuru , S2Engine HD , Shoot EM Up , CopperCube 5 , Clicteam Fusion 2.5 , Platfinity .
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 29th Apr 2018 17:37
no problem at all guys.

I applied a fix, which I totally forgot to do, which forces the face(index) values in if there are none in the DBO file. A good example of this is the Cerberus weapon which I tested out as a saved DBO file and then exported it again as a .OBJ. I've applied a .MTL file and imported back into Fragmotion and the weapon now shows with the material/texture applied. Unfortunatley in Blender the .MTL file doesn't seem to get applied to the object unless I've missed something. Ages since I dabbled with Blender in any great depth for ages. I still am in "baby brain" mode.

Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++, C#, VB, SQL, PL-SQL, JavaScript, HTML, Three.js, Darkbasic Pro (still love this language), Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; 12GB.
FPSC to GameGuru Tools: SegAutoWelder, Entity+Weapon Welder, FPEtoBAT, DBO2X

Attachments

Login to view attachments
DBUserX
5
Years of Service
User Offline
Joined: 10th Jul 2018
Location:
Posted: 10th Jul 2018 13:26
Hi Bored of the Rings,

Trying to download using the latest url, but I'm getting a 404 error. Is this still available for sharing and download? Thanks.
PM
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 10th Jul 2018 14:06 Edited at: 10th Jul 2018 14:22
@DBUserX: I'll be re-uploading at some point, it needs some more work. I might add the last version to the "Welder and other tools" thread.
https://forum.game-guru.com/thread/219806#msg2602285
It's one of those tools I want to get perfected or as near to perfection as close as possible as it's handling lots of situations PBE/EBE/legacy DBO.
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++, C#, VB, SQL, PL-SQL, JavaScript, HTML, Three.js, Darkbasic Pro (still love this language), Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; 12GB.
DBUserX
5
Years of Service
User Offline
Joined: 10th Jul 2018
Location:
Posted: 11th Jul 2018 11:19
Awesome, thanks! One question, so how will it handle dbo files with multiple UV textures? Does it split it into several meshes/models?

PM
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 17th Jul 2018 09:53
@DBUserX-sorry for delay in replying. I'll look at my program to see how I did it to get multiple UV textures working, I've totally forgotten but it does work ha ...oh dear the grey cells aren't always what they used to be..... The texturing side needs to be reworked really, it's a little tricky from what I recall. Sorry, it's all nappy changing, feeding and playing with my wee baby boy at the moment, so I get a bit "baby brain". Yes my wife also helps ha .... just kidding wifey
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++, C#, VB, SQL, PL-SQL, JavaScript, HTML, Three.js, Darkbasic Pro (still love this language), Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; 12GB.
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 18th Jul 2018 12:31 Edited at: 18th Jul 2018 12:38
ok, so for mutliple UVs/Materials, it's all laid out in the MaterialList section when exporting X file, see DBO to X DirectX output small excerpt below which it specifies 2 separate texturefilenames under 2 separate material sections, so the list would contain 0,0,0,0,0 etc for the 1st material, and then 1,1,1,1,1 etc for the 2nd material. It's all done per mesh group or limb if you like. Also see attached pic showing the Humvee from the FPSC Desert Storm Pack, which my program converted from the original FPSC DBO to X. The whole reason behind my conversion program was so that I could take a binary formatted X file and convert to readable ASCII and edit the texturefilename fields programatically rather than using Fragmotion or UU3D. By the way if any of my converted X files don't load in UU3D, then there is a problem with the text file somewhere usually, but can still load into Fragmotion. So UU3D is the real tester for this program.. Hope this answers the original question:

.......
1,
1,
1,
1,
1,
1,
1,
1;
Material hummer_D2 {
0.752941;0.752941;0.752941;1.000000;;
40.000000;
0.000000;0.000000;0.000000;;
0.000000;0.000000;0.000000;;

TextureFileName {
"hummer_D2.dds";
}
}
Material hummer_interior_D2 {
0.752941;0.752941;0.752941;1.000000;;
40.000000;
0.000000;0.000000;0.000000;;
0.000000;0.000000;0.000000;;

TextureFileName {
"hummer_interior_D2.dds";
}
}
}
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++, C#, VB, SQL, PL-SQL, JavaScript, HTML, Three.js, Darkbasic Pro (still love this language), Purebasic, others
Hardware: Dell Precision 490; AMD Radeon HD 7570; 12GB.

Attachments

Login to view attachments
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 18th Jul 2018 15:16
Excellent. Thank you.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Login to post a reply

Server time is: 2024-04-26 14:43:41
Your offset time is: 2024-04-26 14:43:41