Changes

Jump to: navigation, search

Canvas View Camera Element

1,070 bytes added, 17:49, 23 August 2020
no edit summary
{{FGCquote
|It would make sense to integrate all efforts ([[CompositeViewer Support|CompositeViewer]], [[Canvas]] and [[Compositor]]) to create a [[Canvas_Development#Elements|Canvas Element]] that can render an [[Canvas_Development#Supporting_Cameras|arbitrary view]].
 
Some time ago I wrote what I think are the required steps to get something like cockpit mirrors working: [[#Roadmap]]
 
The main showstopper was having [[CompositeViewer Support]], but since that effort is underway, all the parts are there for someone willing to dive in.
|{{cite web |url=https://sourceforge.net/p/flightgear/mailman/message/37089780/
|title=<nowiki>Independent view windows</nowiki>
|author=<nowiki>Fernando García Liñán </nowiki>
|date=<nowiki>2020-08-20 14:27:58</nowiki>
}}
}}
 
{{infobox subsystem
|name = Canvas Camera Views
== Proof of Concept ==
{{Note|This is inspired by the long standing idea to render camera views to a texture for use as tailcams, gear views etc <ref>https://forum.flightgear.org/viewtopic.php?f=71&t=23929</ref>, it's based on code originally provided by F-JJTH<ref>https://forum.flightgear.org/viewtopic.php?f=71&t=23929#p317448</ref>, and subsequently reworked by Icecode GL and Hooray to integrate it with the Canvas system back in 2017<ref>https://forum.flightgear.org/viewtopic.php?f=47&t=32846&p=318046</ref>
At the time, the main issue was that the new view element needed to be explicitly updated, but that should no longer be the case thanks to James' work on the setPixel() API <ref>https://sourceforge.net/p/flightgear/mailman/message/36926486/</ref> which also means that sc::Image now has a <code>dirtyPixeldirtyPixels()</code> API which we can reuse <ref>https://sourceforge.net/p/flightgear/simgear/ci/ad3621e23b4056e1be7e8d9eb8dd4d513455add8/</ref>Due to the adoption of the [[Compositor]] framework, this will probably need to reworked to be properly integrated.Furthermore, beginning in mid 2020 Julian Smith has started working on optional [[CompositeViewer Support]] so that independent scene views can be rendered. }}
SimGear:
19,491
edits

Navigation menu