On Thursday 20 May 2004 18:34, Melchior FRANZ wrote: > OK, here's a new version, just so you can see how easy instrument face > creation with MetaPost is. Note that there's a function @() defined, that > maps the real instrument angles to MetaPost angles. So I could directly > input all the values as I saw them on the cockpit photo.
This @() function proved to be very powerfull and it made creating scales very easy. I can see this function modified to create non-linear scales (exponential, logaritmic ...), scales that go counter-clockwise ... I renamed it to aout() and ainn() when I needed two of it, because MetaPost apparently did not like names like @out() and @inn(). I would recomend to anyone trying to decide how to create instrument faces to at least take a look at MetaPost. With a bit of experience it becomes quicker and a lot more accurate than hand-drawing. Download Melchior's example and start from there! I used the example file to recreate the King Air Fuel Gauge, and I'm continuing to create several other instrument faces for the King Air. -- Roy Vegard Ovesen _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel