[osg-users] cull traversal

Trajce Nikolov NICK trajce.nikolov.nick at gmail.com
Sun Mar 20 13:09:38 PDT 2016


Hi Robert,

> If you need a callback for the end of cull traversal then there isn't any
specific built in for this, you could subclass from osgViewer::Renderer and
implement your own wrapper for the cull traversal to do what you want.

I though of this. And it is the proper way I think. I did it in a simpler
way by adding a node at the end of the scenegraph and set a cullcallback
and it works

Thanks anyway :-)

Cheers,
Nick

On Sun, Mar 20, 2016 at 8:44 PM, Robert Osfield <robert.osfield at gmail.com>
wrote:

> HI Nick,
>
> The osg::Stats object can record different times for various parts of the
> frame, a subset of these are displayed by the StatsHandler when you enable
> it.
>
> If you need a callback for the end of cull traversal then there isn't any
> specific built in for this, you could subclass from osgViewer::Renderer and
> implement your own wrapper for the cull traversal to do what you want.
>
> Robert.
>
> On 20 March 2016 at 17:04, Trajce Nikolov NICK <
> trajce.nikolov.nick at gmail.com> wrote:
>
>> Just looked at the code .. So it is
>>
>> _viewer->renderingTraversals();
>>
>> calling
>>
>> renderer->cull();
>>
>> on the Cameras ....
>>
>> Is there any way to know when this cull is completed?
>>
>> On Sun, Mar 20, 2016 at 12:52 PM, Trajce Nikolov NICK <
>> trajce.nikolov.nick at gmail.com> wrote:
>>
>>> Hi community,
>>>
>>> any clue when the cull traversal is being dispatched in this decomposed
>>> viewer frame calls?
>>>
>>> _viewer->advance();
>>> _viewer->eventTraversal();
>>> _viewer->updateTraversal();
>>> _viewer->renderingTraversals();
>>>
>>> Thanks a bunch as always!
>>>
>>> Nick
>>>
>>> --
>>> trajce nikolov nick
>>>
>>
>>
>>
>> --
>> trajce nikolov nick
>>
>> _______________________________________________
>> osg-users mailing list
>> osg-users at lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


-- 
trajce nikolov nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160320/bb69e694/attachment-0003.htm>


More information about the osg-users mailing list