On 5/22/07, Robert Osfield <[EMAIL PROTECTED]> wrote:
Hi Julian,

Curious, I'm finding that the PickHandler in osgmultiplecameras isn't
working either... so a bug exists somewhere.  The good news is that I
can reproduce so I have a chance of fixing it.

I have now fixed the management of mouse x,y in CompositeViewer, this
fixes the picking.  There is also a chance it'll fix you own event
handler problems, but this is just a long shot as I don't know the
actual cause of the problems you've seen - unless I can recreate the
problem its very difficult for me to fix things.

As a general note, the osgViewer::CompositeViewer's handling of events
is a lot more complicated than that of osgViewer::Viewer, virtual of
the fact that you can have multiple views on one or more windows all
generating events, all of these need events to be directed to the
appropriate view, and to honour event event focus when dragging the
mouse pointer around.  The intent of CompositeViewer is that it should
handle all this complexity for you, you just attach event handlers to
the appropriate view and magically everything should just work, but
due to the flexibility of CompositeViewer it may well be combinations
that I've not tested against so achieving this goal may require a few
iterations.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to