Skip to main content
smarts19193560
Inspiring
May 30, 2020
Question

Matrix issue in TRANSFORM_WORLD

  • May 30, 2020
  • 1 reply
  • 621 views

Hi, everyone!

 

I am using TRANSFORM_WORLD for transforming of layer .

For scale, rotate and movement matrices, it is working as well.

 

But for some matrices, it is not working.

For example. the final matrix is following as:

But it is not working as expected when I apply it to transform_world

So, I checked in detail

 

 

In PF_TRANSFORM_WORLD, the factor M31, M32, M33 doesn’t work

Please let me know if you have any idea.

 

Thank you.

 

 

This topic has been closed for replies.

1 reply

Community Expert
May 30, 2020

what transformation are you trying to acheive? i don't know of any constraning on the matrices used.

to the best of my knowledge M33 affects the scale and is part of the identity, and indeed M31 and M32 are not used. but not only in AE, they're simply not used in any 2D transformation matrix. am i wrong?

smarts19193560
Inspiring
June 5, 2020

Thanks for your reply.

 

I used the PF_TRANSFORM_WORLD to implement motion blur with transformation. 2D transformation ( rotate, scale, movement) is working. 

I tried to implement 3D transformation with motionblur on PF_TRANSFORM_WORLD. So, I got the final matrix as you can see on above message. 

 

 but not only in AE, they're simply not used in any 2D transformation matrix. 

Yes, it seems like it is my wrong.

Then I have other questions.

1. Can I implement 3D transition with motion blur on PF_TRANSFORM_WORLD. of course, I know the macro is for 2D transform. but I wanted to check if there is any way with that.

2. if not, how can I implement 3D trasnform with motion blur?

 

Thanks.

 

Community Expert
June 6, 2020

well, the BAD news is that you can't use transform_world for 3D transformations.

the WORSE news is that AE doesn't offer any API for 3D transformations, and you'll need to implement one yourself.

that basics for that can be found in the Artisan AE SDK project sample. whoerver the implementation there doesn't handle mipmapping or other solutions required for the texture to transform nicely. i'm sure there are ready made solutions out there, as 3D texture transformation is a pretty common thing.