Re: [osg-users] camera pre-render and culling order

2016-09-10 Thread Trajce Nikolov NICK
Thanks for the clarification Robert!

Nick

On Sat, Sep 10, 2016 at 6:27 PM, Robert Osfield 
wrote:

> Hi Nick,
>
> On 10 September 2016 at 11:47, Trajce Nikolov NICK
>  wrote:
> > anyone knows what is the order of the camera pre-render and the cull
> > traversal in a frame?
>
> Cull and Draw are separate and for the same frame always done in the
> order Cull then Draw.  Draw contains all pre rendering, main rendering
> and post rendering stages.
>
> If there are multiple Camera's on a GraphicsContext/Window then the
> Cull and Draw for the different Camera's can be interleaved, depending
> on the threading model, but always for a single Camera the cull
> traversal of it's subgraph is always done before the rendering for
> that subgraph.
>
> This has to happen this way as it's the cull traversal that decides
> what goes into a draw traversal.
>
> Robert.
> ___
> 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 pre-render and culling order

2016-09-10 Thread Robert Osfield
Hi Nick,

On 10 September 2016 at 11:47, Trajce Nikolov NICK
 wrote:
> anyone knows what is the order of the camera pre-render and the cull
> traversal in a frame?

Cull and Draw are separate and for the same frame always done in the
order Cull then Draw.  Draw contains all pre rendering, main rendering
and post rendering stages.

If there are multiple Camera's on a GraphicsContext/Window then the
Cull and Draw for the different Camera's can be interleaved, depending
on the threading model, but always for a single Camera the cull
traversal of it's subgraph is always done before the rendering for
that subgraph.

This has to happen this way as it's the cull traversal that decides
what goes into a draw traversal.

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


[osg-users] camera pre-render and culling order

2016-09-10 Thread Trajce Nikolov NICK
Hi Community,

anyone knows what is the order of the camera pre-render and the cull
traversal in a frame?

Thanks a bunch as always!

Cheers,
Nick

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