Hi Elliott,

>From a quick read of your original email I was left unsure what you
understood and didn't understand about the various transformations
required.  Given that it's hard to know what to explain.

The best I can suggest to get that you'll need to get the intersection
test in the appropriate coordinate frame of the geometry that it'll be
intersecting.  The IntesectionVisitor has pretty flexible support for
tranforming the intersection tests from one coordinate frame to
another - for instance converting from window or eye coordinates to
world coordinates is built into the design.  See the osgpick example.
My guess is that in your case you just need sort what transform you
need to apply to get the intersections into world coords.

If you are having a problem with getting your head around coordinate
transforms as a topic then I can't really teach you, I'm not your
maths class teacher.  There are plenty of online resources and books
about matrix maths and coordinate transformations.

Robert.

On Fri, Nov 12, 2010 at 5:07 PM, Elliott Dicus <[email protected]> wrote:
> Hello again,
>
> I'm trying to work out my situation above to no avail.  :?
>
> Does the wandMatrixTransform transform wand coordinates to camera/scene 
> coordinates or camera/scene coords to wand coords?
>
> Is this what I need to use? For instance: define a start and end point as if 
> they were attached to my pen. Say (0,0,0) and (0,0,30). And then multiply 
> those points by the matrix from wandMatrixTransform->getMatrix().
>
> Does this give me the points in scene coords that I can give to 
> LineSegmentIntersector?
>
> If anyone has done LineSegmentIntersection projecting a line from a moving 
> object, I'd love to see how you handled the positions!
>
> Thanks again for reading,
> Elliott
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=33722#33722
>
>
>
>
>
> _______________________________________________
> 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