I'm working on a project about Augmented Reality using a marker (which is a chessboard) that takes images from webcam and insert a 2D/3D object onto the chessboard plane(realtime) .
By using openCV i was able to detect the chessboard corners and draw it.
I used Direct3D to render the frame (by using orthogonal projection), so that later I can use it to project 2d/3d objects.
Now I stuck at this stage. I know there are libraries such as ARToolkit etc, however I want to understand the technique and algorithm behind it. How can I find the transformation matrix that can map 3D object to the chessboard plane ?