I'm afraid I will have to defere to others to help you out. I haven't tried what you are after, but others have. It should be possible, but it will be a bit awkward. I have given the pointers that I think should you on your way, but beyond this I'm afraid I give any more directions, you are off my map.
Robert.
On 9/4/06, Rafa Gaitan <[EMAIL PROTECTED]> wrote:
Hi again Robert,
I was studying the problem, and before try to share the framestamp I was trying to
use different DatabasePager for each instanced VIewer, but when I try to run
the application.. the same problems are shown (tiles disappearing.. and others..).
I was reading the code of DatabasePager.. and I think that instance the
DatabasePager inside a Viewer without using Registry is possible, but maybe
I'm completely confused about that..
In other context trying to share the framestamp.. well maybe is a problem
becouse the application doesn't start each viewer at same time, The viewer
can be created when user needs a new "View3D" of a GIS DataSet.
I was thinking in the way to do that.. and when some Viewers are instanced.. one
way to share framestamp is to call update, cull, draw for each Viewer consecutively,
and maybe that could give slow framerates.
So, is It possible to instance differente DatabasePager for each instanced Viewer?
or any suggestion on how to share the FrameStamp in this context?
Thanks,
Rafa.On 8/31/06, Robert Osfield < [EMAIL PROTECTED]> wrote:Hi Rafa,
You don't need to share contexts to support multiple graphics contexts, you just need to tell the DatabasePager about as below.
As for an example, I've never implemented an app with what you are trying to do. Others have though, and osgProducer::Viewer does allow for multiple cameras, and they needn't share lens or view matrices, so it should be possible to set up you usage too, my guess that it'd work just fine with this type of usage.
Robert.On 8/31/06, Rafa Gaitan < [EMAIL PROTECTED]> wrote:Thanks Robert,
Reviewing the code to share the framestamp in all the instances of the viewer I have seen this..
// tell the database pager which graphic context the compile of rendering objexts is needed.
databasePager->setCompileGLObjectsForContextID(itr->sceneView->getState()->getContextID(),true);
this maybe give me some problems too, isn't it?.. I have seen that is possible to share the context.. and maybe
is what I need.. How can I do it?.. There is any example???
Thanks again...Rafa.On 8/31/06, Robert Osfield < [EMAIL PROTECTED]> wrote:Hi Rafa,
You can make it work, but you need to be careful how you manage the FrameStamp of the different views, you need to make sure that you update both the views with the same frame number and time otherwise the DatabasePager will be confused by objects being requested as being older than they really are, something that will cause it to discard them as being stale.
Robert.On 8/31/06, Rafa Gaitan < [EMAIL PROTECTED]> wrote:Hi,
I have a problem in my application, I have two different Viewers, with two different sceneviews,
which every one loads different PagedLOD scenes. The main problem is when the
DatabasePager try to do the work.. I'm not sure what is really doing.. but some tiles
disappear or are not shown correctly.
The question is if is it possible to use the same DatabasePager in two different scenes
at same time?.. in two different Viewers or more?. If not.. any ideas on how to afford the problem?
Thanks.Rafa.
_______________________________________________
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/
_______________________________________________
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/
_______________________________________________
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/
