219
edits
mNo edit summary |
(Some refactoring) |
||
Line 4: | Line 4: | ||
|sponsor=[[User|Cgdae]] | |sponsor=[[User|Cgdae]] | ||
|supporters= | |supporters= | ||
|status= | |status= | ||
|summary=[[CompositeViewer_Support]] already allows us to create multiple top-level windows showing different views of the same scenery. | |||
We want to extend CompositeViewer to render different views of the scenery to [[Canvas_Sandbox#CanvasCamera|Canvas elements]]. | |||
Then by displaying these canvas elements in a cockpit we will be able to implement things like: | |||
* Modern avionics: | |||
** Exterior views (tail cam, gear cam etc). | |||
** Synthetic terrain. | |||
* Rear-view mirrors. | |||
* Shuttle RMS arm/END EFF mode <ref>https://forum.flightgear.org/viewtopic.php?f=87&t=25747&p=282898&#p282898</ref> <ref>https://forum.flightgear.org/viewtopic.php?f=87&t=25747&hilit=&start=2160#p326104</ref> etc) <ref>https://sourceforge.net/p/flightgear/mailman/message/37147262/</ref> <ref>https://forum.flightgear.org/viewtopic.php?f=87&t=25747&hilit=&start=2160#p326182</ref> | |||
|background= | |background= | ||
[[CompositeViewer_Support | [[CompositeViewer_Support]]. | ||
Information about Canvas from Hooray | |||
The original set of patches (touching SimGear and fgdata) implements a new Canvas::Element by creating a sub-class named Canvas::View. The meat of it is in the constructor, i.e. Canvas::View::View(), where an off-screen camera (RTT/FBO) is set up, the FGCanvasSystemAdapter file has been extended to provide access to the FlightGear view manager to compute/obtain the view-specific view matrix, which is then used by this new canvas view element to update the offscreen camera in Canvas::View::update() accordingly. | The original set of patches (touching SimGear and fgdata) implements a new Canvas::Element by creating a sub-class named Canvas::View. The meat of it is in the constructor, i.e. Canvas::View::View(), where an off-screen camera (RTT/FBO) is set up, the FGCanvasSystemAdapter file has been extended to provide access to the FlightGear view manager to compute/obtain the view-specific view matrix, which is then used by this new canvas view element to update the offscreen camera in Canvas::View::update() accordingly. | ||
Line 24: | Line 34: | ||
* https://forum.flightgear.org/viewtopic.php?f=71&t=27985&p=264172&#p264175 | * https://forum.flightgear.org/viewtopic.php?f=71&t=27985&p=264172&#p264175 | ||
|skills=C++ | |skills=C++ | ||
|opportunities= <p/> | |opportunities= <p/> | ||
* OpenSceneGraph | |||
* Canvas | * Canvas | ||
* CompositeViewer | * CompositeViewer |
edits