Hello Gerrit, I have tested your fix finally. Unfortunately I have some new problems now.
I have uploaded a zip containing as much info I could gather to http://www.sendspace.com/file/vr79bj I have made two different test corresponding to the two sub folders in the zip: 1. Load the osb-file directly into my scene: See Scene.png for this test. The three solids two the right are coming from the osb-file and the right most cylinder is newly created after file loading. The sphere is missing the material and is created after the right cylinder. => Silhouettes are not displayed and new body creation does not always show the material shading. => glIntercept logs an error GL ERROR - Function glUniform1iARB(0,1) generated error GL_INVALID_OPERATION => OpenSG issued a WARNING: (..\..\..\..\Comp\intern\opensg\Source\System\State\Base\OSGTextureObjChunk.cpp,2060): TextureObjChunk::deactivate precheck failed: Der Vorgang ist ungültig. (0x502) 2. Load the osb-file with a preview providing file chooser dialog. a) After first display of the osb-file the material is shown but not the silhouettes (the solid edges are rendered correctly) (preview1.png). b) After the second rendering and after this only the silhouettes (and the correctly rendered edges) are drawn (preview2.png). => glIntercept logs an error GL ERROR - Function glUniformMatrix4fvARB(0,1,false,[1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,376.098145,104.484680,98.600464,1.000000]) generated error GL_INVALID_OPERATION => and OpenSG issued the WARNING: (..\..\..\..\Comp\intern\opensg\Source\System\State\Base\OSGTextureObjChunk.cpp,2060): TextureObjChunk::deactivate precheck failed: Der Vorgang ist ungültig. (0x502) If I change the line in ShaderExecutableChunk::changeFrom to // uiProgId = pEnv->getActiveShader(); the warnings and errors vanish and the first black solid is rendered correctly only after refresh. I hope that I could provide enough information so that you have a clear picture about what is happening. Best, Johannes ------------------------------------------------------------------------------ Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the endpoint security space. For insight on selecting the right partner to tackle endpoint security challenges, access the full report. http://p.sf.net/sfu/symantec-dev2dev _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users