[osg-users] disabled lighting after migration

Sebastian Schmidt herrdersuppen at gmail.com
Fri Jan 19 07:45:18 PST 2018


Found a dirty solution. Had nothing to with lighting.
It was easier for me to check for specific opengl calls inside drawable's drawImplementation().

I had to reset this:

Code:
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);


with:

> glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
> glTexEnvfv( GL_TEXTURE_ENV, GL_TEXTURE_ENV_COLOR, osg::Vec4(0.0,0.0,0.0,0.0).ptr());


Don't know why it happens with 3.4.1 and not with 3.0.1, coudln't find changes related to TexEnv.[/code]

------------------------
OSG Version: 3.0.1
OS: OpenSuse Leap 42.1

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







More information about the osg-users mailing list