|View Issue Details [ Jump to Notes ] ||[ Issue History ] [ Print ] |
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0029528||Open CASCADE||[OCCT] OCCT:Visualization||public||2018-02-28 10:44||2018-10-01 07:57|
|Assigned To||mnv|| |
|Product Version|| |
|Target Version||[OCCT] 7.4.0*||Fixed in Version|| |
|Summary||0029528: Visualization, TKOpenGl - allow defining sRGB textures|
|Description||Most color textures are in sRGB color space, not in linear RGB color space which is used by OpenGL by default. The following changes should be done:|
- Uploading color texture should be done with a flag indicating if original image is in linear RGB (GL_RGB8/GL_RGBA8) or non-linear sRGB color space (GL_SRGB8/GL_SRGB8_ALPHA8). Most 24/32-bit images are in sRGB in fact, but the choice should be done at application side. This will allow avoiding color distortion while using 24/32-bit textures.
- 24/32-bit RGB off-screen frame buffers should be creating with sRGB textures, when supported by platform. sRGB off-screen frame buffer would allow preserving more image quality (as perceived by human eye).
- GL_FRAMEBUFFER_SRGB should be enabled for proper color encoding (automatic RGB->sRGB conversion while writing values into sRGB FBO) and alpha blending operation (proper alpha blending should be done in linear RGB color space, not in sRGB).
|Tags||No tags attached.|
|Test case number|