Hello Carsten,

>> I switched to daily build and with this version I get no crash
>> anymore but the warnings.
>> However, I do not understand it.
>
> the FBOViewport gets the window from the action (at least at the point
> where it prints those warnings). And the window for the action to use
> is
> set inside Window::renderAllViewports, but on the first call to
> display() this has not happened when the two FBO Viewports are
> rendered.
> You can fix that by inserting one of the following lines
>
> // if you want it to work when compiling with enable_osg2_prep
> rAct->setWindow(get_pointer(pwin));
>
> // otherwise
> rAct->setWindow(pwin.getCPtr());

> before the call to vpleft->render(rAct);

The program crashes if I call this. However, shouldn`t 29FBOViewport produce 
the same warning? On my setup, it does not.

> For me it does not quite work even with this change [1], does the
> example Tutorials/29FBOViewport work for you ?

29FBOViewport works fine, but my derivative only produces black images. I 
wrote the Texture to png right after the rendering in order to avoid errors 
with the shaders or whatever. Moreover, I changed the background of vpleft, 
but the image is still black, even if I set the camera to the original cam 
of SimpleSceneManager.

Best regards,
Rene 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to