HDK : Matrix Inverse Problem

   2733   0   1
User Avatar
Member
82 posts
Joined: 4月 2019
Offline
Hi…..

For a Vray procedural that I am writing, there is a object in camera space. Its transformation Matrix is Matrix A. I want to transform the object to the centre , rotate it and transform to the original position.
Lets say B = A inverse
R = Rotation matrix

So the final transform is F = A*R*B

But the problem is that, I am not getting “B” right.
My Matrix A is
1 0 0 0 0 1 0 0 0 0 -1 0 0 0 20 1
I am using A.invert(B) to invert A and place the result in B.
When I print B, it is same as A
1 0 0 0 0 1 0 0 0 0 -1 0 0 0 20 1

Why I am not getting the right inverse???

Plz Help
iamjaideep80 (Jaideep Khadilkar)
  • Quick Links