Thanks Robert and Terry.

 

I've left off solving the problem for the moment and I switched to using an
AutoTransform node for the same effect.  Seems to be working well.  BTW it
might be nice if osgText had a provision for allowing screen size
position/offsets.  Eg you can currently use osgText::setPosition to set the
texts position In model space but not one for screen space.  In my case I
was trying to have a label appear to the side of a 3d object in the scene.
Seems like a common enough application.  That's part of my reason for
switching to autotransform.

 

Perhaps I missed another better method (Billboard?).

 

Thanks

-Brad

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Brad Huber
Sent: Thursday, June 03, 2010 5:06 PM
To: 'OpenSceneGraph Users'
Subject: Re: [osg-users] osgText issue

 

It looks like for some reason my screen aligned, screen sized text is
getting small feature culled under certain circumstances.  My small feature
cull is set to the default (2 pixels) and my text is definitely larger than
2 pixels (when it does show).  When I disable small feature culling the text
always shows correctly.

 

I'm still not sure why this is happening but is it possible that it is using
the world size of my drawables for culling rather than the actual screen
size?  Also, I'm not sure why this is an intermittent problem.  (ie text
doesn't show then I zoom in and it shows, then zoom back out and it still
shows).

 

Thoughts?

 

Thanks

-Brad

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Brad Huber
Sent: Thursday, June 03, 2010 10:02 AM
To: 'OpenSceneGraph Users'
Subject: [osg-users] osgText issue

 

Cedric (or anyone else),

 

I'm running in to a similar issue to what is described here:
http://www.mail-archive.com/[email protected]/msg15610.html
a long time ago by Cedric Pinson.

 

I searched around in the forum archives and didn't see any resolution to
this issue nor did I find anything else similar.  Did you ever find a
solution to this problem?

 

The way it manifests for me is that there is an osgText object in the
visible scene but it doesn't show until I zoom the camera in on it.  Then it
appears and if I zoom the camera back out it sticks around.  It should be
showing the whole time.

 

 

Thanks

-Brad

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

Reply via email to