How to calculate width/ox/oy/rx/ry/rz from ath/atv

  • I need help.

    Is there any way to calculate hotspot's attributes from four corner coordinates of a distorted rectangle in a scene.

    For example, the four corner coordinates (ath, atv) are like:


    left top: -5.5, 32.0
    right top: 11.8, 34.4
    right bottom: 10.5, 42.8
    left bottom: -7.6, 40.1

    The rectangle in the scene has aspect ratio of 16:9.

    In this case, if I want to place a hotspot image exactly to fit into the background rectangle image, currently I manage to do that manually by trial and error.
    But if I want to calculate width, height, rx, ry, rz, (edge, ox, oy if needed) values from the values above, is there any formula?

    Thanks in advance.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!