Re: [osg-users] camera far plane culling issues

2016-10-17 Thread Trajce Nikolov NICK
Ah ok .. That makes sense then .. Thanks Robert

On Mon, Oct 17, 2016 at 9:46 AM, Robert Osfield 
wrote:

> HI Nick,
>
> Culling works on the bound volumes of objects so if the objects have
> any point of their bounding box/sphere the eye side of the far plan
> they won't be culled.
>
> Robert.
>
> On 16 October 2016 at 23:31, Trajce Nikolov NICK
>  wrote:
> > Hi Commuity,
> >
> > I have RTT camera and for some reason the culling is not working as
> > expected. Here is the code:
> >
> > camera->setProjectionMatrixAsPerspective(70, 1, 5, 10);
> > camera->setCullingMode(osg::CullSettings::FAR_PLANE_CULLING);
> > camera->setComputeNearFarMode(osg::CullSettings::DO_NOT_
> COMPUTE_NEAR_FAR);
> >
> > I am still seeing far behind these 10m
> >
> > Any hints?
> >
> > --
> > trajce nikolov nick
> >
> > ___
> > 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
>



-- 
trajce nikolov nick
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] camera far plane culling issues

2016-10-17 Thread Robert Osfield
HI Nick,

Culling works on the bound volumes of objects so if the objects have
any point of their bounding box/sphere the eye side of the far plan
they won't be culled.

Robert.

On 16 October 2016 at 23:31, Trajce Nikolov NICK
 wrote:
> Hi Commuity,
>
> I have RTT camera and for some reason the culling is not working as
> expected. Here is the code:
>
> camera->setProjectionMatrixAsPerspective(70, 1, 5, 10);
> camera->setCullingMode(osg::CullSettings::FAR_PLANE_CULLING);
> camera->setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR);
>
> I am still seeing far behind these 10m
>
> Any hints?
>
> --
> trajce nikolov nick
>
> ___
> 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] camera far plane culling issues

2016-10-16 Thread Trajce Nikolov NICK
Hi Commuity,

I have RTT camera and for some reason the culling is not working as
expected. Here is the code:

camera->setProjectionMatrixAsPerspective(70, 1, 5, 10);
camera->setCullingMode(osg::CullSettings::FAR_PLANE_CULLING);
camera->setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR);

I am still seeing far behind these 10m

Any hints?

-- 
trajce nikolov nick
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org