67
edits
m (→Models/Liveries: note about "uncommon" directories.) |
Paul Richter (talk | contribs) (multiple texture example - use clearer names) |
||
| Line 105: | Line 105: | ||
== Multiple texture files per livery == | == Multiple texture files per livery == | ||
Some models use multiple textures file ( | Some models use multiple textures file (e.g. separate files for fuselage and wings). Every texture needs it own property. You can add as many textures as you like. | ||
=== Nasal/liveries.nas === | === Nasal/liveries.nas === | ||
This is the same as "ordinary" aircraft with just one texture. You will find the content of this file earlier in this article. | |||
=== Models/Liveries === | === Models/Liveries === | ||
| Line 120: | Line 120: | ||
<livery> | <livery> | ||
<name type="string">All Nippon Airways</name> | <name type="string">All Nippon Airways</name> | ||
<texture>ANA-Livery.png</texture> | <texture-fuselage>ANA-Livery-fuselage.png</texture-fuselage> | ||
< | <texture-wings>ANA-Livery-wings.png</texture-wings> | ||
</livery> | </livery> | ||
</model> | </model> | ||
| Line 127: | Line 127: | ||
</PropertyList> | </PropertyList> | ||
Remember the names (<texture> and < | Remember the names (<texture-fuselage> and <texture-wings>), as you will need them in the model file in the next step. | ||
=== Models/....xml === | === Models/....xml === | ||
<animation> | <animation> | ||
<type>material</type> | <type>material</type> | ||
<object-name> | <object-name>hull</object-name> | ||
<object-name>nosecone</object-name> | |||
<property-base>sim/model/livery</property-base> | <property-base>sim/model/livery</property-base> | ||
<texture-prop>texture</texture-prop> | <texture-prop>texture-fuselage</texture-prop> | ||
<texture>ANA-Livery. | <texture>ANA-Livery-fuselage.png</texture> | ||
</animation> | </animation> | ||
<animation> | <animation> | ||
<type>material</type> | <type>material</type> | ||
<object-name> | <object-name>left-flap</object-name> | ||
<object-name>left-aileron</object-name> | |||
<property-base>sim/model/livery</property-base> | <property-base>sim/model/livery</property-base> | ||
<texture-prop> | <texture-prop>texture-wings</texture-prop> | ||
<texture>ANA- | <texture>ANA-Livery-wings.png</texture> | ||
</animation> | </animation> | ||
edits