Page 1 of 1
Gameloft BDAE/TGA files
Posted: Mon Jan 30, 2023 3:40 am
by fengye
Hi, friends.Does anyone know how to read the bdae file of gameloft with it tga format textures?I saw a lot of related content on the forum, but it seems that it doesn't match this version of bdae.
Most textures in this game are 2D, at first I thought this kind of file was a skel file similar to lived2d,but the final load failed.
The TGA file can be decompressed, and then use pvrtool to read the extracted ktx file.
Here are some samples
https://drive.google.com/file/d/109p2pm ... p=drivesdk
Two models, two textures, two action files, and one file called MaskedRgbVertexTextureAnim.bdae(I think this file may be useful:) )
thanks
Re: Gameloft BDAE/TGA files
Posted: Mon Jan 30, 2023 5:26 pm
by shakotay2
fengye wrote: ↑Mon Jan 30, 2023 3:40 amI saw a lot of related content on the forum, but it seems that it doesn't match this version of bdae.
Hi, using
hex2obj usually matches for bdae

:
(first sub mesh only)
dragon_ancient_divine_energy-bdae.png
It's relative face indices here, so some more work to do...
(Means next FI block starts with 0000 0100 0200 again.)
Re: Gameloft BDAE/TGA files
Posted: Tue Jan 31, 2023 1:13 am
by fengye
shakotay2 wrote: ↑Mon Jan 30, 2023 5:26 pm
(Means next FI block starts with 0000 0100 0200 again.)
Wow, this is really shocking. I made some mistakes before. I didn't know these until I saw this. Thank you
Is there a way to load 2d texture? The bdae file seems to have referenced all the required textures once. But I don't understand how the file in tga format is loaded
I'm sorry I'm very noob on this

Re: Gameloft BDAE/TGA files
Posted: Tue Jan 31, 2023 4:46 pm
by shakotay2
Usually I don't care for textures; doesn't look like original "Tga" ("PK" in the file header, packed?)
(You could try out to give it a proper tga header.)
Or you'll need to trick around with tools that support raw data format, TextureFinder, or similar.
.
dragon_ancient_dev_energy.jpg
(If you look at file offset 0x2AB8A you could guess to split the file here and handle the parts separately.)
Re: Gameloft BDAE/TGA files
Posted: Wed Feb 01, 2023 6:50 am
by fengye
shakotay2 wrote: ↑Tue Jan 31, 2023 4:46 pm
doesn't look like original "Tga" ("PK" in the file header, packed?)
(You could try out to give it a proper tga header.)
The TGA file can be decompressed, and then use pvrtool to read the extracted ktx file.(but also some else can not read)
Anyway,really thanks for your answer. - I will try
Re: Gameloft BDAE/TGA files
Posted: Wed Feb 01, 2023 9:41 am
by shakotay2
fengye wrote: ↑Wed Feb 01, 2023 6:50 amThe TGA file can be decompressed, and then use pvrtool to read the extracted ktx file.(but also some else can not read)
See. Fine. I don't support people who get impertinent. Cheers...
Then
why did you ask:
Is there a way to load 2d texture? The bdae file seems to have referenced all the required textures once. But I don't understand how the file in tga format is loaded
Re: Gameloft BDAE/TGA files
Posted: Wed Feb 01, 2023 12:22 pm
by fengye
shakotay2 wrote: ↑Wed Feb 01, 2023 9:41 am
Then
why did you ask:
Is there a way to load 2d texture? The bdae file seems to have referenced all the required textures once. But I don't understand how the file in tga format is loaded
That might an expression error I made.Sorry for that and I mean to load the tga file into the bdae model.
The structure of the tga file is very similar to the lived2d file I studied before.I think the loading method will be similar. - But that's wrong.
the bdae file references all the required textures. I think I need to spend some time figuring out how these things are loaded.
Re: Gameloft BDAE/TGA files
Posted: Sat May 06, 2023 5:47 pm
by fajNYgosciu1234
both of the ktx files work using pvrtextool
https://i.imgur.com/DF4lbGp.png
https://i.imgur.com/LM02C8O.png
but you gotta combine the textures to have proper alpha