질문 : 특정 오브젝트의 inverse matrix 를 얻어내려면?
요약 : 다음 attribute 를 이용하면 된다.
getAttr obj.inverseMatrix // 오브젝트의 inverse
getAttr obj.worldInverseMatrix // 오브젝트의 월드에 대한 inverse
getAttr obj.parentInverseMatrix // parent의 inverse
다음은 직접 해본 것. 다음을 보면 각각의 역할을 알 수 있다.
설명 :
출처
You could also use getAttr on the inverseMatrix, worldInverseMatrix or parentInverseMatrix attributes of the transform node (actually they're attributes of the dagNode node, but they're passed on by inheritance to the transform node). If that's too limited, there's a script on www.highend3d.com called Matrix Playground, it has procedures for all sorts of stuff that you can do with matrices, just make sure you get the dependant procedures as well (Determinant and Adjoint are needed to calculate the inverse).
Wednesday, June 16, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment