Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

How to convert DDS with DXT1 to normal file?

Featured Replies

  • Author
  • Localization

fuhuan416, posted Wed Jul 13, 2016 9:23 am (15240)


I used below QuickBMS script to convert a file of DDS with DXT3, it can be converted and i will see a normal picture.
But use this script convert DXT1, the image will become a mosaic picture.
I just want to convert DXT1 to a normal picture, any one help me please?
I uploaded a package to the mega.nz, there're 2 files in there, 9700.dds is DXT1, 9728.dds is DXT3, the first one will be mosaic, the second one will be normal converted.
The download key code: !JRS0D7ttupMyzfyP6WgXcYNg22RPGbc9RWguaT6TgvE

Quote:
set MEMORY_FILE binary "\x44\x44\x53\x20\x7C\x00\x00\x00\x07\x10\x0A\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x20\x00\x00\x00\x05\x00\x00\x00\x44\x58\x54\x31\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x10\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
endian big
get size long
getdstring null 0xF
get type byte
get width1 byte
get width2 byte
get height1 byte
get height2 byte
if type == 1
putVarChr MEMORY_FILE 0x57 0x33
endif
if type == 0
putVarChr MEMORY_FILE 0x57 0x31
endif
putVarChr MEMORY_FILE 0x11 width1 byte
putVarChr MEMORY_FILE 0x10 width2 byte
putVarChr MEMORY_FILE 0xD height1 byte
putVarChr MEMORY_FILE 0xC height2 byte
get name filename
append
math size - 0x50
log MEMORY_FILE 0x50 SIZE
append
set count size
math count / 2
goto 0x80 MEMORY_FILE
for i = 0 savepos start MEMORY_FILE
endian little
get num short MEMORY_FILE
endian big
putVarChr MEMORY_FILE start num short
next i
endian little
math SIZE = 0x80
log NAME 0 SIZE MEMORY_FILE

Image
  • Author
  • Localization

Acewell, posted Wed Jul 13, 2016 10:04 am (15243)


can you please attach the samples to your post? :D
  • Author
  • Localization

TheUkrainianBard, posted Wed Jul 13, 2016 11:06 am (15246)


Image viewers like XnView or IrfanView plugin can view valid DDS and save to any [installed/enabled] format.
  • Author
  • Localization

fuhuan416, posted Wed Jul 13, 2016 8:36 pm (15252)


Acewell wrote:
can you please attach the samples to your post? :D




Ok, i attached those 2 files in attach.
  • Author
  • Localization

fuhuan416, posted Wed Jul 13, 2016 8:50 pm (15253)


TheUkrainianBard wrote:
Image viewers like XnView or IrfanView plugin can view valid DDS and save to any [installed/enabled] format.


I tried that way before, not usefully, the picture still mosaic, i think the problem maybe should about the script. :mrgreen:
  • Author
  • Localization

aluigi, posted Thu Jul 14, 2016 6:25 am (15259)


That script has been written by chrrox for IdolM@ster, just in case.
  • Author
  • Localization

Acewell, posted Thu Jul 14, 2016 10:49 pm (15293)


I don't know what the deal is with 9700.dds but even if 9728.dds appears to convert correctly, the image data is shifted 16 bytes too far in both. the converted header should be 128 bytes long and not 144 bytes. maybe your samples are a variant of what was used to write the script and that is why they are having problems :?
  • Author
  • Localization

fuhuan416, posted Thu Jul 14, 2016 11:26 pm (15295)


Acewell wrote:
I don't know what the deal is with 9700.dds but even if 9728.dds appears to convert correctly, the image data is shifted 16 bytes too far in both. the converted header should be 128 bytes long and not 144 bytes. maybe your samples are a variant of what was used to write the script and that is why they are having problems :?


Thanks man, you're did your best, like Mr.Admin said that script just for the 'Idlo M@ster', i attached files are 'TEKKEN 6', there two games are developed by NAMCO.
  • Author
  • Localization

Acewell, posted Fri Jul 15, 2016 8:50 am (15316)


i fixed the bms script to work with your Tekken 6 samples :D


i just added a new type for dxt5 and adjusted the shift to account for the extra 16 bytes


edit
i made a Noesis script to open these dds samples :D

Tekken6_dds.zip

tex_Tekken6_dds.zip

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.