06-04-2016 03:24 PM
06-04-2016 10:04 PM
float I = 6.4f; // interoccular distance
float W = 60.f; // screen width of your 3DTV
float r = 0.5f; // depth effect strength [0..1]
float S = 100.f; // focal plane distance
float F = 60.f * 3.1415f / 180.f; // horizontal FOVfloat A = r * I/W;
float B = A * S * std::tan(F * 0.5f);
// Left eye VP = V . Tx(+B) . P . Tx(-A)
// Right eye VP = V . Tx(-B) . P . Tx(+A)
06-05-2016 03:08 AM