It is currently 17 Aug 2017, 19:26
   
Text Size

Help Coding Custom Photoshop JavaScript JSX

Discuss Card Scans and Other Artwork Here

Moderator: CCGHQ Admins

Help Coding Custom Photoshop JavaScript JSX

Postby skibulk » 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.

Code: Select all
function crossRatio(a_2D, b_2D, c_2D, b_3D, c_3D, d_3D)
{
    return d_2D;
}
User avatar
skibulk
HQ Team Member
 
Posts: 988
Joined: 19 Jul 2010, 20:34
Location: Northeast USA
Has thanked: 378 times
Been thanked: 302 times

Re: Help Coding Custom Photoshop JavaScript JSX

Postby skibulk » 20 Apr 2016, 23:17

Actually I think I figured it out. But if anybody is interested in helping, just send me a PM.
User avatar
skibulk
HQ Team Member
 
Posts: 988
Joined: 19 Jul 2010, 20:34
Location: Northeast USA
Has thanked: 378 times
Been thanked: 302 times


Return to Pictures

Who is online

Users browsing this forum: ahkren, MaxMtg, randallross420 and 5 guests


Who is online

In total there are 8 users online :: 3 registered, 0 hidden and 5 guests (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: ahkren, MaxMtg, randallross420 and 5 guests

Login Form