Hello Josef, On 02/09/2011 06:09 AM, Josef Grunig wrote: > yes, it works fine for me. I said I'm not used to OpenSG coding... ;-)
ok, thanks for testing. > Anyway my code comes from the basis of the > RenderAction::getMaterialStates() method; probably there might be some > possible refactoring too. yes, I was looking at this too and wondering why it does things in this convoluted way ;) > You may have noticed I've added a GLMatrixMode(GL_PROJECTION) before > the second last glPopMatrix() in the draw function. > I did that because I get a GL_STACK_UNDERFLOW when rendering (only in > the PolygonForeground) some MultipassMaterials. > I supposed that the state activate or the deactivate of some chunk > changes somehow the matrix mode to GL_MODELVIEW, while it seems > expecting GL_PROJECTION yes, for example TextureTransformChunk switches to the texture matrix stack and then back to modelview, I added the glMatrixMode() call. Cheers, Carsten ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users