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.

Glenn Waldron / Pelican Mapping / @glennwaldron


On Wed, Oct 5, 2011 at 3:48 AM, Robert Osfield wrote:

> 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 as the master camera.
>
> Robert.
>
>
> On Tue, Oct 4, 2011 at 10: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:
> > 1) Calling CullVisitor::pushReferenceViewPoint on the RTT subgraph ... to
> no
> > effect
> > 2) Creating a new RenderStage and traversing the RTT subgraph a second
> time
> > with it; that works in terms of properly activating the PagedLODs, but
> not
> > for rendering - the still switch in/out relative to the RTT camera.
> > I'd appreciate some pointers on this one. Thanks.
> >
> >
> Glenn Waldron / Pelican Mapping / @glennwaldron
> >
> > ___
> > osg-users mailing list
> > osg-users@lists.openscenegraph.org
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> >
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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 as the master camera.

Robert.


On Tue, Oct 4, 2011 at 10: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:
> 1) Calling CullVisitor::pushReferenceViewPoint on the RTT subgraph ... to no
> effect
> 2) Creating a new RenderStage and traversing the RTT subgraph a second time
> with it; that works in terms of properly activating the PagedLODs, but not
> for rendering - the still switch in/out relative to the RTT camera.
> I'd appreciate some pointers on this one. Thanks.
>
> Glenn Waldron / Pelican Mapping / @glennwaldron
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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:
> 1) Calling CullVisitor::pushReferenceViewPoint on the RTT subgraph ... to no 
> effect
> 2) Creating a new RenderStage and traversing the RTT subgraph a second time 
> with it; that
> works in terms of properly activating the PagedLODs, but not for rendering - 
> the still
> switch in/out relative to the RTT camera.
> I'd appreciate some pointers on this one. Thanks.

  Wouldn't shadowmap cameras face the same issue hand have already solved this? 
Maybe the
technique can be inferred from there.

-- 
Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com 
http://www.alphapixel.com/
  Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. 
Contracting.
"There is no Truth. There is only Perception. To Perceive is to Exist." - 
Xen
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[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 the RTT subgraph ... to no
effect

2) Creating a new RenderStage and traversing the RTT subgraph a second time
with it; that works in terms of properly activating the PagedLODs, but not
for rendering - the still switch in/out relative to the RTT camera.

I'd appreciate some pointers on this one. Thanks.


Glenn Waldron / Pelican Mapping / @glennwaldron
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org