Hello Rene,

Rene Weller wrote:
>>> I'm sorry, must have missed that. Could you please try and run your
>>> program in a debugger and send the stack trace [1] of the point when
>>> it crashes, that would help focusing on the right place to find the
>>> problem. BTW for me the program does not really crash, it switches
>>> my video mode (even after commenting the glutGameMode call), prints:
>>> WARNING:  FBOViewport::render: no window!
>>> WARNING:  FBOViewport::render: no window!
>> The call stack doesn`t seem to be very helpful because OpenSG does
>> not load symbols. I use VS2005 with the precompiled 1.8 release of
>> OpenSG
> 
> 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);
For me it does not quite work even with this change [1], does the 
example Tutorials/29FBOViewport work for you ?

        Hope it helps,
                Carsten

-------------------------------------------------------------------------
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