Hi Eric, On 1/10/07, E. Wing <[EMAIL PROTECTED]> wrote:
I'll give it a shot (but I was operating under the assumption that this worked in the standard osg examples and it was something wrong with my code).
I couldn't spot an mistake in your code, but its real hard to spot bugs just form code alone - unless its glaring obvious.
Thanks, that helps clear that up. So if I wanted to do a selection-rectangle (rubber-band) like you find in many 2D image applications, would PlaneIntersection be the best way to do this or would would I need to use a Polytope Intersector (since my selection-rectangle isn't infinite in width and height)?
PolytopeIntersector is probably what you want. The PolytopeIntersector isn't complete yet though, there was a patch for it submitted via the mailing list last month that wasn't yet in a perfect form for merging, once I have time I'll try and track this down and consider merging it/chase up the author.
> What coordinate frame is your mouse coordinates in? If they are in > window coordiantes then just use WINDOW as you are doing. So my mouse coordinates are aligned with the View coordinates which I think fits with this definition of WINDOW.
WINDOW coordinates as the coordinates that the windowing system will give you when your mouse is in the Window. Robert. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
