Hi Robert, ah, now we are talking about the same thing: You unterstood about which function I talked and I have an idea what your point is:
> > This convinience function is a bit too convinient really - encourages > inefficient usage as it'll be creating the DatabaseCacheReadCallback > on every invocation and will load external files then dispose of the > associated subgraphs as soon > as the function exits. > You are right, only providing additional wrappers (for HAT and for HOT) does not make sense because there is no "general purpose" it would serve in an optimal way. Even in my use case it is not optional, I thought it's chaching pool is persistent across several HAT calculations. It seems I should really dive into the callback, and then implements a "terrainQuery" class which provides the desired functions with caching etc.) I'll post my resulting class at the forum/mailinglist, so you can decide if it makes sense to move the class from osgVisual to OSG. Thanks for pushing me in the right direction! Cheers, Torben ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=41446#41446 _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
