Hello,
as I understand, OSG sorts the draw tree by material to minimize the state changes. This works perfectly for "normal" materials. I created a simple test scene with n objects and one material and get just one state change. But as soon as I and a shaderprogram chunk to the material, the statistics overlay reports n state changes with n = number of matrix changes. So it seems that there is a state change for every object even if only one material is used in the whole scene. Is that a bug? Cheers, Volker PS: using OpenSG2 on Win7, Nvidia 580
------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users