Hi Robert,
yep, i think the easiest solution would be to have a proxynode with just one 
filename.

For the 'future' I would prefer an association (just the index of the filename 
in the group) between the database query and the node which gets paged in. So 
the database pager can 'mark' the query as loaded. This would allow additional 
features like:
* Let the ProxyNode decide if it continues to query if the node isn't loadable.
* Mark a node as dirty, so that the database pager will replace it with a 
freshly loaded node.

The 'null' children problem may be solved by having dummy nodes which are still 
marked as dirty.

Richard



-----Ursprüngliche Nachricht-----
Von: osg-users-boun...@lists.openscenegraph.org 
[mailto:osg-users-boun...@lists.openscenegraph.org] Im Auftrag von Robert 
Osfield
Gesendet: Mittwoch, 24. März 2010 15:36
An: OpenSceneGraph Users
Betreff: Re: [osg-users] Erros with ProxyNode

Hi Richard,

Interesting bug... fixing it is likely to be a bit awkward given the
currently implementation of ProxyNode/DatabasePager, doing one file at
a time won't even address all the potential issues as the ordering can
sit get out of sync if early children fail to load but later children
succeed.  Adding support into DatabasePager to allow it to set
specific children would require osg::Group to support having null
children, something which has quite a few potential pitfalls.

My first thought for a solution would be to change ProxyNode so that
is only has one filename, rather than multiple ones as it has now.
This would avoid any issues about which files are loaded and keep the
filename list in sync with the children.  This is an API change
though, but I can't see a better option right now.

Thoughts?
Robert.

On Wed, Mar 24, 2010 at 1:25 PM, Schmidt, Richard
<richard.schm...@eads.com> wrote:
> Hi,
>
> there seems to be an error using proxyNodes. If you setup a proxyNode using
> multiple filenames, not all files may get paged in correctly.
>
> This is related to the sequence the databasepager loads nodes, which may
> vary if you load nodes using curl. There is no association between the
> filename and the node which gets paged in, so the proxyNode, request may
> request nodes twice.
>
>
>
> Possible solution:
>
> Let ProxyNode::traverse only request one Node at a time. If the file is not
> found however, the follow up filenames will never be requested.
>
>
>
> Regards,
>
> Richard
>
> _______________________________________________
> 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
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to