On Sonntag, 4. Juli 2004 13:20, Erik Hofman wrote:
It looks like this makes it easy to support different liveries with just a minimal set of changes (actually only the exterior textures should be different) without any changes to plib.
It does require some (fundamental) changes to SimGear though. I thin I can take a look at it in the next few days.
That feature would be *very* good to have!
It turned out to be easier than I suspected. I've put a patch in CVS that allows one to add a <texture-path></texture-path> tag to the animation configuration file. The specified path should be defined relative to the model path. For some unknown reason it is required to end the path with a / character though.
Creating a new livery looks like this:
1. Create a new directory in the Models directory. This directory will hold the new texture files which should have the same layout as any other textures for this model. It is also required to have a duplicate of all the textures, regardless whether they are changed or not.
2. Create a new animation configuration file which includes the default animation configuration file and which adds the texture-path tag:
<?xml version="1.0"?>
<PropertyList include="fokker100.xml">
<texture-path>NewLivery/</texture-path>
</PropertyList>3. Create a new -set file which includes the original -set.xml file and which overrides the animation configuration file:
<?xml version="1.0"?>
<PropertyList include="fokker100-set.xml">
<sim>
<model>
<path>Aircraft/fokker100/Models/fokker100-newlivery.xml</path>
</model>
</sim>
</PropertyList>Erik
_______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
