Hi Robert,

I remember I wondered the same thing my self. The method I (and I guess 
Vincent) wonders about is the:
addChild (Node *child, float min, float max, const std::string &filename, float 
priorityOffset=0.0f, float priorityScale=1.0f) 

Here you have to supply both a Node* and a filename. I didn't quite get why, so 
I skipped this and used the setFilename approach instead.

Related question:
What do the values "priorityOffset" and "priorityScale" control? The 
documentation is quite sparse when it comes to this...

Best regards

Björn

> -----Ursprungligt meddelande-----
> Från: osg-users-boun...@lists.openscenegraph.org 
> [mailto:osg-users-boun...@lists.openscenegraph.org] För Robert Osfield
> Skickat: den 7 september 2009 13:03
> Till: OpenSceneGraph Users
> Ämne: Re: [osg-users] PagedLod - How to
> 
> Hi Vincent,
> 
> You don't need to assign a node ptr, as you can set the 
> filename against a child number that isn't yet loaded. i.e.
> 
>   plod->setFileName(0, "firstlod.ive");
>   plod->setFileName(1, "secondlod.ive");
> 
> Typically I'd actually assign the first child as an straight 
> subgraph that is loaded along with the PageLOD itself, then 
> the second child (with index 1) is the one that is loaded on 
> demand when the next up level of detail is required.  This 
> external subgraph which is stored on disk will typically 
> contain a Group and four PageLOD, each of which will have 
> it's first child already assigned as part of this external 
> file, and then it's second child the external file reference. 
>  This is repeat until you have the desired level of detail 
> for the high rest data you have.  This approach creates a 
> balanced quad tree that is perfect for real-time rendering.
> 
> Robert.
> 
> 
> On Mon, Sep 7, 2009 at 11:33 AM, Vincent 
> Bourdier<vincent.bourd...@gmail.com> wrote:
> > Hi all,
> >
> > Currently trying to set a PagedLod system on my model, I'm facing 
> > something strange for me :
> > Adding a child on a PageLod node, I need to set a Node* AND 
> a filename ...
> >
> > Why do I need to set the node ptr ? if the pagedLod load 
> from disk the 
> > node, there is no need of the ptr, isn't it ?
> >
> > Thanks for the explanations.
> >
> > Regards,
> >    Vincent.
> >
> > _______________________________________________
> > 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-opensce
negraph.org
> 
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to