Code Monkey home page Code Monkey logo

mass_compress's Introduction

Mass Compress

Takes a folder full of textures and compresses all of them, using Intel's ISPC Texture Compressor, and outputs them as .dds files.

Only works on.tga, .png, and .jpg files for inputs. Does it's best to figure out compression formats:

  • 1 channel (grayscale) - BC4
  • 2 channels (normal maps) - BC5
  • 3 channels (color) - BC1
  • 4 channels (color and alpha) - BC7

The whole thing is really bare bones, a lot of it is probably terrible, use at your own risk!

Building

  • Clone this repo
  • Make sure submodules are pulled to thirdparty/ * Don't forget to download the ISPC Compiler
  • Run premake5.exe vs2022
  • Build the solution build/Mass Compress.sln in Visual Studio

Using

  • run: mass-compress.exe INPUT_DIR <OUTPUT_DIR> [OPTIONS]
Mass Compress!
        Usage: mass-compress.exe INPUT_DIR <OUTPUT_DIR> [OPTIONS]
Arguements:
        INPUT_DIR : directory containing images you want to compress.
        OUTPUT_DIR : directory to output compress images too. If none is provided, it defaults to INPUT_DIR/compressed
Options:
        -h,--help : print this help message!
Description
Takes a folder full of textures and compresses all of them, using Intel's ISPC Texture Compressor, and outputs them as .dds files. Only works on.tga, .png, and .jpg files for inputs.
Does it's best to figure out compression formats:
        * 1 channel  (grayscale)        - BC4
        * 2 channels (normal maps)      - BC5
        * 3 channels (color)            - BC1
        * 4 channels (color and alpha)  - BC7

License

* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* mpetro wrote this file.  As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return.
* ----------------------------------------------------------------------------

mass_compress's People

Contributors

echofourpapa avatar

Stargazers

Justin Williams avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.