Skip to content

Commit 56df585

Browse files
committed
2 parents e17091e + 628f794 commit 56df585

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

README.md

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
11
# 3CPS-Three-Pass-Supercompression
2-
This repository contains the code for performing the DXT1 re-compression of the proposed 3CPS supercompression
3-
4-
Work in progress
2+
This repository contains the code for performing the DXT1 re-compression step of the proposed 3CPS supercompression algorithm.
53

64
The re-compression step, based on the Maximum Difference Cut, is implemented in the NVIDIA Texture Tools (repository: https://github.com/castano/nvidia-texture-tools).
7-
A primary feature of NVIDIA Texture Tools is the DXT compression. Our contribution refers to nvtt library, and more specifically, CompressorDXT1 file, containing the functions for performing DXT1 texture compression.
5+
A primary feature of NVIDIA Texture Tools is the DXT compression. Our solution contributes to the `nvtt` library, optimizing the `CompressorDXT1` functionaly (including functions for performing DXT1 texture compression).
6+
7+
To install and run our 3CPS solution, you can use the support for building Docker image and running encoding experiments in a Docker container. The folder `textures/` contains uncompressed examplar textures.
8+
9+
## Docker Build
10+
```
11+
$ docker build -t 3cps-nvidia-texture-tools:latest .
12+
```
13+
14+
## Docker Run
815

9-
How to build (Linux/OSX):
10-
Use cmake and the provided configure script:
16+
To run the software for all examplar textures in `textures/` folder:
17+
```
18+
$ docker run -ti -v $(pwd)/textures:/nvidia-texture-tools/data --rm 3cps-nvidia-texture-tool
19+
```
1120

12-
$./configure
13-
$make
14-
$sudo make install
21+
To run the software for a particular texture `t.jpg` from the `textures/` folder:
22+
```
23+
$ docker run -ti -v $(pwd)/textures:/nvidia-texture-tools/data --rm 3cps-nvidia-texture-tool t.jpg
24+
```
1525

16-
How to run it:
17-
nvcompress -bc1 'out'.png 'in'.dss
26+
Moreover, to compare the re-compression step from our 3CPS solution to the original DXT1 compression, build the Docker image in the folder `base-nvidia-texture-tools/`. The build will clone the original nvidia-texture-tools repository and install the software. Then, run the Docker container on all examplar textures or on a particular texture.

0 commit comments

Comments
 (0)