Jon Stockill writes:
> On Thu, 2 Oct 2003, David Megginson wrote:
> 
> > I tried fixing that a few weeks ago by providing an option to set
> > objects on the ground.  Unfortunately, I didn't manage to find a way
> > to calculate ground level at load time.
> 
> How are the random objects placed on the ground? Surely it's the same
> calculation?

Random objects and lights have the advantage that they we start with
the individual triangles and add the objects to them.  This way we
know each vertex and can find the coordinates of any random point on
the triangle without doing a height above terrain test.

However, the main effort of the HOT routines are to find the
corresponding triangle in the scene graph which you'd need to do if
you wanted to place an object at an arbitrary lat/lon.

Regards,

Curt.
-- 
Curtis Olson   HumanFIRST Program               FlightGear Project
Twin Cities    curt 'at' me.umn.edu             curt 'at' flightgear.org
Minnesota      http://www.menet.umn.edu/~curt   http://www.flightgear.org

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

Reply via email to