Alot of this work has been done for you already, if you look though some of the code in the subspace2 project, I used open GL to project the maps into 3d, Its written mostly in c# but there is some c/c++ code. Also descretion is worth a look as it sounds similar in design. We stand on the shoulders of giants