< Previous | Contents | Next >

Matrix Math and Fusion’s Coordinate System

In Fusion’s coordinate system, 1.0 denotes full width (e.g. 1920 pixels in HD) but also full height (e.g. 1080 pixels). The coordinate system is squashed. The Matrix4 and Shape objects, however, work with coordinates that are scaled the same way in both directions based on the Width being 1.0.

The horizontal image size was 1920, a Y value of "1" would also stand for 1920 vertical pixels. If you want to move a shape to the coordinates defined by the user using an OffsetControl input, you need to account for this. The formula to convert y-coordinates for use with Matrix4 is:

matrix_Y = fusion_Y * (img.Height * img.YScale) / (img.Width * img.XScale)

(img is the destination image and is used to retrieve the dimensions and pixel aspect ratio)