Hello Carsten,

sotty for being so late.

>> template <class BasePtrTypeT, class FieldContainerTypeT> inline
>> FieldContainerTypeT &FCPtr<BasePtrTypeT,
>> FieldContainerTypeT>::operator *(void) const
>
> hm. I'm not sure if it has anything to do with the crash you are
> seeing,
> but one thing that is missing is the
> Window::activate/frameInit/frameExit/deactivate around the render
> calls. Otherwise it can complain about missing extensions.
>
> void display(void)
> {
>     pwin->activate();
>     pwin->frameInit();
>
>     // get the RenderAction from SimpleSceneManager
>     RenderAction *rAct = static_cast<RenderAction*>(mgr->getAction());
>
>     rAct->setWindow(get_pointer(pwin));
>     // render scene from left eye
>     vpleft->render(rAct);
>
>     // render scene from right eye
>     vpright->render(rAct);
>
>     pwin->frameExit();
>     pwin->deactivate();
>
>     counter++;
>
>     mgr->redraw();
> }

These changes fix the warnings and the crash.

>> However, there is still another open problem besides the warnings:
>> Both cameradecorators render the same image, so there is still no
>> stereo effect and I don`t know why. Maybe someone knows a solution?
>
> ah, I think I found what causes that.  Add these to your FBOViewports:
>
> vpright->setIgnoreCameraDecorators(false);
>
> With these changes I see an interlaced torus drawn. It may need some
> tuning so that you don't see the non-interlaced torus when the SSM
> draws
> the scene.

With this call I also can see the stereo rendered torus. The non-interlaced 
torus is suppressed automatically by the use of the PolygonForeground. So, 
everything works fine now.

Many thanks again,
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