Hi, I'm using the osgViewer ::Viewer to perform floating point rendering in
an FBO and I have a problem when blending is enabled. My blending function
is defined by GL_ONE_MINUS_SRC_ALPHA for destination and GL_ONE for source.
The problem occurs when I draw a facet with a small color in front of a
facet with a big color. For example lets define:
Rd = (0.2, 0.0, 0.0, 1.0) // RGBA
Rs = (6e-9, 0.0, 0.0, 1.0) //RGBA
In theory I was expecting to get:
Rd = Rs + (1-As)Rd
Rd = 6e-9 + (1-1)*0.2
Rd = 6e-9 +(0)*0.2 = 6e-9
but I get1.7920927e-8
Does someone have an idea what is going on? I currently using the
GL_FLOAT_RGBA32_NV format as internal format of my attached texture. I have
also tried the GL_FLOAT_RGBA16_NV, GL_RGBA32F_ARB, GL_RGBA16F_ARB and I
always get the same kind of results. Tell me if you need part of my code in
order to help me.
Thank you
Jonathan
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org