Re: [osg-users] PagedLODs under an RTT camera - how to use the proper viewpoint?

2011-10-05 Thread Robert Osfield
HI Glenn, The osg::Camera/RTT mechanism has explict support for inheriting the parents view point for the purpose of LOD calculations. Simple use: camera-setReferenceFrame(osg::Camera::ABSOLUTE_RF_INHERIT_VIEWPOINT); This is what osgShadow does for making sure the shadows use the same LOD's

Re: [osg-users] PagedLODs under an RTT camera - how to use the proper viewpoint?

2011-10-05 Thread Glenn Waldron
Robert, That works, thank you! However... I found that the ClusterCullingCallback doesn't cooperate. It looks like the CCC uses getEyePoint() to do its test. I changed it to use getViewPoint() and it seems to work properly. Let me know whether you concur, and if so I will submit the change.

[osg-users] PagedLODs under an RTT camera - how to use the proper viewpoint?

2011-10-04 Thread Glenn Waldron
Hi friends, I have a graph under an RTT camera. That graph contains PagedLODs. Of course, I want the cull traversal to load the PagedLODs based on my main scene camera, and NOT based on the RTT camera's location. I've tried a couple of things: 1) Calling CullVisitor::pushReferenceViewPoint on

Re: [osg-users] PagedLODs under an RTT camera - how to use the proper viewpoint?

2011-10-04 Thread Chris 'Xenon' Hanson
On 10/4/2011 3:10 PM, Glenn Waldron wrote: Hi friends, I have a graph under an RTT camera. That graph contains PagedLODs. Of course, I want the cull traversal to load the PagedLODs based on my main scene camera, and NOT based on the RTT camera's location. I've tried a couple of things: