CompositeViewer support: Difference between revisions

Jump to navigation Jump to search
m
No edit summary
Line 82: Line 82:


* Use of composite viewer is enabled on the command line with: '''--composite-viewer=1'''
* Use of composite viewer is enabled on the command line with: '''--composite-viewer=1'''
* The UI for creating new view windows works by cloning the current view, or using eye/target points from two earlier views. This seems to be a convenient way of creating new view windows without having to open a dialogue box or similar.
* CompositeViewer requires a [[Compositor]] build.
* Extra view windows can be resized but they do not (currently) respond to mouse/keyboard.
* The current UI for creating new view windows works by using new View menu items to clone the current view or or use eye/target points from two earlier views. This seems to be convenient and avoids the need for a separate dialogue box or similar.
* Extra view windows can be resized.
* Extra view windows can clone Pilot View, Helicopter View, Chase View or Tower View.
* Extra view windows can clone Pilot View, Helicopter View, Chase View or Tower View.
* Closing extra view windows sometimes closes Flightgear down because the code thinks the main window has been closed.
* One can create an extra view window that keeps two aircraft in view with one in the foreground. E.g. see this video from 2020-9-6 (prior to getting textures working): http://op59.net/fg-cv-demo3.mpeg
* One can create an extra view window that keeps two aircraft in view with one in the foreground. E.g. see this video from 2020-9-6 (prior to getting textures working): http://op59.net/fg-cv-demo3.mpeg
* One can create an extra view window that uses the eye points from two recent views as eye and target. For example this allows a window to show a view from one aircraft to another.
* One can create an extra view window that uses the eye points from two recent views as eye and target. For example this allows a window to show a view from one aircraft to another.
* After creation of an extra view window, the main window needs to be resized, otherwise menus etc don't appear properly.
* There doesn't seem to be any noticeable speed penalty if no extra view windows are opened.
* There doesn't seem to be any noticeable speed penalty if no extra view windows are opened.
* Extra view windows use a new view system called sview, which allows multiple instances and allows dynamic specification of eye and target points.
* Extra view windows use a new view system called sview, which allows multiple instances and allows dynamic specification of eye and target points.
=== Current limitations that we know how to fix ===
* Extra view windows don't have event handling, so for example one cannot change the angle of a cloned Helicopter view.
* Sview does not support some views, e.g. Tower View AGL, Fly-past view.
* Sview does not support aircraft-specific views.
=== Bugs that we don't understand ===
* Creating extra view windows can cause the main window to seemingly think it has same size as the new window, so menubar and dialogues are shown partially or not at all. A manual resize of the main window seems to sort things out.
* Attempting to closing an extra view windows sometimes closes a different extra view window.
* Attempting to closing an extra view windows sometimes closes Flightgear down because the code thinks the main window has been closed.


=== Code ===
=== Code ===
Line 99: Line 111:
     https://sourceforge.net/u/cgdae/simgear/ci/CompositeViewer
     https://sourceforge.net/u/cgdae/simgear/ci/CompositeViewer
     https://sourceforge.net/u/cgdae/fgdata/ci/CompositeViewer
     https://sourceforge.net/u/cgdae/fgdata/ci/CompositeViewer


== History ==
== History ==
226

edits

Navigation menu