Page 1 of 1

how to unpack bf2 atlas .dds file

Posted: Fri Apr 15, 2011 10:57 am
by Sonic030X
hey i making an personal mod but i cant unpack the HUD images i follow this post from other forum but i cant understand :(
an bf2 modder wrote:What i did was i used few command line tools and the new "prompt" powershell, which i assume is the new thing that comes with Vista.

Firstly, i installed Nconvert and "unpacked" the atlas .dds files to .png's. I then wrote script with powershell to parse etc. the atlas .tai file which contains all the needed data to extract the lightmaps from the atlas. I used imagemagick convert tool to do the image manipulation stuff (crop). Lastly, i then took those new extracted images from the atlas textures and used Nvidia's DDS Utilies (nvdxt) to repack them into DDS. Thats it.

This makes the shadows for all the objects work again...
thanks in advance :)

EDIT : Im using Windows 7 Ultimate x64

Re: how to unpack bf2 atlas .dds file

Posted: Fri Apr 15, 2011 4:19 pm
by marsh
This can make multiple pngs from a multipage dds:
nconvert.exe -v -in -1 -xall -out png -o convertedfile_###.png inputfile.dds

Re: how to unpack bf2 atlas .dds file

Posted: Sun Apr 17, 2011 8:52 am
by Sonic030X
Oh very very thanks i discover some easter eggs like have an LCAC in game in bf2 hehe :D and i can make an personal mod for me :D :D :D

EDIT : How to convert from .png to .dds

Re: how to unpack bf2 atlas .dds file

Posted: Wed Apr 20, 2011 5:12 pm
by marsh
Sonic030X wrote: EDIT : How to convert from .png to .dds
That depends on multipage. For a rough idea of capabilities, I suggest looking at gui version (XnConvert). This didn't exist when games were made.

Re: how to unpack bf2 atlas .dds file

Posted: Fri Apr 22, 2011 5:45 am
by Sonic030X
thanks :D now i accidentally make an funny texture huhu :( . But thanks anyway.