On Thu, 2009-02-12 at 00:02 +0100, Oliver Heesakkers wrote: > On Wednesday 11 February 2009 19:00:46 Bo Berglund wrote: > > > > Thanks, > > now I can see the ASK21 from the top. > > But I have to give up anyway because there is no way I can understand this > > program. > > I'd hate to steal anyone's thunder, but I got inspired by this thread and > already knew some Blender, so I > > - copied Turn.rgb from Aircraft/c172p/Instruments/Turn to > Aircraft/ASK21/Models > > - Imported the contents of Turn.ac into ask21.ac and repositioned. > Gzipped result here: > http://www.heesakkers.info/showandtell/ask21.ac.gz > > - Copied the contents of Turn.xml into ask21.xml and did some tweaking (may > require some more fine-tuning). > Gzipped result here: > http://www.heesakkers.info/showandtell/ask21.xml.gz > > And the endresult: > http://www.heesakkers.info/showandtell/ask21.jpg > > I tried something similar with the attitude indicator, but that proved > massively more complicated.
While this method works, it can quickly become a nightmare, as you noticed. And it also makes it very difficult to re-use instruments. It is better to model 3-d instruments as separate models and import the instrument's xml file into the main xml file like this: <model> <name>AI</name> <path>Aircraft/Instruments-3/ai/ai.xml</path> <pitch> -5.0 </pitch> <offsets> <x-m>-3.3</x-m> <!-- +aft / -fwd --> <y-m> 0.0</y-m> <!-- +left/ -right --> <z-m> 0.6</z-m> <!-- +up / -down --> </offsets> </model> This allows easy switching to better models like the AI in the Grob-G115 simply by changing the path: <model> <name>AI</name> <path>Aircraft/Grob-G115/Models/Interior/Panel/Instruments/AI/AI.xml</path> <pitch> -5.0 </pitch> <offsets> <x-m>-3.3</x-m> <!-- +aft / -fwd --> <y-m> 0.0</y-m> <!-- +left/ -right --> <z-m> 0.6</z-m> <!-- +up / -down --> </offsets> </model> It also avoids the need to specify an angle in the rotation animation for the hands. It sounds like that may be the issue with the altimeter. Ron ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Flightgear-users mailing list Flightgear-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-users