Jan wrote on Tuesday, May 05, 2009 3:38 AM: > first of all, i'd like to introduce you to my problem to you. > I have a PagedLOD DB for representing the ground. > On this ground I want to position vegetation also as PagedLOD Nodes. X and Y > Values are fix. > The Problem is that I have to set the vegetation exactly on the ground, using > an intersectiontest works, but if the ground tiles switch from one level to > the other, the position needs to be recalculated because there might be gaps > when getting finer tile resolution. > My first idea was to use osgDB::Registry::ReadFileCallback to check if a node > is paged in. But this doesn't seem to work because the databasepager has > cached tiles and so changing isn't registered. The second idea was to use a > cullvisitor to update all visible vegetation. But if I attach setCullCallback > to a vegetation-node the cullvisitor works just for the root node.
Does your CullCallback call traverse()? That would explain why the CullVisitor only visits the root node when you attach it. -- Bryan Thrall FlightSafety International [email protected] _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

