Howto:Use a Camera View in an Instrument: Difference between revisions

Jump to navigation Jump to search
Line 32: Line 32:


== osgViewer::CompositeViewer ==
== osgViewer::CompositeViewer ==
This section is in the process of being moved to a dedicated article: [[CompositeViewer Support]].
This section has been moved to a dedicated article: [[CompositeViewer Support]].
 
http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00108.html
 
* The cameras in a camera group don't need to render directly to the screen. They can render to a texture which can be used either in the scene, like in a video screen in the instrument panel, or for distortion correction in a projected or dome environment. Open Scene Graph supports a CompositeViewer object that supports rendering from several widely separated viewpoints, complete with support for multiple terrain pager threads. We could move to CompositeViewer and support simultaneous views from e.g., the tower, AI models, drones, etc.
* Also, it would make sense to implement a moving map as a scene graph in its own right with its own pager. That would require a change in  current fg architecture to use a CompositeViewer instead of a single Viewer, but we're contemplating that anyway.
* Independent view windows are not supported at the present time, but it would be a good project. We would have to start using a different OSG class, CompositeViewer, to support multiple views from independent view points. Our terrain pager would need a complete overhaul to use the PagedLOD scheme of OSG, and the Flightgear view manager would need to be aware multiple active views.
* Yes, and that's not really supported by the current architecture, neither by the tile cache nor by osgViewer::Viewer. We would need to move to a CompositeViewer model, which supports several scene graphs, and rely completely on the osg database paging machinery.
 
 
* http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg17001.html
* http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg17263.html
* http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg27134.html
* http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg28869.html
* http://www.mail-archive.com/search?q=compositeviewer&l=flightgear-devel%40lists.sourceforge.net
* http://lists.openscenegraph.org/mmsearch.cgi/osg-users-openscenegraph.org?config=osg-users-openscenegraph.org;method=and;format=short;sort=score;words=CompositeViewer;page=1
* http://www.mail-archive.com/search?l=flightgear-devel%40lists.sourceforge.net&q=PagedLOD+
* http://lists.openscenegraph.org/mmsearch.cgi/osg-users-openscenegraph.org?restrict=;exclude=;config=osg-users-openscenegraph.org;method=and;format=short;sort=score;words=PagedLOD;page=1
* http://flightgear.org/forums/viewtopic.php?f=17&t=18813


=Part 1: Rendering a Camera View to Texture=
=Part 1: Rendering a Camera View to Texture=

Navigation menu