226
edits
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 | * CompositeViewer requires a [[Compositor]] build. | ||
* Extra view windows can be resized | * 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. | ||
* 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. | ||
* 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 == |
edits