Jump to content

Recommended Posts

I'm importing a vector4 as a point matrix within a VOP SOP; but it's position as in the transformation matrix, does not align correctly with the object prior to the transformation matrix ?

The problem is in this VOP network, as the problem is only experienced in this VOP Network ?

matrix-Alignment.png

Share this post


Link to post
Share on other sites

if amatrix vector4 you should convert it to matrix. Vector4 its only rotation without translate.

Share this post


Link to post
Share on other sites

I built it with expressions on parameter retrieving specific point values for up, aim an side vectors. Along with cross products then created an attribute for each axis. You are right, the object is not translating to the original position ?

Share this post


Link to post
Share on other sites

up aim and side vectors won't translate your object. can you post a hip?

Share this post


Link to post
Share on other sites

In any case so far shown I'm not getting the transformation matrix to result back to it's original position.

Share this post


Link to post
Share on other sites

To back to original position you need to create 2 matrices first for original object, second for translated and use this

@P*=invert(trans_mat)*orig_mat;

But often you need move translated obj to origin, make something with it and back to position. And what I show you early for this case. 

Share this post


Link to post
Share on other sites

@tamagochy What do you mean by (trans_mat) the matrix attribute * matrix attribute ? Also what method are you referring too, you gave one method but I posted another ?

Share this post


Link to post
Share on other sites

@CinnamonMetal

You want back your object to origin position before translation, but you can do it if you have matrix for this position. If you havent you never get this. Simple explanation is: you can back to position you made matrix for. 

Share this post


Link to post
Share on other sites

@CinnamonMetal

Inverse matrix move object to origin {0,0,0} and align z and y axis of your matrix with global z and y axis, So if you haven't matrix of the object in origin point it's not back to origin position, because your matrix, created on the transformed object not aligned with global axis.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×