Hi,

On Freitag 08 Juli 2005 12:42, BONNEVILLE David wrote:
> I'm trying to use the groundcache to determine the terrain elevation at a
> given position.
[...]
> Does anybody know where I am wrong or how I could solve my problem ?

At the moment, the groundcache does not itself care for the required ground 
tiles to be loaded.
I guess that this is missing.

Try doing something like that:

SGLocation location;
[ set the location to lat/lon/alt ]
globals->get_tile_mgr()->update(location, your_radius, 
location->get_absolute_view_pos());

Not tested myself, but hopefully works.

I am thinking about making the ground cache schedule tiles to be loaded.
... so I am still working on that :)

    Greetings

          Mathias

-- 
Mathias Fröhlich, email: [EMAIL PROTECTED]

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

Reply via email to