CompositeViewer support: Difference between revisions

Jump to navigation Jump to search
m
→‎Status: remove obsolete paragraph
mNo edit summary
m (→‎Status: remove obsolete paragraph)
Line 2: Line 2:
{{Affected by Compositor}}
{{Affected by Compositor}}
-->
-->
== Status ==
{{Note|No one is claiming CompositeViewer support is anywhere near being ready to be  enabled by default - there are lots of issues to sort out.
Also, the potential benefits we get with an improved viewing system will be really significant. (For example easy creation at runtime of multiple arbitrary top-level
windows showing Tower View / Helicopter View etc on one's own or multiplayer aircraft, new dynamic views such as the view from one aircraft to another, etc etc.)
With free software one has to rely on developer enthusiasm for getting things done, and this doesn't always last forever and doesn't always match up with roadmaps.
Furthermore, Jules stated it could be years before we actually make significant progress to VSG, and it would be a real shame to block other projects in the meantime.<ref>https://sourceforge.net/p/flightgear/mailman/message/37076818/</ref>}}
In 07/2020, Julian Smith reported some  success by changing flightgear's FGRenderer's osgViewer::Viewer to an osgViewer::CompositeViewer with a single osgViewer::View, and patching up all the calling code so it compiles.
It all builds ok, and he now got fgfs mostly working with CompositeViewer and the usual single View.<ref>https://sourceforge.net/p/flightgear/mailman/flightgear-devel/</ref>
Julian made the use of CompositeViewer configurable at runtime, which might simplify getting involved in testing/further development - the same binary can now be used for normal use and for investigating CompositeViewer behaviour.
CompositeViewer is not a build-time option any more. It is disabled by default, and enabled on startup with a new --composite-viewer=1 option.<ref>https://sourceforge.net/p/flightgear/mailman/message/37075130/</ref>
To execute the patched binary with the compositeviewer enabled, use: <code>fgfs  --composite-viewer=1</code> <ref>https://sourceforge.net/u/cgdae/flightgear/ci/059cf073c74d43a57c11f363cae6c9271772d869</ref>
{{Note|According to Richard, when testing the database pager extensively (running with 20 DB pager threads), the main problem is the way that random objects (buildings, vegetation) are inserted into the scene graph doesn't seem  to be compatible with lots of pager threads.<ref>https://sourceforge.net/p/flightgear/mailman/message/36536293/</ref>}}
In August 2020 Julian reported additional progress: He set things up so that one can 'clone' the current view using a key-press. This creates a new top-level view window with its own copy of the current view's camera projection matrix etc. The view is added to the CompositeViewer so it sees the same scene.


{{infobox subsystem
{{infobox subsystem

Navigation menu