Hi Torben, On Mon, Jul 18, 2011 at 1:26 PM, Torben Dannhauer <[email protected]> wrote: > the comment/documentation is good. Using setDatabaseCacheReadCallback(0) to > disable the paging seems better than introducing a new flag.
Comments now checked into svn/trunk and OSG-3.0 branch. > Nevertheless it would be great ot have a simple to use flag in the static > method. That would allow to calculate HAT still with only one line of code. > > It seems we can't get an agreement about the HOT calculation within the HAT > class, so what would be your recommendation to provide the following function > with only one line of code (like HAT): > HOT with paging > HOT without paging. > > Creating a HeightOfTerrain class? Or should I rearrange the code that > computeIntersection only computes the intersection points and the HAT and HOT > computation is performed in the static functions seperately to avoid > unneccessary computations? Or shouldn't HOT calculation be included into OSG? > > Of course I can integrate that HOT computation function in the utils of > osgVisual, but I think it is usefull for more people in OSG. You are right, > HOT can be calculated by the lineintesection classes, but for beginners it is > a quite steep learning curve. a convenient function like your HAT > calculationis more encouraging than 20 lines of intersection code. I wouldn't recommend having a single method for doing HeightAboveTerrain or HeightOfTerrain in a single function when reading in the external tiles as for performance it's crucial to reuse loaded tiles already loaded in previous intersection tests - this is why these classes exist. Perhaps one could have such a function which you pass in the read callback this way it could be null indicating you don't wish to load any external files, or a valid object indiciating that you wish to use the specified read file cache callback. > I'll be on vacation for 3.5 weeks in sourth america/peru in august *smile* Lucky man, I had a week in Normandy, while perfectly delightful, not quite the same league on the adventure stakes! Robert. _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
