Hello Rene,
Rene Weller wrote:
> sotty for being so late.
no worries, I'm happy to hear that it works now :)
[SNIP - code with added Window::activate() calls etc.]
> These changes fix the warnings and the crash.
ok, meanwhile Dirk thought of a less obscure solution: just adding the
FBOViewports to the window - the only trick here is to add them before
the "regular" viewport for the final image.
beginEditCP(pwin);
addRefCP(vp);
pwin->subPort(0);
pwin->addPort(vpright);
pwin->addPort(vpleft );
pwin->addPort(vp );
endEditCP(pwin);
With this the display callback goes back to just calling mgr->redraw().
Small caveat with this solution is that the SSM might not do the right
thing when enabling statistics (because it just adds the
SimpleStatisticsForeground to the first viewport).
The addRefCP(vp) call has no matching subRefCP(vp) because of the, uhm,
"interesting" way the ref counting for objects in the
Source/System/Window directory works ;-/
I'll play a bit more with this to see if it works decent and then modify
the examples so this hopefully becomes a bit less obscure in the future.
regards,
Carsten
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users