Jump to content

HDK : Matrix Inverse Problem


Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...