Comments (9)
Rather than adding native support for A8L8, I'll add full support for arbitrary
RGBA
pixel formats. These will be specified with the
CompressionOptions::setPixelFormat
method. In addition to that, I'll also add support for arbitrary swizzles of the
input data, using some sort of HLSL notation. I hope that will fit your needs.
Original comment by [email protected]
on 15 May 2007 at 8:44
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from nvidia-texture-tools.
Original comment by [email protected]
on 29 May 2007 at 9:52
- Changed state: Accepted
from nvidia-texture-tools.
Original comment by [email protected]
on 29 May 2007 at 9:52
from nvidia-texture-tools.
Full support for RGBA pixel formats is already there, but the input swizzle is
not
implemented yet.
Original comment by [email protected]
on 16 Nov 2007 at 11:27
- Changed state: Started
from nvidia-texture-tools.
Rather than swizzles, I'll add arbitrary color transformations. Swizzles can be
implemented with simple linear transforms, and those allow extra flexibility,
for
example, if you want to create a luminance alpha texture, you would do:
inputOptions.setColorTransform(ColorTransform_Linear);
inputOptions.setLinearTransform(0, 0.333f, 0.333f, 0.333f, 0.0f);
inputOptions.setLinearTransform(1, 0.0f, 0.0f, 0.0f, 1.0f);
inputOptions.setLinearTransform(2, 0.0f, 0.0f, 0.0f, 0.0f);
inputOptions.setLinearTransform(3, 0.0f, 0.0f, 0.0f, 0.0f);
Original comment by [email protected]
on 16 Nov 2007 at 11:58
from nvidia-texture-tools.
Original comment by [email protected]
on 28 Nov 2007 at 3:17
- Added labels: Milestone-Release1.0
from nvidia-texture-tools.
postponed to 2.1
Original comment by [email protected]
on 4 Feb 2008 at 11:23
- Added labels: Milestone-Release2.1
- Removed labels: Milestone-Release1.0
from nvidia-texture-tools.
Just copying a suggestion by Ignacio for how to perform swizzles:
inputOptions.setColorTransform(ColorTransform_Swizzle);
inputOptions.setSwizzleTransform(2, 1, 0, 3); // .zyxw
Original comment by [email protected]
on 14 Feb 2008 at 12:18
from nvidia-texture-tools.
Linear color transforms and swizzles are now supported in trunk! This feature
will be
part of the next minor release (2.1.0).
Original comment by [email protected]
on 6 May 2008 at 11:21
- Changed state: Fixed
from nvidia-texture-tools.
Related Issues (20)
- Reading a two channel PNG (greyscale + alpha) via ImageIO::loadSTB() strips the alpha channel
- Weird code in BlockCTX1::evaluatePalette
- Assertion failed: isValidPtr(m_buffer) for nvdecompress
- Decompressing ETC2 and saving out as KTX HOT 2
- nvidia-texture-tools fails to build on aarch64 HOT 1
- make test failing for all tests
- MinGW build under Windows HOT 2
- /usr/include/crt/host_config.h:119:2: error: #error -- unsupported GNU version (and fix)
- src/nvtt/tools/thumbnailer.cpp fails to build HOT 2
- src/nvtt/icbc.cpp compilation errors HOT 6
- Building error in GCC HOT 2
- RAW-output of a compressed image HOT 3
- Master fails to build, claims a file is missing: HOT 1
- Build errors in etcpack.cxx.o HOT 4
- Relation to NVIDIA Texture Tools exporter HOT 1
- Compile error on master branch. HOT 3
- For distribution please recompile nvtt library (Windows) with more recent Visual Studio HOT 2
- BC7 compression is very slow HOT 1
- seg fault with -bc1 -fast
- binaries faulty
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 nvidia-texture-tools.