On Sunday, 31 October 2004 16:42, Christian Mayer wrote:
> The first one looks great. Is there a way to tell the scenery to use it
> for all towns in "old europe" (or something like from 20 degree west to
> 50 degree east) (numbers were roughly guessed...)

Here is something to think about.
How about if areas in the scenery files can have seasonal and cultural info 
attached or embedded?

If we try to implement seasonal textures it cannot be simply location based.
If I hop into a real aircraft right now and fly from Johannesburg to Cape Town 
the scenery will be green when I leave and brown and dry when I land.
Cape Town has winter rainfall and Johannesburg summer rainfall yet both are in 
the Southern hemisphere and only 2 hours apart.

So how about :

materials.xml contains seasonal materials like
<material>
 <name>GrassCoverSummer</name>

 <area_attribute>USA</area_attribute>
 <season_attribute>Summer</season_attribute>
 <texture>Terrain/USA-green-grass.rgb</texture>

 <area_attribute>Europe</area_attribute>
 <season_attribute>Summer</season_attribute>
 <texture>Terrain/Europe-green-grass.rgb</texture>
</material>

<!--  *********** -->

<material>
 <name>GrassCoverWinter</name>

 <area_attribute>USA</area_attribute>
 <season_attribute>Winter<season_attribute>
 <texture>Terrain/USA-brown-grass.rgb</texture>

 <area_attribute>Europe</area_attribute>
 <season_attribute>Winter</season_attribute>
 <texture>Terrain/Europe-snowy-grass.rgb</texture>
</material>

<!--  *********** -->
<material>
 <name>CityCover</name>

 <area_attribute>USA</area_attribute>
 <texture>Terrain/USA-city.rgb</texture>

 <area_attribute>Europe</area_attribute>
 <texture>Terrain/18th-century-city.rgb</texture>
</material>

----------------------------------------------------------------

Then we have a database of points that store the locations of cities or 
countries or continents with attached info.
The points have info like :
MaterialAreaType=European
MidSummer = date x
MidWinter = date y

----------------------------------------------------------------

Then when flying over Paris flightgear finds the closest point in the "points" 
database.
- It finds that it's Europe (or France or Paris)
- It's winter
So it looks in materials.xml for GrassCoverWinter and an attribute that says 
it's Europe and pulls out Europe-snowy-grass.rgb

The same applies for the "European 18th century city" texture.
If no matching area is found then it falls back to standard textures.

Having a "points" database means we can start on the macro scale like define a 
single point for Europe and then later on we can scale it down to countries, 
provinces and cities.

Ok this is just a rough idea what do ya guys think?

Paul
P.S. Oops that took a few more lines to explain than I anticipated.  :P

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

Reply via email to