CinnamonMetal Posted September 4, 2019 Share Posted September 4, 2019 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 ? Quote Link to comment Share on other sites More sharing options...
tamagochy Posted September 5, 2019 Share Posted September 5, 2019 if amatrix vector4 you should convert it to matrix. Vector4 its only rotation without translate. Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted September 5, 2019 Author Share Posted September 5, 2019 Amatrix is a Matrix attribute but it's not translating back to the original position, as it should ? Quote Link to comment Share on other sites More sharing options...
tamagochy Posted September 6, 2019 Share Posted September 6, 2019 So your matrix havent translate. How you build it? Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted September 6, 2019 Author Share Posted September 6, 2019 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 ? Quote Link to comment Share on other sites More sharing options...
jamesr Posted September 7, 2019 Share Posted September 7, 2019 up aim and side vectors won't translate your object. can you post a hip? Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted September 7, 2019 Author Share Posted September 7, 2019 In any case so far shown I'm not getting the transformation matrix to result back to it's original position. Quote Link to comment Share on other sites More sharing options...
tamagochy Posted September 9, 2019 Share Posted September 9, 2019 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. Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted September 12, 2019 Author Share Posted September 12, 2019 @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 ? Quote Link to comment Share on other sites More sharing options...
tamagochy Posted September 12, 2019 Share Posted September 12, 2019 @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. Quote Link to comment Share on other sites More sharing options...
CinnamonMetal Posted September 14, 2019 Author Share Posted September 14, 2019 @tamagochy I'm inversing the matrix should that not be getting back the original position ? Otherwise I didn't quite understand what you meant ? Quote Link to comment Share on other sites More sharing options...
tamagochy Posted September 16, 2019 Share Posted September 16, 2019 @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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.