kellogs
08-28-2008, 08:40 AM
...from an arbitrary point.
Hi, i'm trying to implement something similar to maya's (well, pretty much all 3d editors) vertex/object move edit.
What that allows you to do is click on any edit point on the screen from any viewing orientation,
then move that edit point with the mouse along what appears to be a plane parallel to the view cam.
Reason being, i'm trying to create a simple curve editor for a game i'd like to make, and although I've already
got a few hacky ways of getting results its obviously going to be better to get something like this right from the start
Problem is though, the only way i know how to create a plane is from a triangle, i've tried using parts of the modelview matrix to create
a vector perpendicular to my pick point and cam by using modleview[4],[5],[6] = up vector, but these seem to warp.
Anyone know what the best solution is to go about this?
It seems like a fairly common problem but my googleing hasn't turned up much useful info and my maths is rubbish
Many thanks
Hi, i'm trying to implement something similar to maya's (well, pretty much all 3d editors) vertex/object move edit.
What that allows you to do is click on any edit point on the screen from any viewing orientation,
then move that edit point with the mouse along what appears to be a plane parallel to the view cam.
Reason being, i'm trying to create a simple curve editor for a game i'd like to make, and although I've already
got a few hacky ways of getting results its obviously going to be better to get something like this right from the start
Problem is though, the only way i know how to create a plane is from a triangle, i've tried using parts of the modelview matrix to create
a vector perpendicular to my pick point and cam by using modleview[4],[5],[6] = up vector, but these seem to warp.
Anyone know what the best solution is to go about this?
It seems like a fairly common problem but my googleing hasn't turned up much useful info and my maths is rubbish
Many thanks