226
edits
m (Added a better picture demonstrating multiple view windows, showing clouds etc.) |
(Added specific info about state of Jules' CompositeViewer work.) |
||
Line 86: | Line 86: | ||
{{Multicore}} | {{Multicore}} | ||
--> | --> | ||
== Jules' CompositeViewer work == | |||
=== Status 2020-9-27: === | |||
* Extra view windows now show textures and clouds etc, and rendering appears to be identical to the main view. | |||
* This works by creating a new Compositor instance for each extra view window, and calling its '''update()''' method each frame. | |||
=== General information: === | |||
* 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. | |||
* Extra view windows can be resized but they do not (currently) respond to mouse/keyboard. | |||
* Extra view windows can clone Pilot, Helicopter View or Chase View. | |||
* Closing extra view windows sometimes causes a crash. | |||
* 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. | |||
* Extra view windows can be resized but they do not (currently) respond to mouse/keyboard. | |||
* 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. | |||
* Extra view windows use a new view system called sview, which allows multiple instances and allows dynamic specification of eye and target points. | |||
=== Code === | |||
Latest code can be found at: | |||
https://sourceforge.net/u/cgdae/flightgear/ci/CompositeViewer | |||
https://sourceforge.net/u/cgdae/simgear/ci/CompositeViewer | |||
https://sourceforge.net/u/cgdae/fgdata/ci/CompositeViewer | |||
== History == | == History == |
edits