(finally, a post from me that actually shows something useful instead  
of shuffling around chunks of code! If it makes anyone feel better,  
this is more or less what I've been working up to since September)

Two evening's hacking (and learning about OD-gauge and generally  
fighting OSG):

        http://files.goneabitbursar.com/nd-first-attempt.png

That's a route from EGPH down to NEW, following the east coast of the  
UK to OTR, then turning east to head for EHAM. Range is currently set  
to 320NM. Diamonds are airports, hexagons are NDBs or VORs. Fixes are  
disabled because there's too many at that scale.

(Everything else you can see is Syd's existing 777 NAV display, being  
able to hack up his existing instrument locally has made my life much  
easier, so huge thanks to Syd).

There's many lessons to be learned from this, about rendering and anti- 
aliasing of vector primitives especially. Next steps are to try using  
point sprites (should fix the AA issues, and allow using real  
symbols), and replacing RTT with a simple sub-camera, since I am  
pretty sure the render-texture is not helping. (Clipping and z- 
ordering is probably easier with the render-texture though). I'm also  
going to try using an actual mesh for each symbol, with shared  
osg::Geometry and each icon placed using a osg::MatrixTransform. I  
worry about the performance of OSG scenes with (potentially) hundreds  
of nodes, though - is this fear mis-placed?

Aside from the above there's all the obvious features - showing  
runways, including waypoint data, and so on. As might be guessed, this  
is several weeks away from being suitable to go into CVS.

Comments appreciated, especially on the rendering - both making it  
efficient, and making it prettier.

James


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to