Calibrating your Camera with calib.xml
Option One, the GoblinXNA Calibration Tool
First, navigate to the directory containing the calibration project. On my machine it was found at "C:\Users\Colin\Documents\GoblinXNAv3.5\tools\CameraCalibration".
Then open the "CameraCalibration.sln".
If you are using Visual Studio 2010, you may get a message like this:
It's okay, you can click OK and continue. (More on this message can be found at
You should then see something like this:
From here all you have to do is build and run the project. To do both steps at once, choose from the menu
at the top of the screen: "Debug" then "Start Debugging". Alternatively you can hit the F5 key. This will build the project, as you can see in the lower left corner of the window, and then launch a window from you camera (you should see
yourself at this point. I'll spare you my screen capture.)
Use the checkerboard printout provided in the Alvar.pdf file, page 8, and hold the page perpendicularly
facing your camera. It doesn't have to be perfectly aligned, just try to get all of the black and white squares into the picture. When the program has recognized the pattern it will begin to execute passes, once every second and a half. It will make 50 such
passes before it is finished.
At the end of this process the file called "calib.xml" will be produced and saved in your "bin\x86\Debug"
Link to this file in any project you run so that GoblinXNA will allow for any distortions from your camera
and therefore be working from a picture that is closer to reality.