ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Sun Oct 22, 2017 8:46 pm

All times are UTC




Post new topic  Reply to topic  [ 36 posts ]  Go to page 1 2 Next
Author Message
 Post subject: Gameloft's BDAE files
PostPosted: Sat Sep 03, 2016 11:34 am 

Joined: Sat Sep 03, 2016 11:27 am
Posts: 2
I know this has been covered before... but the .bdae files turned out to have different file versions and not being opened via the script.
In details: I tried to open Gangstar: West Coast Hutsle's models... and got an error. Turned out the reason for it was another version of the .bdae file format.
So guys, if anyone could modify the script to import\export different .bdae versions, it would be pretty good for everyone. I enclose some files: one just static building, a character with rigging and a car that uses dummys for car parts


Attachments:
File comment: the archive, also has the car and characters textures for testing the UV mapping
gangstar.rar [226.82 KiB]
Downloaded 96 times
Top
   
PostPosted: Sun Sep 04, 2016 7:56 am 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 335
first submesh of car_porsche.bdae :D
Image

if you are in urgent need for these models you could always
use Hex2obj to avoid having to do a format analysis and this
format actually looks like an easy one to learn it with :D


Top
   
PostPosted: Sun Sep 04, 2016 8:00 am 

Joined: Sat Sep 03, 2016 11:27 am
Posts: 2
Acewell wrote:
first submesh of car_porsche.bdae :D
Image

if you are in urgent need for these models you could always
use Hex2obj to avoid having to do a format analysis and this
format actually looks like an easy one to learn it with :D

YOU'RE A FRIGGIN MAGICIAN DUDE
i never had any success


Top
   
PostPosted: Sat Nov 05, 2016 7:30 am 

Joined: Sat Nov 05, 2016 6:55 am
Posts: 10
I've been going over these posts and the tutorial and I still cannot get this to work. I have not been able to get my head around how the start address for the vertices is calculated

Can anyone tell me where I am messing up.
I have been able to get a very jagged random mesh out of this.
Attachment:
zombiegirl.zip [62.42 KiB]
Downloaded 70 times


[attachment]zg_bdae_problem.png[/attachment]


Attachments:
zg_bdae_problem.png [26.82 KiB]
Not downloaded yet
Top
   
PostPosted: Sat Nov 05, 2016 10:04 pm 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 335
you were getting close :D
this is the first of 3 submeshes
Image
find the FVF size and set the column width in your hex editor to that number
and the pattern will reveal the start and end addresses more clear.

you also might want to update your Hex2obj program in case the one you have has a known bug

Attachment:
zombiegirl_bdae.png [33.35 KiB]
Not downloaded yet


Top
   
PostPosted: Sun Nov 06, 2016 6:32 pm 

Joined: Sat Nov 05, 2016 6:55 am
Posts: 10
Thanks for the tips!

I'm using Hex2obj 0.22 because its the most recent version that I could find.

I noticed the my interface shows the VB size rather than the FvF and my UVB start size is greyed out, but I am still able to replicate this using your values.

Which method are you using to calculate the FvF size?


Top
   
PostPosted: Sun Nov 06, 2016 9:55 pm 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 335
you can find the latest release (Hex2obj_024d) in this post on Xentax
http://forum.xentax.com/viewtopic.php?p=119417#p119417

the previous release (hex2obj_0.24c) can be found in the first post of that thread here
http://forum.xentax.com/viewtopic.php?p=89547#p89547


the only method i use for finding an unknown FVF size is to locate repeating
bytes and test for a found pattern by trying to line them up vertically. :)


Top
   
PostPosted: Tue Nov 08, 2016 3:49 am 

Joined: Sat Nov 05, 2016 6:55 am
Posts: 10
Thanks. This method helped me out a lot.

Some files are much easier than others. A few of the Backstab models that i converted turned out to be squished on the x axis.

Saw something like this in a forum somewhere before, but I have not been able to find a solution

Attachment:
britishgirl02_issue.jpg [105.28 KiB]
Not downloaded yet


Top
   
PostPosted: Sat Apr 01, 2017 7:39 pm 

Joined: Mon Nov 21, 2016 1:51 am
Posts: 8
On a similar note, I've been fiddling around with .bdae files from Spider-Man Unlimited in Hex2Obj, but to no avail. All I've gathered so far is the start of the face indices, and that the file has multiple sub-meshes. If anyone would be willing to help me out, I'd greatly appreciate it.

The zip file includes the character model I was trying to work on (Mesh_Spiderman.bdae), as a couple extra ones for comparison.


Attachments:
File comment: zip also includes the normal map for the base spiderman mesh, for UV testing
spiderman_unlimited_bdae.zip [993.6 KiB]
Downloaded 36 times
Top
   
PostPosted: Sun Apr 02, 2017 4:57 am 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 335
Mesh_Spiderman.bdae :D
Image
vertex count stored at 0x75cc
vertex block start address stored at 0x7600
face count stored at 0x76dc
face indices start address stored at 0x76e8


Attachments:
Mesh_Spiderman_bdae.png [38.15 KiB]
Not downloaded yet
Top
   
PostPosted: Sun Apr 02, 2017 5:52 am 

Joined: Mon Nov 21, 2016 1:51 am
Posts: 8
Acewell wrote:
Mesh_Spiderman.bdae :D
Image
vertex count stored at 0x75cc
vertex block start address stored at 0x7600
face count stored at 0x76dc
face indices start address stored at 0x76e8


