I'm trying to experiment with alternative terrain textures for the scenery 
which I have built for the UK, but which looks odd when it's painted to look 
like an irrigated American prairie :�)
I took a look at $FG_ROOT/materials.xml, which defines how the materials are 
put together, and determined that it was mixedcrop.rgb which looks like the 
prairie:
<material>
 <name>MixedCropPastureCover</name>
 <texture>Terrain/mixedcrop.rgb</texture>
 <xsize>4000</xsize>
 <ysize>4000</ysize>
...
the texture is an RLE encoded RGB file:
/usr/local/FlightGear/data/Textures/Terrain/mixedcrop.rgb: SGI image data, 
RLE, 3-D, 256 x 256, 3 channels
so I used the GIMP to make an alternative one:
/usr/local/FlightGear/data/Textures/Terrain/UKMixedCrop.rgb: SGI image data, 
RLE, 3-D, 256 x 256, 3 channels

and altered the reference in materials.xml to try it out: (diff output):
1098c1098
<  <texture>Terrain/mixedcrop.rgb</texture>
---
>  <texture>Terrain/UKMixedcrop.rgb</texture>

However, FlightGear behaves very strangely with this configuration in place: 
large parts of the landscape are re-textured with different textures at 
seemingly random intervals (sea, grass, urban, but not UKMixedcrop).
If I just overwrite mixedcrop.rgb with my file and leave materials.xml in its 
original state, I get the prairie back!  How does it do that?  Have I 
misunderstood the relationship between the scenery building and the rendering 
of the terrain at run time?
I'd be grateful for a clue, and then I promise I'll write it up for the wiki !
Thanks
Jonathan

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to