On Wed, Apr 4, 2012 at 8:58 PM, Felix Nawothnig
<[email protected]> wrote:
> 2012/4/3 Robert Osfield <[email protected]>:
>> Having mixed front face/back face within a single subgraph is not
>> ideal.  I would generally recommend that one should build/optimize a
>> scene graph so that the as much work as possible is done as
>> pre-processing/optimization/scene graph construction stage that
>> minimizes the number of state changes - in your case avoid if possible
>> all the osg::FrontFace entries in a subgraph by flipping the actual
>> triangles so that they are all consistent in orientation i.e. all
>> front face or all back face.
>
> Well yes - but this is not possible when the same triangles are
> rendered with both orientations  (i.e. when they can be reached
> through parental paths with both positive and negative determinants in
> the MVM)?
>
> The only thing one could do would be to duplicate the geometry...
> which is not really an optimization.
>
Is it only the parent roots that introduce the mirroring? If so, you
could attach a state set with the appropriate cull face setting to the
transform node that causes the mirroring.

Tim
> Felix
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to