All Projects → TimvanScherpenzeel → Texture Compressor

TimvanScherpenzeel / Texture Compressor

Licence: mit
CLI tool for texture compression using ASTC, ETC, PVRTC and S3TC in a KTX container.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Texture Compressor

Detect Gpu
Classifies GPUs based on their 3D rendering benchmark score allowing the developer to provide sensible default settings for graphically intensive applications.
Stars: ✭ 460 (+194.87%)
Mutual labels:  webgl, threejs, gpu
Expo Voxel
🎮🌳 Voxel Terrain made in React Native. ∛
Stars: ✭ 169 (+8.33%)
Mutual labels:  game-development, webgl, threejs
Roygbiv
A 3D engine for the Web
Stars: ✭ 499 (+219.87%)
Mutual labels:  game-development, webgl, threejs
Glas
WebGL in WebAssembly with AssemblyScript
Stars: ✭ 278 (+78.21%)
Mutual labels:  game-development, webgl, threejs
Ballanceonline Demo
A web version of Ballance, using Three.js and Ammo.js
Stars: ✭ 26 (-83.33%)
Mutual labels:  game-development, webgl, threejs
Ego
A lightweight decision making library for game AI.
Stars: ✭ 145 (-7.05%)
Mutual labels:  webgl, threejs
Ng Three Template
This is a basic template project to start with Angular 11.x and ThreeJS
Stars: ✭ 144 (-7.69%)
Mutual labels:  webgl, threejs
Canoe
Canoe is a Nano Wallet heavily based on the MIT licensed Copay wallet from Bitpay
Stars: ✭ 146 (-6.41%)
Mutual labels:  mobile, desktop
Antipasto
🍽 Juicy starter for three.js
Stars: ✭ 147 (-5.77%)
Mutual labels:  webgl, threejs
R3f Next Starter
Repo is moving to https://github.com/pmndrs/react-three-next
Stars: ✭ 137 (-12.18%)
Mutual labels:  webgl, threejs
Fsynth
Web-based and pixels-based collaborative synthesizer
Stars: ✭ 146 (-6.41%)
Mutual labels:  webgl, gpu
Lazy
Kule Lazy4 / CSS Framework
Stars: ✭ 147 (-5.77%)
Mutual labels:  mobile, desktop
3d Force Graph
3D force-directed graph component using ThreeJS/WebGL
Stars: ✭ 2,386 (+1429.49%)
Mutual labels:  webgl, threejs
Interactive Repulsive Effect
🍫 An interactive repulsion effect of grid items as seen in BestServedBold's Dribbble shot "Holographic-Interactions".
Stars: ✭ 141 (-9.62%)
Mutual labels:  webgl, threejs
Andromeda
This is a WebGL recreation of the popular music video Gorillaz - Andromeda.
Stars: ✭ 145 (-7.05%)
Mutual labels:  webgl, threejs
React Globe.gl
React component for Globe Data Visualization using ThreeJS/WebGL
Stars: ✭ 139 (-10.9%)
Mutual labels:  webgl, threejs
Jeelizfacefilter
Javascript/WebGL lightweight face tracking library designed for augmented reality webcam filters. Features : multiple faces detection, rotation, mouth opening. Various integration examples are provided (Three.js, Babylon.js, FaceSwap, Canvas2D, CSS3D...).
Stars: ✭ 2,042 (+1208.97%)
Mutual labels:  webgl, threejs
Interactivelandscape
An exploration of an animated interactive landscape built with three.js.
Stars: ✭ 150 (-3.85%)
Mutual labels:  webgl, threejs
Geo Three
Tile based geographic world map visualization library for threejs
Stars: ✭ 146 (-6.41%)
Mutual labels:  webgl, threejs
Wechart
Create all the [ch]arts by cax or three.js - Cax 和 three.js 创造一切图[表]
Stars: ✭ 152 (-2.56%)
Mutual labels:  webgl, threejs

Texture Compressor

npm version

CLI tool for texture compression using ASTC, ETC, PVRTC and S3TC in a KTX container.

Sponsor

BTC

ETH

DASH

LTC

Installation

Make sure you have Node.js installed.

 $ npm install texture-compressor

Live demo

Live demo

Documentation

Supported devices table

Supported parameters

Recommended parameters

CLI Usage

ASTC

$ node ./bin/texture-compressor -i input/example.png -t astc -c ASTC_4x4 -q astcmedium -o output/example-astc.ktx -y -m -vb

ETC

$ node ./bin/texture-compressor -i input/example.png -t etc -c ETC2_RGB -q etcfast -o output/example-etc.ktx -y -m -vb

PVRTC

$ node ./bin/texture-compressor -i input/example.png -t pvrtc -c PVRTC1_2 -q pvrtcnormal -o output/example-pvrtc.ktx -y -m -vb

S3TC

$ node ./bin/texture-compressor -i input/example.png -t s3tc -c DXT1 -q normal -o output/example-s3tc.ktx -y -m -vb

Module usage

const { pack } = require('./dist/cli/lib/index');

pack({
  type: 'astc',
  input: 'input/example.png',
  output: 'output/example-astc.ktx',
  compression: 'ASTC_4x4',
  quality: 'astcmedium',
  verbose: true,
}).then(() => console.log('done!'));

Flags

Required

-i, --input [example: ./input/example.png] [required]
-o, --output [example: ./output/example.ktx] [required]
-t, --type [example: astc, etc, pvrtc, s3tc] [required]
-c, --compression [example: ASTC_4x4, ETC2_RGB, PVRTC1_2, DXT1] [required]
-q, --quality [example: astcmedium, etcfast, pvrtcnormal, normal] [required]

Optional

-vb, --verbose [true / false, default: false] [not required]

-rs, --square ['no', '-', '+', default: +] [not required]
-rp, --pot ['no', '-', '+', default: +] [not required]
-m, --mipmap [true / false, default: false] [not required]
-y, --flipY [tue / false, default: false] [not required]

Tool flags

Tool flags are not processed by texture-compressor but rather directly by the binary you are targeting itself.

For example adding --flags ["usesourceformat DXT1A" "alphaThreshold 200"] will pass usesourceformat DXT1A and alphaThreshold 200 directly to Crunch.

Please be aware that these flags are tool specific and can therefore not be directly applied to the other binaries.

-f, --flags ["flag value" "flag value"] [not required]

To find tool specific flags please refer to the manuals of ASTC, ETC, PVRTC, S3TC.

License

My work is released under the MIT license.

This repository distributes multiple binary tools for Windows, Mac and Linux. This product includes components of the PowerVR™ SDK from Imagination Technologies Limited.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].