Hi Robert,

I'm talking about ground vehicle simulation where all HeightAboveTerrain
calls are related to previous calls (ie. the position is < meter away from
the last call).  Most of the calls will be for the vehicle that is being
driven.  These calls being over 1000Hz.  The other calls consisting of
surrounding vehicles in a 1km radius around the driver.  

So, we can batch the height querries, and they are suitable for caching.
But, upon review, I don't see any way to get the normal of the terrain.  Of
course, this is necessary for vehicles that follow the terrain.


Zach

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield
Sent: Friday, December 08, 2006 04:15
To: osg users
Subject: Re: [osg-users] osgSim::HeightAboveTerrain

Hi Zach,

On 12/8/06, Zach Deedler <[EMAIL PROTECTED]> wrote:
> Is this efficient?  I mean can I make 40,000 calls/second for example 
> (if I don't draw anything)?

It totally depends upon your database, and whether its already paged in.
There is support for a cache to help improve coherency.  The most efficient
way to use it is to batch your height querries, this ensures as much
coherency as possible.  40,000 per second is alot though, what granulatity
are we talking about?

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to