1. This forum is obsolete and read-only. Feel free to contact us at support.keenswh.com

BC7 Compressor for dds? How to?

Discussion in 'Modding' started by mexpex, Jun 24, 2015.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. mexpex

    mexpex Apprentice Engineer

    Messages:
    257
    Hello guys.

    To make it short
    Since it came to my knowledge that the Devs uses dds textures with BC7 compression ive been searching all over the interwebs. So far ive not found any plugin or working tool(for me atleast)


    Tools that ive found not getting to work... cant create file error :mad:
    https://developer.amd.com/tools-and-sdks/graphics-development/amdcompress/

    Anyone that know how to get it working? :)

    Does anyohe know about a tool that supports bc7?
    Would if be hard to make a compressor/converter .tga -> .dds or png -> dds with bc7 compression?


    /mexpex
     
    Last edited: Jun 24, 2015
  2. mexmer

    mexmer Senior Engineer

    Messages:
    1,977
    well, visual studio can or xna game studio, but i doubt, that's tool you are looking for.
     
  3. Harag

    Harag Junior Engineer

    Messages:
    913
    You can use texconv. It's a command-line tool from Microsoft. According to the docs the tool supports bmp, jpg, png, and tiff. It can also convert from dds to those formats.
     
  4. mexpex

    mexpex Apprentice Engineer

    Messages:
    257
    By reading the doc i almost know how the command-line needs to be done but.... i dont have a .exe file.. Do i need to get the files/project into visual studio and compile it to an exe? im pretty lost on..

    PS: Im not a programmer
     
  5. Harag

    Harag Junior Engineer

    Messages:
    913
  6. mexpex

    mexpex Apprentice Engineer

    Messages:
    257
    Thx Harag :) Got it to work with:

    texconv -f BC7_UNORM -if FANT_DITHER CannonTurretBarrel_cm.tga

    which created a .dds

    THe mip (0) looks lika a copy of the original but mip 1-12 is all darker. gray -> almost black...
    Could it have to do with sRGB settings maybe?

    Using Pico Pixel to view the texture
     
  7. mexpex

    mexpex Apprentice Engineer

    Messages:
    257
    got it working :)
     
  8. mexpex

    mexpex Apprentice Engineer

    Messages:
    257
    Here is a comparsion between the compression methods

    Shown at mip-lvl 3
    [​IMG]


    Zoom-IN (clearly a better result using BC7)
    [​IMG]
    [​IMG]
     
  9. mexpex

    mexpex Apprentice Engineer

    Messages:
    257
    So I have continued my search for a BC7 compression tool and i found the Nvidia Texture Tool at github which supports BC7 compression, dds and mipmap generation using Kaiser image filtering(not supported by the texconv and the one i was looking for :)).
    https://github.com/castano/nvidia-texture-tools

    But i have no idea how successfully compile it in Visual studio(2013 Community). I always get "error C1083; Cannot open included file" but the files are in the project.... Im not a programmer so i have no idea why this is happening or how to solve it :/

    Any ideas? :(
     
Thread Status:
This last post in this thread was made more than 31 days old.