2-components color model

Posted by Cyan on Game Development See other posts from Game Development or by Cyan
Published on 2012-11-03T12:55:22Z Indexed on 2012/11/03 17:23 UTC
Read the original article Hit count: 215

Filed under:
|
|

RGB is the natural color model for OpenGL. But a lot of other color models exist. For example, CMY(K) for printers, YUV for JPEG, the little cousins YCbCr and YCoCg, HSL & HSV from the 70's, and so on. All these models tend to share a common property : they are based on 3 components.

Therefore my question is : Does it exist a 2-components color model ? I'm surprised to not find any. I was expecting something along the line of Hue+light could exist. I guess it cannot be as "complete" as a true 3-components color model, but a fine-enough approximation will be good for my usecase.

The end objective is to store the 2 components into a single BC5 texture (GL_COMPRESSED_RED_GREEN_RGTC2 in OpenGL). The 3rd component requires a second fetch into a second texture, which hurts performance.

© Game Development or respective owner

Related posts about opengl

Related posts about textures