| 1 | <?xml version="1.0"?> |
| 2 | <!-- |
| 3 | This is a generic square shaped Logo which can be referenced by any Aircraft Model as a submodel. |
| 4 | To use it you need add the Model to your Model XML file: |
| 5 | |
| 6 | <model> |
| 7 | <path>Aircraft/Generic/logo.xml</path> |
| 8 | <name>logo</name> |
| 9 | <offsets> |
| 10 | <x-m>0.45</x-m> |
| 11 | <y-m>-0.32</y-m> |
| 12 | <z-m>-1.1</z-m> |
| 13 | </offsets> |
| 14 | </model> |
| 15 | <animation> |
| 16 | <type>scale</type> |
| 17 | <object-name>logo</object-name> |
| 18 | <x-offset>0.75</x-offset> |
| 19 | <y-offset>1.0</y-offset> |
| 20 | <z-offset>0.75</z-offset> |
| 21 | |
| 22 | </animation> |
| 23 | <animation> |
| 24 | <type>rotate</type> |
| 25 | <object-name>logo</object-name> |
| 26 | <offset-deg>5</offset-deg> |
| 27 | <center> |
| 28 | <x-m>0.45</x-m> |
| 29 | <y-m>-0.415</y-m> |
| 30 | <z-m>-1.1</z-m> |
| 31 | </center> |
| 32 | <axis> |
| 33 | <x>1.00</x> |
| 34 | <y>0.0</y> |
| 35 | <z>0.0</z> |
| 36 | </axis> |
| 37 | </animation> |
| 38 | <animation> |
| 39 | <type>rotate</type> |
| 40 | <object-name>logo</object-name> |
| 41 | <offset-deg>3</offset-deg> |
| 42 | <center> |
| 43 | <x-m>0.45</x-m> |
| 44 | <y-m>-0.42</y-m> |
| 45 | <z-m>-1.1</z-m> |
| 46 | </center> |
| 47 | <axis> |
| 48 | <x>0.0</x> |
| 49 | <y>0.0</y> |
| 50 | <z>1.0</z> |
| 51 | </axis> |
| 52 | </animation> |
| 53 | |
| 54 | The above example adds the Logo to the default j3cub. The logo is scaled and rotated to fit the outline of the fuselage. |
| 55 | 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: |
| 56 | |
| 57 | <PropertyList include="../Generic/logo-include.xml"> |
| 58 | |
| 59 | To use the Logo over Multiplayer, you need to add the following to the top of your model file: |
| 60 | |
| 61 | <nasal> |
| 62 | <load> |
| 63 | var update = aircraft.overlay_update.new(); |
| 64 | update.add("Aircraft/Generic/Logos", "sim/multiplay/generic/string"); |
| 65 | </load> |
| 66 | <unload> |
| 67 | update.stop(); |
| 68 | </unload> |
| 69 | </nasal> |
| 70 | --> |
| 71 | <PropertyList> |
| 72 | |
| 73 | <path>Logos/fglogo.ac</path> |
| 74 | |
| 75 | <animation> |
| 76 | <type>rotate</type> |
| 77 | <object-name>upper</object-name> |
| 78 | <offset-deg>0</offset-deg> |
| 79 | <center> |
| 80 | <x-m>0.0</x-m> |
| 81 | <y-m>0.0</y-m> |
| 82 | <z-m>0.167</z-m> |
| 83 | </center> |
| 84 | <axis> |
| 85 | <x>1.00</x> |
| 86 | <y>0.0</y> |
| 87 | <z>0.0</z> |
| 88 | </axis> |
| 89 | </animation> |
| 90 | <animation> |
| 91 | <type>rotate</type> |
| 92 | <object-name>lower</object-name> |
| 93 | <offset-deg>0</offset-deg> |
| 94 | <center> |
| 95 | <x-m>0.0</x-m> |
| 96 | <y-m>0.0</y-m> |
| 97 | <z-m>-0.167</z-m> |
| 98 | </center> |
| 99 | <axis> |
| 100 | <x>1.00</x> |
| 101 | <y>0.0</y> |
| 102 | <z>0.0</z> |
| 103 | </axis> |
| 104 | </animation> |
| 105 | |
| 106 | <animation> |
| 107 | <type>material</type> |
| 108 | <object-name>upper</object-name> |
| 109 | <object-name>middle</object-name> |
| 110 | <object-name>lower</object-name> |
| 111 | <property-base>sim/model/logo</property-base> |
| 112 | <texture-prop>texture</texture-prop> |
| 113 | <texture>Logos/fgshield.png</texture> |
| 114 | </animation> |
| 115 | </PropertyList> |
| 116 | |
| 117 |