HI Adrian,
In the osgstereoimage example you'll find the following code:
// now the windows have been realized we switch off the cursor to prevent it
// distracting the people seeing the stereo images.
float fovy = 1.0f;
for( unsigned int i = 0; i < viewer.getNumberOfCameras(); i++ )
{
Producer::Camera* cam = viewer.getCamera(i);
Producer::RenderSurface* rs = cam->getRenderSurface();
rs->useCursor(false);
fovy = osg::DegreesToRadians(cam->getLensVerticalFov());
}
On 12/13/06, Adrián Alfonso Pérez Rivera <[EMAIL PROTECTED]> wrote:
Hi Robert,
Thanks for your answer, i'm using producer but i don´t know how i can hide
the mouse pointer. I hope you could help me.
> Hi Adrian,
> On 12/12/06, Adrián Alfonso Pérez Rivera < [EMAIL PROTECTED]> wrote:
> Hi, I´m new in openscenegraph an i'am trying to do a first person camera
> manipulator like doom, half-life, etc., also i would like to hide the
mouse
> pointer.
> Does anybodoy has an idea to solve this??
> You could roll your own manipulator along the lines of the existing
> osgGA::MatrixManipulators like
>
TrackballManipulator/FlightManipulator/DriverManipulator/UFOManipulator
> (see the source code for inspiration), or you could just set the view
> matrix of the viewer yourself.
> If you want to hide the mouse pointer then you just need to call the
>windowing toolkit to do this, as to what call to use I can't say as
> each windowing toolkit is different. What windowing toolkit are you
> using?
> Robert.
--
Atte.
Adrián Alfonso Pérez Rivera
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/