Hi Terry,

Hows about :

  node->setInitialBound(bs);

Robert.

On 1/10/07, Terry Welsh <[EMAIL PROTECTED]> wrote:
Doh.  I don't think I explained myself well enough on this one.  I was
trying to build something similar to PagedLOD, but something that I
would have more control over.  So I still want my nodes to be culled,
and I was trying to specify my own BoundingSpheres for when there is
no geometry present.  But even with my artificial BoundingSpheres, OSG
still culls my nodes.
- Terry

> Message: 34
> Date: Wed, 10 Jan 2007 17:26:15 +0000
> From: "Robert Osfield" <[EMAIL PROTECTED]>
> Subject: Re: [osg-users] fooling CullVisitor
> To: "osg users" <[email protected]>
> Message-ID:
>         <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi Terry,
>
>   node->setCullingActive(false);
>
> Robert.
>
> On 1/10/07, Terry Welsh <[EMAIL PROTECTED]> wrote:
> > How do you fool CullVisitor into traversing a node if it contains no 
geometry?
> >
> > I'm trying have the traverse() function called with
> > TRAVERSE_ACTIVE_CHILDREN on a node I am deriving from osg::Group.
> > traverse() is sometimes called with TRAVERSE_ALL_CHILDREN, but it is
> > never called with TRAVERSE_ACTIVE_CHILDREN.  I have tried to fool
> > CullVisitor by overriding my nodes getBound() and computeBound()
> > functions, but this doesn't help.  Somehow CullVisitor still figures
> > out that my node contains no geometry and doesn't traverse it.
> > - Terry
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to