On 4. Aug 2008, at 18:42, Mathias Heyer wrote: > Is it possible to determine, in which channel a pointerButtonPress > event originated?
Ha! An innocently looking question! ;) > I want to implement 2D picking, but in order to do so, I need to > find out about the channel viewport and the modelview and > projections matrices in use. It's not trivial to associate a pointer event to a channel, since source channels do not use their native pixel viewport during rendering, and on a given point multiple channels might be located. There is some preliminary support to associate a render context to a pointer event (see Event::context). A render context holds all compound/channel-related data (frustum, vp, etc.). I haven't used it yet and there might be some issues with it. The other possibility is to find the channel in Window::processEvent based on the channel's native pixel viewport, but this might not be the 'right' channel. HTH, Stefan. _______________________________________________ eq-dev mailing list [email protected] https://in-zueri.ch/cgi-bin/mailman/listinfo/eq-dev http://www.equalizergraphics.com

