Hi Antonio,

On Tue, 2006-02-28 at 20:19 +0100, antonio_lioy wrote:
> 
> Wow, I suppose that this is the solution to most of 
> my troubles, but I cannot get it very well.
> Naming Mh the matrix that rapresents the hand in world
> space, and Mobj the matrix that rapresents the object 
> picked in world space in the moment of picking 
> I suppose from what you told me to save 
> Msave=Mh*inv(Mobj)
> in the moment of picking and to compute the new position
> of the object as Mhn*Msave where Mhn is the new position 
> of the hand. Well, I tried those formulas but It doesn't
> work, cause I get random position when I picked something
> Maybe I missed something but I want to have understood
> the math. Shouldn't the relative position be
> Msave=inv(Mh)*Mobj??? 

Matrices are always from object to world space and the points are
applied on the right, so to get from hand to picked obj space you need
Msave = inv(Mobj) * Mh.

Hope it helps

        Dirk




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to