Donn Washburn write
> Question -that is a very nice jpg image.  but what do you do with the 
> rgb file?

Well, Melchior explain it better than me


dixit  Melchior FRANZ
> There are two ways:
>
> ----------------------------------------------------------------
>
> (A) <texture-path>
>
> This can be used to assign different texture dirs at startup
> (via *-set.xml file or command line). Disadvantage: can't be
> changed at runtime, all aircraft textures have to be in all
> livery dirs, even those that don't belong to the livery and
> are the same for all variants (like tyres, etc.). (I wouldn't
> use this method. :-)
>
>    <model>
>        <texture-path>Liveries/foo/</texture-path>
>        <path>Models/dumbo.ac</path>
>    </model>
>
>
> Example: $FG_ROOT/Aircraft/f16/Models/f16klu.xml
>
> ----------------------------------------------------------------
>
> (B) "material" animation
>
> This is an animation that can exchange textures at runtime.
> The no longer used texture is freed from memory. If possible,
> one should avoid to use a huge texture as default, as this
> will be loaded and then dumped immediately, if a different
> livery is chosen. Here's a simple example:
>
>     <animation>
>         <type>material</type>
>         <object-name>fuselage</object-name>
>         <texture-prop>/sim/model/dumbo/livery</texture-prop>
>     </animation>
>
> That is, if you write a new texture path to property
> /sim/model/dumbo/livery (relative to the dir where the
> animation file is), then the livery will be swappend
> "on the fly":
>
>     setprop("/sim/model/dumbo/livery", "Livery/pink.rgb");
>
>
> Examples: $FG_ROOT/Aircraft/Lightning/
>           $FG_ROOT/Aircraft/bo105/
>           $FG_ROOT/Aircraft/F4U/
>
>
>
> The animation can also be used to exchange the texture at
> startup only, in which case it works somehow like method (A).
>
>     <animation>
>         <type>material</type>
>         <object-name>fuselage</object-name>
>         <texture>Livery/grey.rgb</texture>
>     </animation>
>
> This is used for the Nimitz and the Eisenhower carrier. The
> latter is just a model file where the Nimitz 3D model is loaded,
> but the pennant number is exchanged at startup. It can't be
> changed later.

-- 
Didier Fabert
[EMAIL PROTECTED]
KFreeFlight project : A FlightGear GUI-Frontend designed for KDE users
http://kfreeflight.sourceforge.net

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Flightgear-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-users

Reply via email to