Help Coding Custom Photoshop JavaScript JSX
Posted: 20 Apr 2016, 19:59
I'm writing a script for our Photoshoppers to use. I'm stuck on some perspective transformation mathematics. Can anybody help?
Basically I need a function to calculate screen corrdinates for an object in perspective using a cross ratio like this.
Basically I need a function to calculate screen corrdinates for an object in perspective using a cross ratio like this.
- Code: Select all
function crossRatio(a_2D, b_2D, c_2D, b_3D, c_3D, d_3D)
{
return d_2D;
}