Hi OpenSG users (and yvonne in particular),
Here is my trouble: I am rendering a scene using a width that is almost
3 times the height. The result is a very deformed image on the edges due to
the strange aspect ratio of the camera I am using (a sort of fish eye).
For a number of reasons, I am not rendering directly into a window but I am
using one FBOviewport to assist my rendering.
My question are:
1) How may I solve the distortion at the edges of the screen?
2) I have tried to split my rendering using 3 FBOs which all target the same
texture. I hoped to limit their influence using the fbo->setSize ()
function, assigning one third of the viewport each, but no matter what I
try, just the last one that I attach gets hold on the texture and renders
the viewport in it's third of the window. Are the some stray calls to clear
fbo texture which I may disable?
Right now my main rendering cycle looks like:
for (int i=0;i<m_pFBO.size ();i++)
{
osg::RenderAction *rac = osg::RenderAction::create();
rac->setWindow(m_pFBO[i]->getParent().getCPtr() );
m_pMgr->redraw ();
m_pFBO[i]->render (rac);
delete rac;
}
But something must be missing...
Thanks
E.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users