ETC2 DDS PNG decompress/compress

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
SEBIX327
Posts: 18
Joined: Fri Jan 29, 2021 4:24 pm

ETC2 DDS PNG decompress/compress

Post by SEBIX327 »

Good morning, please help.
How to extract .png files from .dds? And how do I compile them later? Below I am sending files.
Link: https://drive.google.com/drive/folders/ ... sp=sharing
coredevel
Posts: 75
Joined: Tue May 30, 2017 1:10 am

Re: ETC2 DDS PNG decompress/compress

Post by coredevel »

Where do they come from? Source?

EC1/EC2 texture data in DDS format is not very common. I doubt readers will recognize it. Since DDS is just a container, you could try to rewrite the texture data under a different header like .ktx, and try to load it in PVRTextureTool.
SEBIX327
Posts: 18
Joined: Fri Jan 29, 2021 4:24 pm

Re: ETC2 DDS PNG decompress/compress

Post by SEBIX327 »

coredevel wrote:Where do they come from? Source?

EC1/EC2 texture data in DDS format is not very common. I doubt readers will recognize it. Since DDS is just a container, you could try to rewrite the texture data under a different header like .ktx, and try to load it in PVRTextureTool.


The source is games from Playrix Gardenscapes Homescapes Township etc.

Could you tell me what and how should I do?
coredevel
Posts: 75
Joined: Tue May 30, 2017 1:10 am

Re: ETC2 DDS PNG decompress/compress

Post by coredevel »

Are you a coder? Write script? This is a programming task.

Formats like dds and ktx are containers, so you can take the texture data from the dds container, and copy it to a ktx container. PVRTexTool can be used to load ktx files.
https://developer.imaginationtech.com/pvrtextool/

If you can't program, then you'll have to find a dds2ktx tool.