Howto talk:Use a Camera View in an Instrument
Forum topic about the same subject
- Omega, did you see https://forum.flightgear.org/viewtopic.php?t=13798?
Cheers Gijs 10:04, 22 February 2012 (EST)
- Yep, that's where this whole instrument idea came up actually.
- Abassign, https://forum.flightgear.org/viewtopic.php?t=15797
--Abassign 18:09, 20 March 2012 (EDT)
What is the file name stuff all about?
Normally, you'd just render the camera view to a dynamically created texture, then use a visitor to replace the OSG texture with the dynamically created one. The od_gauge instrument would then get instantiated by referencing the new instrument type (such "camera-view") in the XML code. The od_gauge would handle setting up the texture stuff, the update() method would need to update the camera view (based on the view configuration specified in the property tree) and update the texture.--Hooray 10:21, 22 February 2012 (EST)
I sent you a message, but I also added a short section about how to use od_gauge in this system. Hope this helps, just ask if you need more info!
Zan 12:35, 22 February 2012 (EST)
- There are already implemented versions of Camera View?
--Abassign 18:05, 20 March 2012 (EDT)