Hi Rahul,

Use the low level stereo support in the OSG that you'll current get
when using HORIZONTAL_SPLIT will mean that the viewer itself will just
know about one camera across both screens, while the low level
SceneView implementation will split it in two. As the viewer's camera
treats the whole window as one, the events will run across both as if
it's just one hence your problem.

To get the mouse events to behave like their is one one window you'll
need to get the viewer to do the stereo, using two slave cameras that
both share the same window, with this window stretched across both
screens (or one one each screen if you have two graphics cards).  Such
an approach for stereo at the higher viewer level is where the OSG is
headed, but as yet I haven't had a chance to implement this.

Robert.

On Mon, Dec 14, 2009 at 1:56 PM, Rahul Srivastava <[email protected]> wrote:
> Hi guys,
>
> I have an application where I am using HORIZONTAL_SPLIT stereo with Infitec
> glasses + 2 projector setup. The problem I am facing is that even though the
> screen is split in half, the mouse events are still generated according to
> the original screen.
>
> For example, if I have a screen of size 2560 x 1024, its horizontal split
> screens are 1280 x 1024 each. Now in the original screen(mono), a geometry
> would be placed at, let's say, (256,256) position. But in horizontal split,
> it'll be placed at (128,256). Now, if I click the object at position
> (128,256), I get no response. I need to click the original position
> (256,256) to select the object.
>
> So my question was that if I want to capture all mouse events before any
> other handler and scale the position of mouse by a certain factor, can I do
> it using an event handler?
>
> Regards,
>
> --
> Rahul Srivastava
> [email protected]
> [email protected]
>
>
>
>
> _______________________________________________
> 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