Page 1 of 6

Asphalt 8 .pig

Posted: Fri Apr 04, 2014 4:03 pm
by barti
Has anyone tried looking into this model format? I'm interested in ripping models from this game because it has some unique vehicles. I've tried looking through the files and I was only able to find face indices and dummy floats. The vertex data seems like it's there but it's suspiciously small and doesn't give any proper meshes. It could be compressed in some way (or I'm looking at it incorrectly)

Samples:
http://www53.zippyshare.com/v/70121626/file.html

Re: Asphalt 8 .pig

Posted: Fri Apr 04, 2014 6:54 pm
by fatduck
Vertices are in short integer format.
XYZ / factor

eg: car_aston_martin_zagato.pig @ 0x1D70
1st vertex => [4281,-7359,-3373] / 32767

Re: Asphalt 8 .pig

Posted: Sat Apr 26, 2014 8:05 am
by huckleberrypie
Any progress on this format?

Re: Asphalt 8 .pig

Posted: Sat Apr 26, 2014 1:40 pm
by Chipicao
I'm working on a maxscript, but I still have some things to figure out before it's finished.

Image Image

Re: Asphalt 8 .pig

Posted: Sat Apr 26, 2014 1:46 pm
by barti
I wanted to make a MaxScript for this format, but I didn't get around to it yet. Nice work Chipicao :)

Re: Asphalt 8 .pig

Posted: Sat Apr 26, 2014 11:00 pm
by TomWin
barti wrote:Has anyone tried looking into this model format? I'm interested in ripping models from this game because it has some unique vehicles. I've tried looking through the files and I was only able to find face indices and dummy floats. The vertex data seems like it's there but it's suspiciously small and doesn't give any proper meshes. It could be compressed in some way (or I'm looking at it incorrectly)

Samples:
http://www53.zippyshare.com/v/70121626/file.html
where I find that pig files in android system? in sdcard0/Android/data, there I dont find car files

Re: Asphalt 8 .pig

Posted: Sat Apr 26, 2014 11:30 pm
by barti
Just go to sdcard0\Android\obb\com.gameloft.android.ANMP.GloftA8HM - there will be an .obb file, change the extension to .zip and extract or open it in any ZIP viewer. There will be a "models" folder and inside will be all models (.pig) and textures (.pvr in my case) from the game (car models have the "car_" prefix in the name)

Re: Asphalt 8 .pig

Posted: Sun Apr 27, 2014 4:52 am
by TomWin
GT Racing 2 also has obb file com.gameloft.android.ANMP.GloftRAHM but I cannot extract it. it has models with interiors

Re: Asphalt 8 .pig

Posted: Sun Apr 27, 2014 7:46 am
by Chipicao
TomWin wrote:GT Racing 2 also has obb file com.gameloft.android.ANMP.GloftRAHM but I cannot extract it. it has models with interiors
How do you extract those gla files?

Re: Asphalt 8 .pig

Posted: Sun Apr 27, 2014 1:03 pm
by TomWin
I dont have pvr files but tga, I cannot open them. i tried real racing 3 script for convert that tga files to pvr format but it doesnt work
URUS TEXTURES: http://www.mediafire.com/download/tzc2tgr4t2k2hhq

these obb files are in sdcard0\Android\obb\

Re: Asphalt 8 .pig

Posted: Sun Apr 27, 2014 1:35 pm
by barti
TomWin wrote:I dont have pvr files but tga, I cannot open them. i tried real racing 3 script for convert that tga files to pvr format but it doesnt work
URUS TEXTURES: http://www.mediafire.com/download/tzc2tgr4t2k2hhq

these obb files are in sdcard0\Android\obb\
My bad, they're pvr files, only with tga extension. PVRTexTool can open them. If it doesn't work, change extension from .tga to .pvr and it should work.

I tried opening the GT Racing 2 files a while ago, but I couldn't open the .obb and I needed space on my SD Card so I deleted it.

Re: Asphalt 8 .pig

Posted: Sun Apr 27, 2014 1:44 pm
by TomWin
barti wrote:
TomWin wrote:I dont have pvr files but tga, I cannot open them. i tried real racing 3 script for convert that tga files to pvr format but it doesnt work
URUS TEXTURES: http://www.mediafire.com/download/tzc2tgr4t2k2hhq

these obb files are in sdcard0\Android\obb\
My bad, they're pvr files, only with tga extension. PVRTexTool can open them. If it doesn't work, change extension from .tga to .pvr and it should work.

I tried opening the GT Racing 2 files a while ago, but I couldn't open the .obb and I needed space on my SD Card so I deleted it.
it doesnt work in PVRTexTool v3.20. I get this error message:
File open failed:
Texture appears empty: file may be corrupt, If data appears to be intact, you could try wrapping as Raw data (Ctrl-D)
If file data is valid you could try to wrap it as RAW data.

that RAW thing doesnt work

Re: Asphalt 8 .pig

Posted: Sun Apr 27, 2014 1:58 pm
by barti
I just installed the latest version from the link I gave before, and it loads all of your samples perfectly
Image

Re: Asphalt 8 .pig

Posted: Sun Apr 27, 2014 2:14 pm
by Chipicao
Yes, the extension just needs to be changed from tga to pvr.
TomWin wrote:these obb files are in sdcard0\Android\obb\
Unfortunately I don't have smartphone :|
Does anyone know a way to extract gla files?

Re: Asphalt 8 .pig

Posted: Sun Apr 27, 2014 3:31 pm
by TomWin
barti wrote:I just installed the latest version from the link I gave before, and it loads all of your samples perfectly
Image
thanks a lot, this new one worked, looks like previous version couldnt read them only