Sinisa, Yes, I am using the Viewer of the Producer.How does I make to configure the DataBasePager in it? I need to consult the spatial data base all time that will be made a translation of the camera, because it is through the returns of the database that I can know which the objects near.
Thanks, Ronald S.Serrao, [EMAIL PROTECTED] São Luís, Brasil. > Hi Ronald, > > osgsimplepager is one example of DatabasePager's use; there you can see > all the calls needed for setting up the DatabasePager, but they are > only needed if you do not use osgProducer::Viewer. If you use the > Viewer, it sets up the DatabasePager itself, so you just need to > follow Robert's advice. > > Once you have your paged database and you have the DatabasePager > managing its loading (previous paragraph), I think there is no need to > receive any results from the DatabasePager. > > Sinisa > > ----- Original Message ----- > From: "ronaldss" <[EMAIL PROTECTED]> > To: "osg-users" <[email protected]> > Sent: Thursday, September 14, 2006 6:58 PM > Subject: Re: [osg-users] How to walk in the scene graph? > > > Hi Robert, > I use DatabasePager to receive the results from the research of my > spacial data base? > Exists some example of use of the DatabasePager? > > Thanks, > Ronald S.Serrao, > Brasil. > > > > Hi Ronald, > > > > For this type of big database paging may well be the solution, the OSG > > has > > built in support for paging so all you'll need to do is build the > > paged > > database and then load the topmost tile and the then the DatabasePager > > will > > do all the updating of the scene for the current view position. > > > > Robert. > > > > On 9/14/06, ronaldss <[EMAIL PROTECTED]> wrote: > > > > > > Hi all, > > > > > > I am constructing an urban model to visualize a quarter entire, am > > > using > > > data base spatial to get the information of the streets, squares... > > > and each > > > entity has an object 3D for its representation. As the object number > > > is > > > great, I only load in my graph of scene those objects that are near > > > of the > > > camera. I used the osgimpostor example to make my manipulator of the > > > camera, > > > and each movement of the camera I consult in the data base the > > > objects that > > > are near of this position and the loaded. > > > > > > Here my problem appears, to each change in the position of the > > > camera I > > > all erase the content of mine of the scene graph and later I place > > > all again > > > the objects, and believe that is this the reason of mine framerate > > > to fall > > > very. > > > > > > I would like to know as I make to cross the scene graph to verify > > > which > > > nodes must be removed and which must be inserted, not to be > > > necessary to > > > remove all and again place them to each movement of the camera. > > > > > > Thanks, > > > > > > Ronald S.Serrao, > > > Brasil. > > > > > > > > > _______________________________________________ > > > 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/