Wow! Thanks so much for the quick reply! Looks like I had the start for the face indices and the vertex data right, but nothing else. This will be a huge help, thank you! :)


Top
   
PostPosted: Sun Apr 02, 2017 6:15 am 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 335
here is a Noesis python script to open your bdae samples :D
Attachment:
fmt_SpiderManUnlimited_bdae.zip [1.16 KiB]
Downloaded 82 times

supports geometry and UVs


Last edited by Acewell on Wed Apr 05, 2017 7:49 am, edited 1 time in total.

Top
   
PostPosted: Sun Apr 02, 2017 6:53 pm 

Joined: Mon Nov 21, 2016 1:51 am
Posts: 8
Acewell wrote:
here is a Noesis python script to open your bdae samples :D
fmt_SpiderManUnlimited_bdae.zip
supports geometry and UVs


Thanks!

Say, I saw from another thread that you've taken a look at the Gameloft .TGA files. Have you had any luck converting them? Most of the textures in Spider-Man Unlimited (aside from normal maps) are these special .TGA formats that actually contain many different .PVR files. I haven't been able to figure out any way to convert them, as PVRTexTool refuses to open them.


Attachments:
File comment: A couple .tga's from the game
spiderman_unlimited_tga.zip [817.99 KiB]
Downloaded 43 times
Top
   
PostPosted: Sun Apr 02, 2017 10:48 pm 

Joined: Mon Nov 21, 2016 1:51 am
Posts: 8
Nevermind, looks like the iOS versions of the tga's open in PVRTexTool when renamed to .pvr


Top
   
PostPosted: Sun Apr 02, 2017 10:59 pm 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 335
your Spiderman2099_D.tga and SpidermanArmored_D.tga samples can be extracted to 3 separate files
with 7-zip then you have a folder with the *.pvr files that probably can be converted with PVRTexTool,
the rgb and alpha channels are separated but you should be able re-combine them in Photoshop.
the SpidermanArmored_S.tga sample is not split and you should be able to just convert that with PVRTexTool.


Top
   
PostPosted: Tue Apr 04, 2017 9:35 am 

Joined: Tue Mar 15, 2016 3:38 pm
Posts: 67
Some meshes works,some doesn't
http://i.imgur.com/uqLNSA4.png
More .bdae samples
https://mega.nz/#!m8JURAbY!Kp7E6e5HfFrC ... KYIN_RhDRQ
https://mega.nz/#!TwQEmJqQ!UL9QPn3k9eex ... Zf0xduGciw

Thanks,and i'm glad what there are finally script for these files,i'm looked for it for a long time :)


Top
   
PostPosted: Tue Apr 04, 2017 11:13 pm 

Joined: Mon Nov 21, 2016 1:51 am
Posts: 8
Doprond wrote:
Some meshes works,some doesn't
http://i.imgur.com/uqLNSA4.png
More .bdae samples
https://mega.nz/#!m8JURAbY!Kp7E6e5HfFrC ... KYIN_RhDRQ
https://mega.nz/#!TwQEmJqQ!UL9QPn3k9eex ... Zf0xduGciw

Thanks,and i'm glad what there are finally script for these files,i'm looked for it for a long time :)


I noticed that as well, and when I tool a look at certain .bdae files (Mesh_Spiderman_NewDesign.bdae for example) it appears that they are actually .dat archives renamed to .bdae. Extract those .bdae files using the zip2.bms script for quickbms, and then you'll get a couple files, one of them being something along the lines of "little_endian_not_quantized.bdae". Unfortunately even after extracting these .bdae files they still can't be opened with the Noesis script, but you can now properly import them into Hex2Obj with some work.


Top
   
PostPosted: Wed Apr 05, 2017 7:55 am 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 335
okay i updated the script here to open a few more of those samples :D
viewtopic.php?p=21904#p21904
there is probably still 15-20 of them that don't look right to me though,
this will take further investigation and you will also have to extract some like Big4Rig
mentioned so they can be read by the script or else the offsets are thrown off track.
for the ones that still don't open you can use Hex2obj to easily get them for the time being. :)


Top
   
PostPosted: Wed Apr 05, 2017 8:02 am 

Joined: Tue Mar 15, 2016 3:38 pm
Posts: 67
Awesome work,thanks,now most of bdae files can be successfully opened :D
http://i.imgur.com/wccHL8v.png

P.S Btw,acewell,since your pm is closed,i'm going to make a public request
Can you take a look on these models? they are from MGS HD Collection,i already made topic at Xentax but no one responds,also i tried to pm Shakotay but he is busy.I tried a script for 3ds max but imported models looks isn't good
http://i.imgur.com/J2et8kS.png
i hope you can help me,samples here:
https://mega.nz/#!fhYEjZbb!Joz-dADbZ5K- ... Wteqp2vfDc
thanks.


Top
   
PostPosted: Wed Apr 05, 2017 9:04 am 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 335
i just noticed some of these bdae files have submeshes which opens up another can of worms,
...i was hoping this format version was going to be a quick thing i could make a script for :(

@Doprond
i thought daemon already was taken care of Metal Gear games, that is probably better
discussed in a new thread though because it is not Gameloft bdae format :)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 36 posts ]  Go to page 1 2 Next

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited