Howto:Use a Camera View in an Instrument: Difference between revisions

Jump to navigation Jump to search
m
mNo edit summary
Line 2: Line 2:


To create a 2D instrument which shows a camera view. The steps involved in creating such an instrument would be:
To create a 2D instrument which shows a camera view. The steps involved in creating such an instrument would be:
* Write a C++ Function, preferably an instrument that renders Camera View to texture.
* Write a C++ Function, preferably an instrument that renders a Camera View (i.e. from the property tree) to a texture.
* Write an XML 2D Instrument file that displays the texture.
* Write an XML 2D Instrument file that displays the texture (Zan has already code doing this sort of thing [http://flightgear.org/forums/viewtopic.php?f=6&t=13798])
* Also, the OD_Gauge instrument is the instrument that needs to be implemented here


=Pre-Requisites=
=Pre-Requisites=

Navigation menu