Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

transform_world() and matrix

Enthusiast ,
Nov 16, 2013 Nov 16, 2013

Hi!

I've got a layer effect, I get the camera matrix (which is a 4x4 matrix), and I'm trying to convert this cameraMatrix into a 3x3 matrix usable by transform_world().

I've tried to manipulate the matrix by hand with 9 floatSliders, and here's the result:

scale_X          skew_Y               ?

skew_X          scale_Y               ?

displace_X     displace_Y          ?

The ? only make stripes of empty alpha...

It seems the 3x3 matrix can only perform affine transformations... is it normal?

If so, is there any way to apply perspective transformation directly?

Thanx,

François

TOPICS
SDK
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 16, 2013 Nov 16, 2013

3x3 matrices acn only do 2D transformations.

position, scale, Z rotation and skewing. (anything the "Transform" effect does)

4x4 matirces contain more params, such as x and y roataions and z translations.

so you can't really tranlate a 4x4 matrix into a 3x3. you'll need to decompose the 4x4 matrix and re-feed it into the 3x3.

in any case, trying to create a "corner pin" sort of transform using transform_world() is not possible. (to the best of my knowldge)

Translate
Community Expert ,
Nov 16, 2013 Nov 16, 2013

3x3 matrices acn only do 2D transformations.

position, scale, Z rotation and skewing. (anything the "Transform" effect does)

4x4 matirces contain more params, such as x and y roataions and z translations.

so you can't really tranlate a 4x4 matrix into a 3x3. you'll need to decompose the 4x4 matrix and re-feed it into the 3x3.

in any case, trying to create a "corner pin" sort of transform using transform_world() is not possible. (to the best of my knowldge)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 16, 2013 Nov 16, 2013

Hi Shachar!

I was afraid you'd say so...

And I didn't see any way to apply 4x4 matrix transform, except for artisans....

Thanx,

François

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 16, 2013 Nov 16, 2013
LATEST

sometimes i'm the bearer of bad news...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines