Hi Ewe,
On 5/11/07, Uwe Woessner <[EMAIL PROTECTED]> wrote:
first:
Is there an easy way to find out whether I am currently drawing the left
eye or right eye view in a drawImplementation(osg::RenderInfo &renderInfo)
I can't think of way off the top of my head. RenderInfo does allow
you to attach UserData which you could possible utilise in this
context. We potentially could add more information to RenderInfo as
well, this is why I introduce RenderInfo - to make it easier to add
pass
data into rendering code.
second:
In osgUtil SceneView::draw()
for osg::DisplaySettings::VERTICAL_INTERLACE and HORIZONTAL_INTERLACE,
the draw and read buffer are not initialized and thus rendering gets a
little indeterministic. If one adds the following lines as in
HORIZONTAL_SPLIT for example, everyting is fine.
if( getDrawBufferValue() != GL_NONE)
{
_renderStageLeft->setDrawBuffer(getDrawBufferValue());
_renderStageLeft->setReadBuffer(getDrawBufferValue());
_renderStageRight->setDrawBuffer(getDrawBufferValue());
_renderStageRight->setReadBuffer(getDrawBufferValue());
}
attached is a modified SceneView.cpp
The file came through inlined, could you zip it and send it along.
Cheers,
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/