Livery over MP: Difference between revisions

Jump to navigation Jump to search
multiple texture example - use clearer names
m (→‎Models/Liveries: note about "uncommon" directories.)
(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 (eg. seperate files for wings and fuselage). Every texture needs it own property. You can add as many textures as you like.  
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 ===
Is the same as "ordinary" aircraft with just one texture. You will find the content of this file earlier in this article.
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>
     <lights>ANA-Lights.rgb</lights>
     <texture-wings>ANA-Livery-wings.png</texture-wings>
     </livery>
     </livery>
   </model>
   </model>
Line 127: Line 127:
  </PropertyList>
  </PropertyList>


Remember the names (<texture> and <lights>), as you will need them in the model file in the next step.
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>wipers</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.rgb</texture>
         <texture>ANA-Livery-fuselage.png</texture>
     </animation>
     </animation>
   
   
     <animation>
     <animation>
         <type>material</type>
         <type>material</type>
         <object-name>lightedfin_0</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>lights</texture-prop>
         <texture-prop>texture-wings</texture-prop>
         <texture>ANA-Lights.rgb</texture>
         <texture>ANA-Livery-wings.png</texture>
     </animation>
     </animation>


67

edits

Navigation menu