Hi Loinel,
I'm not surprised that you need to call createSlaveCameras() before
the realize(), as the realize places the Operations required to do the
rendering for each camera on each GraphicsWindow, without these
Operations added no rendering will be done for these Cameras.
Robert.
On 7/27/07, Lionel Lagarde <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have some code that has to handle classic osgViewer::Viewer and
> embedded osgViewer::Viewer.
>
> We have also a predraw, a postdraw and a hud slave camera.
>
> I'm trying to have almost the same code path in the 2 modes (embedded or
> not).
>
> For the moment, it looks like:
>
> if (embedded)
> {
> viewer.init();
> viewer.realize();
> createSlaveCameras();
> }
> else
> {
> viewer.setUpViewAcrossAllScreens();
> createSlaveCameras();
> viewer.init();
> viewer.realize();
> }
>
> It's not so bad. It's just a few different lines but I don't understand
> why the
> embedded code path doesn't work in the non embedded case (The slave
> camera are not
> culled nor rendered).
>
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org