Canvas troubleshooting: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
Line 455: Line 455:
This will create a new group for each text node, added to its parent group.
This will create a new group for each text node, added to its parent group.
Once we inspect the scene graph, we'll see that it contains quite a bit of redundant state.
Once we inspect the scene graph, we'll see that it contains quite a bit of redundant state.
However, this is where osg::Optimizer can shine, by optimizing our scene graph to get rid of redundant state sets and flatten the scene graph.
However, this is where osg::Optimizer[http://trac.openscenegraph.org/projects/osg//wiki/Support/UserGuides/OptimizerOptions] can shine, by optimizing our scene graph to get rid of redundant state sets and flatten the scene graph.


{{WIP}}
{{WIP}}


Next, we're going to explore dumping complex scene graphs to disk, i.e. those created by Canvas MFDs like the [[NavDisplay]] - so that we can check what the scene graph looks like after optimizing/simplifying it using osg::Simplifier and osg::Optimizer respectively, while also investigating which additional OSG properties may be helpful to expose for the optimizer/simplifier to provide satisfying results.
Next, we're going to explore dumping complex scene graphs to disk, i.e. those created by Canvas MFDs like the [[NavDisplay]] - so that we can check what the scene graph looks like after optimizing/simplifying it using osg::Simplifier and osg::Optimizer respectively, while also investigating which additional OSG properties may be helpful to expose for the optimizer/simplifier to provide satisfying results.
=== Using Osg::Optimizer for complex Canvases ===
Once a complex Canvas texture (MFD) has been set up, the following patch can be used for invoking osgUtil::Optimizer() to finalize and optimize the scene graph:
<syntaxhighlight lang="diff">
</syntaxhighlight>


=== Tracking update frequency per Canvas/Element ===
=== Tracking update frequency per Canvas/Element ===
Line 678: Line 685:
</syntaxhighlight>
</syntaxhighlight>


=== Using Osg::Optimizer for complex Canvases ===
Once a complex Canvas texture (MFD) has been set up, the following patch can be used for invoking osgUtil::Optimizer() to finalize and optimize the scene graph:
<syntaxhighlight lang="diff">
</syntaxhighlight>


=== Experimenting with Osg::Simplifier  ===
=== Experimenting with Osg::Simplifier  ===

Navigation menu