printf ("\n pas de chance l'ami ton ffile iest emmerde...\n"); */
float phi = acos (R/D);
cout << "FOV possible du to the distance of the projector from the dome , phi = " << phi*180/3.14159 << endl;
//cam_angle = phi*360/3.14159;
float PhiImage = cam_angle * 3.14159 / 360.0; // phiImage is half the angle of the camera FOV (Not the Dome FOV, but the camera FOV).
int half_image_width = image_width / 2;
int half_image_height = image_height / 2;
int W = half_image_width;
float T = R*R/D; // See Hard Copy!!
int ct = -1; // indice for the Tex.[ct][rt]
int rt = -1; // indice for the Tex.[ct][rt]
for (float PPx = 0 ; PPx<=image_width; PPx = PPx+ (image_width / (float) NumOfSquaresInX)) { // <= because 512 / 2 = 256 I want c to be = 0 then 255 then 511 (not 512!!).
ct++; // Incrementing the colone of the Edge of the grid used for texturing the dist. Correction