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

From FlightGear wiki
Jump to navigation Jump to search
mNo edit summary
(→‎od_gauge: new section)
Line 6: Line 6:
== What is the file name stuff all about? ==
== 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.--[[User:Hooray|Hooray]] 10:21, 22 February 2012 (EST)
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.--[[User:Hooray|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!
[[User:Zan|Zan]] 12:35, 22 February 2012 (EST)

Revision as of 17:35, 22 February 2012

Forum topic about the same subject

Omega, did you see http://flightgear.org/forums/viewtopic.php?f=6&t=13798?

Cheers Gijs 10:04, 22 February 2012 (EST)

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)