Hi Robert, according to your answer, my problem can be divided into two aspects:
a) There must be a part of sourcecode in osgVisual which uses KdTree b) The KdTree is corrupt/broken/wrong: Disabling the KdTree solves the problem Regarding a) I have not intended to implemented KdTree usage - I just enabled it to boost my height above terain queries. Maybe there is some OSG code (like intersection visitor) I use which uses KdTree if it is available. Becuae my pseudo loader works in the plain osgviewer, a) must be true, but I haven't figured out the reason. Regading b) Nevertheless, using KdTree should not break up rendering, thefore I analysed my pseudoploader and I discoverey teh bug and solved it: The rendering problem appears as soon as the pseudoloader builds the KdTree as well as the used "native" loader build the KdTree. I disabled the KdTree for the native loader plugin and only create the KdTree in the pseudoloader after all data manipulation it works - and that works as expected. You can see the pseudo loader and its readNode() function here: http://www.osgvisual.org/projects/osgvisual/browser/experimental/TerrainTest/ReaderWriterTerrainMod.cpp#L11 The way to manipulate the reader options and restore the original reader options makes the pseudo loader transparent. Maybe this solution helps someone else to save some hours of debugging. Cheers, Torben ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=39760#39760 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

