CompositeViewer support: Difference between revisions

Jump to navigation Jump to search
Line 92: Line 92:
* CompositeViewer and Viewer share much of their implementation, the only key difference is that Viewer "is a" View, while CompositeViewer has a list of Views.  All the event handling, camera manipulator and scene graph setting is done a the View level so has identical API to access. <ref>https://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg17372.html</ref>
* CompositeViewer and Viewer share much of their implementation, the only key difference is that Viewer "is a" View, while CompositeViewer has a list of Views.  All the event handling, camera manipulator and scene graph setting is done a the View level so has identical API to access. <ref>https://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg17372.html</ref>
=== Views ===
=== Views ===
The OSG is design to allow you to rendering multiple views at once,
there is no need to clone the scene graph, you simply add another View
to a CompositeView to add the extra rendering.  You can toggle
optional View's on/off as you need them. <ref>https://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg78130.html</ref>
For example, you could have a working set of View's that share the scene graph, and share
For example, you could have a working set of View's that share the scene graph, and share
the same graphics context.  All these Views would be added to the
the same graphics context.  All these Views would be added to the

Navigation menu