Howto talk:Use a Camera View in an Instrument

From FlightGear wiki
Jump to navigation Jump to search

Forum topic about the same subject

Yep, that's where this whole instrument idea came up actually.
~User:Omega1174

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)

od_gauge

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)

Q&A

  • There are already implemented ​​versions of Camera View?
    --Abassign 18:05, 20 March 2012 (EDT)