Hi Mitch,
Small feature culling is probably culling your AutoTransform before it
can rescale itself initially.
You could try disabling small feature culling or do
setCullingActive(false) on your AutoTransform.
These may decrease performance, so there may be a better way...
- Edgar
Mitch Patenaude wrote:
Hi all.
I have a problem with AutoTransform nodes. I have an AutoTransform node
somewhere in my scene and it seems that everything under that node doesn't appear.
I have to zoom very close to it and then it appears. Note that once it appeared,
it is always visible wherever the camera (the zoom) is. I put a breakpoint in
AutoTransform::accept(NodeVisitor& nv) under the CULL_VISITOR case and it
doesn't get into it untill I am close to the object. It's like if the object under
the autotransform node is to small but once it appeared and that the object are
rescale to a big value the culling is called.... Here is how my AutoTransform is
created.
mSymbolAutoScaling = new osg::AutoTransform;
mSymbolAutoScaling->setAutoRotateMode(osg::AutoTransform::NO_ROTATION);
mSymbolAutoScaling->setAutoScaleToScreen(true);
mSymbolAutoScaling->addChild(...)
Thanks for the support.
Mitch
------------------------------------------------------------------------
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/