David Megginson writes:
>
> Norman Vine writes:
> 
>  > BUT does the Terrain Graph contain the tile you are
>  > trying to determine the AGL from  ??
> 
> It should, because the OBJECT_STATIC directive occurs only in *.stg
> files, which are parsed when the tile containing the object is
> loaded.
> 
>  > This is a prerequisite and AFAICT currently this is not gauranteed to 
>  > be the case until AFTER the 'load function' leaves the select switch
>  > for the OBJECT_SHARED case !!!
> 
> I tried loading all of the required info into the deferred-model
> structure and doing the intersection later in the program when the
> model made its way to the front of the queue for loading; still no
> intersection.

Well if the tile is REALLY loaded then ..  my guess is that your 
parameters are based on the wrong 'scenery_center'
try setting up a 'phony teleportation' to where the scenery_center
and absolute_position are in the same tile as the point that you are
requesting the elevation for.

I am still not convinced that your tile is actually loaded though
and don't really know the 'best' way to check for that given the
'lazy' loader.

Regards

Norman


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

Reply via email to