Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix banding and dark edges evident in 2D viewer #74
This issue has been fixed within cortex.
IECoreGL ColorTexture now uses GL_RGB16 as the internal colour format to the glTexImage2D call. This fixes colour banding in subtle gradients and edges with an alpha fade off. GL_RGB16 was chosen as it is supported from OpenGl1.1 and earlier graphics cards that don't support it will reduce their bit precision to GL_RGB8.
Please see the following document for more details: http://developer.download.nvidia.com/opengl/texture_formats/nv_ogl_texture_formats.pdf
Currently the 2D viewer is prone to banding and dark edges (when viewing images with alpha channels).
A screen grab showing the problem is attached.
Here's a sample scene to generate an image with an edge