Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0029528Open CASCADE[OCCT] OCCT:Visualizationpublic2018-02-28 10:442019-05-07 14:24
Assigned Tomnv 
PlatformOSOS Version
Product Version 
Target Version[OCCT] 7.4.0*Fixed in Version 
Summary0029528: Visualization, TKOpenGl - allow defining sRGB textures
DescriptionMost 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).
TagsNo tags attached.
Test case number
Attached Files

- Relationships
related to 0030700assignediko Open CASCADE Visualization, TKOpenGl - support PBR Metallic-Roughness shading model 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2018-02-28 10:44 kgv New Issue
2018-02-28 10:44 kgv Assigned To => kgv
2018-10-01 07:44 kgv Assigned To kgv => mnv
2018-10-01 07:44 kgv Status new => assigned
2018-10-01 07:57 kgv Relationship added related to 0030181
2019-05-07 14:24 kgv Relationship added related to 0030700

Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker