Comments (3)
@ViNeek Thanks for the update
I currently use toktx
CLI to compress my textures to KTX2 as typically I ship my GLBs as geom only (without materials applied due to use case of multiple models and dynamic materials done in code).
My idea for wanting to do this within the tool is the ability to compare them visually after compression - it would be a little easier and faster than my current workflow to dial in the sweet spot between fidelity and compression. Typically I evaluate a texture's use based on the model's final use in the scene (e.g might have webp, or ktx, or png)
from gltf-compressor.
Hello, I'm glad that you find it useful.
Unfortunately, the tool does not currently support texture compression for standalone images.
A quick workaround is to use the bare minimum GLTF model and add all the textures that you wish to compress.
I'm including a a minimal GLTF file that you can use to compress multiple textures quad.zip. It definitely isn't the most elegant solution.
I don't know what image types you require, but for KTX2, the KTX repo offers compression tools that operate on standalone textures.
from gltf-compressor.
My idea for wanting to do this within the tool is the ability to compare them visually after compression - it would be a little easier and faster than my current workflow to dial in the sweet spot between fidelity and compression. Typically I evaluate a texture's use based on the model's final use in the scene (e.g might have webp, or ktx, or png)
Yes the comparison tool is great. You say you want to evaluate based on the model's final use in the scene. glTF is a way to provide your model to the tool so it can render it and display your textures.
Without the model, just comparing 2 images, I think the comparison tool will be much less useful.
from gltf-compressor.
Related Issues (15)
- Slow to run in Chrome? HOT 4
- Supporting Mipmaps?
- Error uploading a gltf file HOT 3
- Texture with custom ICC profile are not accurately compressed HOT 1
- Suggestion: "revert compression" button HOT 2
- File already Exists Copressed GLTF export HOT 2
- Suggestion: larger hotspot for before/after slider HOT 1
- 2D compare display issue HOT 4
- Loading a glTF that already contains KTX assets HOT 4
- Incorrect thumbnail gamma with KTX HOT 2
- Anisotropy support HOT 1
- Incorrect thumbnail aspect ratios with KTX HOT 4
- Uncaught TypeError: Cannot read properties of null (reading 'checked') HOT 1
- Anisotropy compression error? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gltf-compressor.