Hi,

Great to have that interface now used!
I will only respond to the ground cache part.

On Monday 01 January 2007 11:14, Maik Justus wrote:
> The file groundcache.cxx.diff is only for osg and independent of the
> gear patch. It is a workaround for osg-groundcache bugs. It does not fix
> the cause, but with it the groundcache reports the correct material and
> correct ground height. Please commit to osg/head.
I do not think that ignoring all unknown ground types is the way to go.

In general I am more for fixing bugs where they are rather than installing a 
workaround.

Having that Unknown enumeration is just to tell the user (the FDM is the user 
in this case) that we do currently not know anything about the kind of ground 
we have under our wheels.
That groundcache is just thought as a lookup mechanism into the (mechanical) 
environment of the aircraft. Having too much automagically /fixed/ in some 
magic way may bite us later.

>From that point of view it is just possible that we do not know anything about 
the type of ground we have a triangle in our hands. It is not guaranteed that 
every geometry we have in the scenegraph has some ground type in this sense.
The FDM or say the user of that lookup mechanism just has to cope with that.

I would prefer to store the ground type for the particular contact point and 
reuse the last known one if you get an Unknown type from the ground cache.
The reason is: the ground cache query does not know about the last query near 
that current point of interest. It just gets a point and returns something 
about the mechanical properties below that point.
In contrast the class that is asking the ground cache for that information 
might get needlessly unsteady when it gets something wired in this case.

I also do not know what happens when we just omit some triangles. I fear that 
we then just fall through solid ground that is just Unknown to the way the 
ground cache currently decides the ground type.

I have now installed a patch that returns the material type of the triangle 
that is used for the croase agl level in case we do only know that one.
Maik, that is like we have discussed offlist.

Anyway, I am working on a faster and more flexible replacement of the 
groundcache anyway.

   Greetings

         Mathias

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to