Re: [osg-users] viewport is changing after huge sized object ; updating only visible nodes

2016-03-30 Thread Mathias Fröhlich
Hi, On Wednesday, March 30, 2016 08:19:31 Robert Osfield wrote: > On 30 March 2016 at 08:14, Andrey Perper wrote: > > > >I guess he wants to have the updateCallback called for "culled" geodes, > > or some way to check if the node was culled. For a similar problem, I also had subclassed the stan

Re: [osg-users] viewport is changing after huge sized object ; updating only visible nodes

2016-03-30 Thread Robert Osfield
On 30 March 2016 at 08:14, Andrey Perper wrote: > >I guess he wants to have the updateCallback called for "culled" geodes, > or some way to check if the node was culled. > > Yes!! that is correct! > The OSG by default calls update callbacks on all nodes that have an update callback, so works fin

Re: [osg-users] viewport is changing after huge sized object ; updating only visible nodes

2016-03-30 Thread Andrey Perper
>I guess he wants to have the updateCallback called for "culled" geodes, or >some way to check if the node was culled. Yes!! that is correct! > I know too little about the specifics of your application. The Application has earth + missile tracks on earth. I just add these tracks to scene and

Re: [osg-users] viewport is changing after huge sized object ; updating only visible nodes

2016-03-28 Thread Sebastian Messerschmidt
Hi, Hi Andrey, On 22 March 2016 at 09:30, Andrey Perper > wrote: Hey guys!!! 1) My scene is set like it is always fits in camera (i guess it is osg-default). If i add huge sized object - i see all scene (camera flies away), but my viewpoint mus

Re: [osg-users] viewport is changing after huge sized object ; updating only visible nodes

2016-03-28 Thread Robert Osfield
Hi Andrey, On 22 March 2016 at 09:30, Andrey Perper wrote: > Hey guys!!! > > 1) My scene is set like it is always fits in camera (i guess it is > osg-default). If i add huge sized object - i see all scene (camera flies > away), but my viewpoint must stay old. > > How to fix that ? > First t

[osg-users] viewport is changing after huge sized object ; updating only visible nodes

2016-03-28 Thread Andrey Perper
Hey guys!!! 1) My scene is set like it is always fits in camera (i guess it is osg-default). If i add huge sized object - i see all scene (camera flies away), but my viewpoint must stay old. How to fix that ? 2) I have dozen of nodes that are updating in my addUpdateCallback functor anyw