[osg-users] sRGB frame buffer

Tugkan Calapoglu tugkan at vires.com
Tue Nov 3 00:16:05 PST 2009

I found out that one can simply call

stateset->setMode( GL_FRAMEBUFFER_SRGB_EXT , osg::StateAttribute::ON);

to enable sRGB mode. An explicit OSG support is not necessary.

I didn't try something like this with sRGB texture formats yet.


> Tugkan Calapoglu wrote:
>> Hi,
>> I couldn't find sRGB related GLX tokens in the source code so it looks
>> like sRGB color space is not supported by OSG at the moment. Am I right
>> or did I miss something?
> I don't have any experience with sRGB framebuffers (apart from hearing
> about them at SIGGRAPH one year), but I agree that it looks like OSG
> doesn't support them yet.
> --"J"
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> .

Tugkan Calapoglu

VIRES Simulationstechnologie GmbH
Oberaustrasse 34
83026 Rosenheim
phone    +49.8031.463641
fax      +49.8031.463645
email    tugkan at vires.com
internet www.vires.com
Sitz der Gesellschaft: Rosenheim
Handelsregister Traunstein  HRB 10410
Geschaeftsfuehrer: Marius Dupuis
                   Wunibald Karl

More information about the osg-users mailing list