The following code snippet shows the general structure of a program that uses a rig to initialize a calibrated camera model and perform projection / unprojection using that model.
For the full implementation refer to Rig Configuration Sample.