Hi Michael, As the AutoTransform changes size it's bounding volume will change will effect the LOD selection so the interaction may well be awkward.
It would be better to place the LOD above the AutoTransform, or probably even better to avoid using the combiation of the transforms and LOD's that you are using. Personally I'd tackle this type of very application specific behavior by writing my own custom transform node that manages the LOD and the appropriate transform all within one node rather requiring multiple nodes. Robert. On 15 August 2012 16:57, Michael Schanne <[email protected]> wrote: > Hi, > > I am trying to create a scene for a CAD-type app where I have objects that > should be a constant screen size as I zoom in and out, but when I cross a > certain zoom threshold it should change to a different size (for example half > its original size). I tried to implement this using a combination of > AutoTransform and LOD nodes. Here is a sample graph of two objects: > > AutoTransform AutoTransform > \ / > LOD > / \ > MatrixTransform MatrixTransform > \ / > Geode > > The problem I have is that when I have the AutoTransforms set to > autoScaleToScreen=true, then the level of detail does not change when it > should. It always stays at whatever level it started at regardless of how > much I move the camera in or out. If I set autoScaleToScreen to false, then > the LOD behaves as I expect (meaning it changes when I move the camera from > one range to another). > > What might be causing this to happen? Is there another way to get the effect > I want? > ... > > Thank you! > > Cheers, > Michael > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=49272#49272 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

