Thanks Melchior
I will have a play around with what you have suggested and
see if I can figure how it works.
Now that we have people doing repaints it would be nice if
a livery could be easily selected at run time.
Cheers
Innis
Melchior FRANZ writes
>
>* Innis Cunningham -- Tuesday 24 October 2006 13:18:
> > Could someone explain or point me in the right direction
> > for using mutiple liveries in FG.
>
>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.
>
>----------------------------------------------------------------
>
>m.
>
>-------------------------------------------------------------------------
>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
_________________________________________________________________
Research and compare new cars side by side at carpoint.com.au
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsecure%2Dau%2Eimrworldwide%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801459%2Fpi%5F1004813%2Fai%5F833884&_t=54321&_r=hotmail_endtext&_m=EXT
-------------------------------------------------------------------------
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