how to unpack bf2 atlas .dds file

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: helmut, XnTriq, xnview

Post Reply
Sonic030X
Posts: 3
Joined: Fri Apr 15, 2011 10:47 am

how to unpack bf2 atlas .dds file

Post 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
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Re: how to unpack bf2 atlas .dds file

Post by marsh »

This can make multiple pngs from a multipage dds:
nconvert.exe -v -in -1 -xall -out png -o convertedfile_###.png inputfile.dds
Sonic030X
Posts: 3
Joined: Fri Apr 15, 2011 10:47 am

Re: how to unpack bf2 atlas .dds file

Post 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
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Re: how to unpack bf2 atlas .dds file

Post 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.
Sonic030X
Posts: 3
Joined: Fri Apr 15, 2011 10:47 am

Re: how to unpack bf2 atlas .dds file

Post by Sonic030X »

thanks :D now i accidentally make an funny texture huhu :( . But thanks anyway.
Post Reply