Am Mittwoch, den 22.04.2009, 09:08 +0200 schrieb Anders Gidenstam: > On Wed, 22 Apr 2009, Detlef Faber wrote: > > > Hello everybody, > > > > I have created a Selection Dialog for Logos (or Noseart) on the F4U, and > > I'm about to add this feature to other Aircraft as well, so I like to > > put the Logo XML and Texture files in /Aircraft/Generic/Logos. This way > > all Logos can be used with every Aircraft which have a square Object on > > the Fuselage (see F4U-1 for details). > > > > Does anybody have objections or suggestions for a better place? > > Sounds good to me. Can you put a XML model file and .ac for the square > object there too? I think it might be possible to make it possible to just > include the logo object as a submodel from an aircraft's 3d model XML > file. (Provided that the fuselage is fairly flat at that point, though.) >
I've just commited some logos in the path stated above. Additionally, there is a generic Logo Model (basically a square) and some files to include it in the Model and get an entry in the Menubar. Description from the logo.xml file: This is a generic square shaped Logo which can be referenced by any Aircraft Model as a submodel. To use it you need add the Model to your Model XML file: <model> <path>Aircraft/Generic/logo.xml</path> <name>logo</name> <offsets> <x-m>0.45</x-m> <y-m>-0.32</y-m> <z-m>-1.1</z-m> </offsets> </model> <animation> <type>scale</type> <object-name>logo</object-name> <x-offset>0.75</x-offset> <y-offset>1.0</y-offset> <z-offset>0.75</z-offset> </animation> <animation> <type>rotate</type> <object-name>logo</object-name> <offset-deg>5</offset-deg> <center> <x-m>0.45</x-m> <y-m>-0.415</y-m> <z-m>-1.1</z-m> </center> <axis> <x>1.00</x> <y>0.0</y> <z>0.0</z> </axis> </animation> <animation> <type>rotate</type> <object-name>logo</object-name> <offset-deg>3</offset-deg> <center> <x-m>0.45</x-m> <y-m>-0.42</y-m> <z-m>-1.1</z-m> </center> <axis> <x>0.0</x> <y>0.0</y> <z>1.0</z> </axis> </animation> The above example adds the Logo to the default j3cub. The logo is scaled and rotated to fit the outline of the fuselage. There is a generic logo-include.xml file which adds an entry to the menubar, the necessary properties and nasal files. It can be included in the first line of your -set.xml file like this: <PropertyList include="../Generic/logo-include.xml"> To use the Logo over Multiplayer, you need to add the following to the top of your model file: <nasal> <load> var update = aircraft.overlay_update.new(); update.add("Aircraft/Generic/Logos", "sim/multiplay/generic/string"); </load> <unload> update.stop(); </unload> </nasal> > Cheers, > > Anders Greetings -- Detlef Faber http://www.sol2500.net/flightgear ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel