Canvas view camera element: Difference between revisions

Jump to navigation Jump to search
m
→‎C++: https://forum.flightgear.org/viewtopic.php?f=71&t=27985&p=264718&hilit=synthetic+terrain#p264718
m (→‎Gallery: TODO: should be using gallery tag here)
m (→‎C++: https://forum.flightgear.org/viewtopic.php?f=71&t=27985&p=264718&hilit=synthetic+terrain#p264718)
Line 66: Line 66:
* make the size of the texture re-configurable using properties
* make the size of the texture re-configurable using properties


== Ideas ==
* support draw-masks for scene graph features (terrain, skydome, models etc) ?
* work out what is needed for [https://forum.flightgear.org/viewtopic.php?f=71&t=27985&p=264718&hilit=synthetic+terrain#p264718v synthetic terrain views] [http://www.aircraftspruce.eu/catalog/graphics/10-03932s.jpg]
== C++ ==
== C++ ==
The following is the boilerplate code neede to add a new element to the Canvas system inheriting from the Canvas::Image class, i.e. an element having its own allocated Image/texture buffer, which is what we can use to render a camera into it:
The following is the boilerplate code neede to add a new element to the Canvas system inheriting from the Canvas::Image class, i.e. an element having its own allocated Image/texture buffer, which is what we can use to render a camera into it:

Navigation menu