Since David complained about the damping mechanism in viewer.cxx, I wanted to check whether the same feature could also be done in Nasal. (Damping is at the moment only used in the "Chase View". It's just lowpass filters on the heading/pitch/roll angles, which make the viewer follow the aircraft with a slight delay.)
I had to fix a jitter problem in the main loop, and there's one more to fix for replay (already done on my HD), but most of the work is done. There's now a manager in $FG_ROOT/Nasal/view.nas where one can register Nasal view handlers. This is by default only done for the Fly-By-View. Here are two more examples. Each of them is an XML file with some settings and embedded Nasal code, and implements a new "view". You can try them out at once: $ fgfs --aircraft=j3cub ~/chase-view-II.xml ~/model-view.xml Use full paths for the files. (~ expands to a full path :-) chase-view-II.xml is a proof of concept. It's a slightly extended chase view, where also latitude/longitude/altitude are lowpass filtered. This is nice to see how far an aircraft drops in a barrel roll. Might also be nice for movies. model-view.xml allows to cycle through all carriers, tankers, aircraft, multiplayer (untested) with the q/Q keys. m. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel