I’m trying to do some multi texture blending and I’m getting an OpenGL “invalid 
value” error for some reason that I can’t figure out. I’ve tracked it down to 
if I set the GL_RGB_SCALE_ARB parameter (via the 
osg::TexEnvCombine::setScale_RGB function) to anything other than 1.0 then the 
RenderStage::drawInner() function will print the error message: 

Warning: detected OpenGL error ‘invalid value’ after RenderBin::draw()  

Any idea why this would happen?

The funny thing is that it seems to render fine – modifying the rgb scale has 
the desired effect of brightening or darkening the two textures that I’m 
blending via modulate, but I’m just wondering if that error is something I 
should worry about.

Thanks.

Alex
....
After further investigation I've found that I can set the rgb scale to either 
1.0 or 2.0 without getting an error... which really only confuses me more.
....
OK never mind, I found this in the OpenGL documentation:

GL_INVALID_VALUE is generated if the params value for GL_RGB_SCALE or 
GL_ALPHA_SCALE are not one of 1.0, 2.0, or 4.0

I guess that's my problem.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=12142#12142





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to