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 <[email protected]>
> To: OpenSceneGraph Users <[email protected]>
> Subject: Re: [osg-users] bound not computed
> Message-ID:
>        <[email protected]>
> 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 <[email protected]> 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
>> [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

Reply via email to