Hello Michael, On 02/16/2011 01:28 PM, Michael Raab wrote: > My colleague prepared an example that produces more material changes > than expected. > On thing I noticed is that the number of material changes depends on the > camera position. > May that issue be related to transparency sorting/rendering?
yes, the bottom row of cubes (blue-ish) has a BlendChunk with _sfDestFactor = GL_ONE_MINUS_SRC_ALPHA, so OpenSG has to consider it transparent. If you then look at the appropriate angle the blue and gray cubes have to been drawn alternatingly to maintain back to front sorting and you get the additional state changes. 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