Tracked it down, sort of. Using setAxisAlignment(TextBase::SCREEN) causes my Text to be culled out sometimes when it shouldn't be. Other axis alignment modes that have _autoRotateToScreen set to false appear to work. The Text seems to first appear when some other type of drawable becomes a sibling in the scene graph structure. So I can work around the problem now. However, I still can't pinpoint the exact logic that's causing the Text to be culled improperly. -- Terry Welsh / mogumbo 'at' gmail.com www.reallyslick.com / www.mogumbo.com
On Mon, Mar 22, 2010 at 8:38 AM, Terry Welsh <mogu...@gmail.com> wrote: > I'm not sure I understand the question, but I don't think so. My > camera always points down the +y axis, and the text always faces down > the -y axis. The only scaling I do is with setCharacterSize(). And I > have a MatrixTransform holding the text, but it only holds a > translation, no scaling. > > It seems to me the BoundingBox should be computed when you call > setText(), but this doesn't happen. Something else triggers the bound > to be computed later on. If I could figure out what causes the bound > to be computed, this problem might make more sense. > -- > Terry Welsh / mogumbo 'at' gmail.com > www.reallyslick.com / www.mogumbo.com > > >> >> Message: 12 >> Date: Mon, 22 Mar 2010 11:44:47 +0000 >> From: Robert Osfield <robert.osfi...@gmail.com> >> To: OpenSceneGraph Users <osg-users@lists.openscenegraph.org> >> Subject: Re: [osg-users] bound not computed >> Message-ID: >> <7ffb8e9b1003220444s7b76ba3fua19cb8dbe0e74...@mail.gmail.com> >> Content-Type: text/plain; charset=ISO-8859-1 >> >> Hi Terry, >> >> Are these text elements view dependent in any way? Such as >> orientation or scaling? >> >> Robert. >> >> On Mon, Mar 22, 2010 at 5:21 AM, Terry Welsh <mogu...@gmail.com> wrote: >>> I'm having a culling problem with some osgText ::Text drawables. >>> They're popping on as I pan the camera after they should have been on >>> screen for a while. ?I can see that their BoundingBoxes have not been >>> computed. ?They pop into view as soon as the boxes get computed, >>> though. ?Even if I call mytext->dirtyBound() after mytext->setText(), >>> the BoundingBox does not get computed until sometime later after I >>> have panned the camera too much. ?I'm stumped, so I thought I'd throw >>> this out there an see if anyone else has seen this problem or has any >>> suggestions. ?Anyone? >>> -- >>> Terry Welsh ?/ ?mogumbo 'at' gmail.com >>> www.reallyslick.com ?/ ?www.mogumbo.com >>> _______________________________________________ >>> osg-users mailing list >>> osg-users@lists.openscenegraph.org >>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >>> >> > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org