Calculate 3D Plane from 2D Projection
I'm basically trying to emulate Photoshop's Vanishing Point tool where you can define the 4 2D points and the 3D plane is calculated from that information, in terms of the rotation of the plane relative to x y and z axes.
So if you have an image like this one:
http://f.cl.ly/items/3m2B2k3s1A1S0i0...47.47%20PM.png
And you define the points of the four corners, maybe like this:
http://f.cl.ly/items/2v3i1Z0X3J1H2G2...20.02%20PM.png
it would define the 3D plane that the surface must live on relative to the x y and z axes.
Researching this has led me to some tutorials on drawTriangles and Homographies, but they all seem to be focused on mapping bitmap data and I can't seem to find anything that defines a 3D plane itself.
Anyone have any experience with such a problem? Any pointers would be great appreciated.