math question on perspective

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

tyr

math question on perspective

Post by tyr »

Hi everyone,
I'm lacking in knowledge, but maybe there's a formula that deals with converting a rectangle to 2 point perspective?
My first approach was "to build how I think it should like and hardcode the deformations" but this approach not surprisingly worked only with set of two certain perspective grids


So I wonder if someone know how can I describe the deformation of the rectangle based on two perspective points!