GĂ©rard wrote:

> Hello,
> 
> Is it only me ? or is there a funny behaviour  with the random objects ?
> 
> I have found  trees into the stadium  :)  
> http://pagesperso-orange.fr/GRTux/RandomTreesAndStadium.jpg

No, it isn't just you :)

The random objects, including trees, are placed randomly based on the terrain 
type of the scenery, as defined in materials.xml. 

IIRC there is no attempt to stop multiple objects being placed at the same 
location - just the random function - and each object type is considered 
independantly. 

Objects from the scenery objects databased are placed as defined in the 
.stg/.btg files. Again, there is no attempt by the random object code to avoid 
placing random objects at the same location.

In general this isn't a problem - we don't use object densities high enough to 
see "collisions" regularly, and usually a larger object will completely obscure 
a smaller one.

If we decide to increase the density of random objects significantly so that 
collisions become a problem, we'll probably need to change to a different 
scheme, particularly for towns and cities. One possibility is to use a bitmap 
to determine possible object locations. This can then be aligned with the 
texture, so our buildings align with the streets, trees appear on the edges of 
fields, cows in the middle etc.

However, I have enough work on my plate before the 1.9 release to start 
thinking about that just now!

-Stuart


Send instant messages to your online friends http://uk.messenger.yahoo.com 

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to