robertosfield wrote:
> Hi Lz,
> 
> Could this be small feature culling culling the text?  You can disable
> small feature via
> 
> viewer.getCamera()->setCullingMode(viewer.getCamera()->getCullingMode()
> | ~osg::CullSettings::SMALL_FEATURE_CULLING);
> 
> Robert.
> 
> On Wed, Aug 10, 2011 at 9:32 AM, Lv Qing <> wrote:
> 
> > Hi,
> > 
> > ...
> > 
> > I have used  osgText:FadeText attaching a model for displaying it's text 
> > information.I set the osgText:FadeText  always
> > 
> > It is OK  in most case.Then I found if the model's size is small enough and 
> > the distance from viewer is too long(like 3000KM),the osgText:FadeText is 
> > not visible when the model been loaded the first time.
> > 
> > Then I zoom the viewer in,the osgText:FadeText  is visible  in certain 
> > distance,if I zoom the viewer out again,the osgText:FadeText  is still 
> > visible.Then nomatter how far the osgText:FadeText  away from the viewer,it 
> > is OK like normal.
> > 
> > It means when the first time I loaded the model ,the  osgText:FadeText may 
> > keep invisible and waiting me to find it.
> > 
> > It is certainly something about model's size,if it is big enough ,the 
> > problem will never happen.
> > 
> > Need help!
> > 
> > Thank you!
> > 
> > Cheers,
> > Lv
> > 
> > ------------------
> > Read this topic online here:
> > http://forum.openscenegraph.org/viewtopic.php?p=41967#41967
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > osg-users mailing list
> > 
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> > 
> > 
> _______________________________________________
> osg-users mailing list
> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
>  ------------------
> Post generated by Mail2Forum



Thx!
Robert!

I try
viewer.getCamera()->setCullingMode(viewer.getCamera()->getCullingMode()
| ~osg::CullSettings::SMALL_FEATURE_CULLING);

it indeed solve the probem,however it instantly took a lot more cpu usage which 
make it unacceptable.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42192#42192





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to