Hi, Mike,
I think you have to set the clearcolor of HUD camera to change the
clearcolor of the none-distorted area, and for the distorted area you have
to set the clearcolor of the RTT camera.

Other discovered bugs are:
It might be issues with the depth in the scene, I had to add an osg::Depth
StateAttribute to the scene to make the depthbuffer valid.

In oculusdevice, the position vector has to be Vec3Array instead of
Vec2Array for the distorsion mesh, otherwise it will fail when the
TriangleFunctor is applied to the node, this was discovered when setting
setAllowEventFocus to true for the cameras.

Kind regards
Patrik


On Mon, Aug 25, 2014 at 2:24 AM, Mike Strean <[email protected]> wrote:

> Greetings,
>
> Sorry for the noob question ( and maybe more of a general OSG one ) ... I
> am working off of the osgoculus "viewerexample", trying to set the
> background/Clear color. I guess I'm having trouble understanding how the
> views/viewers work together.
>
> I've tried in the graphics context:
>
>
> Code:
> gc->setClearColor( osg::Vec4( 0.0f, 0.0f, 0.0f, 1.0f ) );
>
>
>
> and in the osgViewer:
>
>
> Code:
> viewer.getCamera()->setClearColor( osg::Vec4( 0.0f, 0.0f, 0.0f, 1.0f ));
>
>
>
> to no effect.
>
>
> Cheers,
> Mike[/code]
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=60753#60753
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to