Re: [osg-users] Please suggest ways to get PagedLOD nodes to pre-load when switching nodes.

2011-09-21 Thread Eric Heft
Hi, For anyone searching for answer for how to preload a pageLOD this is what I hacked together which was 'good enough' for a proof of concept. Using osgCompositeViewer.cpp I was able to set up a second viewport and slaved the camera to the primary view. Then I was able to shrink the viewport

Re: [osg-users] Please suggest ways to get PagedLOD nodes to pre-load when switching nodes.

2011-09-19 Thread Chris 'Xenon' Hanson
On 9/19/2011 5:27 PM, Eric Heft wrote: > In your post above you suggest adding a camera that doesn't actually render. > Can you point out which of the example projects I should look at? I don't know exactly what is required as far as a Camera in order to trigger the LOD system to cull with i

Re: [osg-users] Please suggest ways to get PagedLOD nodes to pre-load when switching nodes.

2011-09-19 Thread Eric Heft
Hi, Chris I have a switch with the root nodes for each frame. So for the playback I do something like: Code: while( !viewer.done() ){ float t = (GetTickCount()-TM)/1000.0; if (t >= 0.33) { if (play)

Re: [osg-users] Please suggest ways to get PagedLOD nodes to pre-load when switching nodes.

2011-09-19 Thread Chris 'Xenon' Hanson
Do you know which nodes need to be pre-loaded? It shouldn't be too hard to request the pager add them to the load queue. You could alternately add a secondary camera that isn't actually rendering and use it to run ahead of the real camera somehow and trick the pager into preloading what IT

[osg-users] Please suggest ways to get PagedLOD nodes to pre-load when switching nodes.

2011-09-17 Thread Eric Heft
Hello, Q: Can I force the database pager to load a scene? ie. when I switch a sub-graph "on" I need the data to be ready. It takes about 100 ms to completely load and I have ~333 ms between switch nodes so I have time but need to avoid seeing the transitions from low->mid->high resolution.