e.derebey
2011-08-11 18:41:52 UTC
Hi,
I'm trying to find the 3D position of the mouse postion. I found some info
on the net that the unproject method can give us the ray of the 2D mouse
postion. Then we can intersect this ray with the Marker's Plane, so we can
find the intersected postion that is the 3D position of the mouse postion.
But I haven't any idea how to get the plane of the marker? I did some work
like this:
var ray:Number3D = flarCamera3D.unproject(mouse.x, mouse.y);
ray = Number3D.add(ray, flarCamera3D.position);
var p : Plane3D = ??? MARKER PLANE 3D????
var intersect:Number3D =
p.getIntersectionLineNumbers(flarCamera3D.position, ray);
How can I find the marker's plane 3D matrix?
Any help appreciated.
Regards.
--
View this message in context: http://papervision3d.758870.n4.nabble.com/Normal-vector-Unproject-tp3736768p3736768.html
Sent from the Papervision3D mailing list archive at Nabble.com.
I'm trying to find the 3D position of the mouse postion. I found some info
on the net that the unproject method can give us the ray of the 2D mouse
postion. Then we can intersect this ray with the Marker's Plane, so we can
find the intersected postion that is the 3D position of the mouse postion.
But I haven't any idea how to get the plane of the marker? I did some work
like this:
var ray:Number3D = flarCamera3D.unproject(mouse.x, mouse.y);
ray = Number3D.add(ray, flarCamera3D.position);
var p : Plane3D = ??? MARKER PLANE 3D????
var intersect:Number3D =
p.getIntersectionLineNumbers(flarCamera3D.position, ray);
How can I find the marker's plane 3D matrix?
Any help appreciated.
Regards.
--
View this message in context: http://papervision3d.758870.n4.nabble.com/Normal-vector-Unproject-tp3736768p3736768.html
Sent from the Papervision3D mailing list archive at Nabble.com.