Example #1
0
void RayTracer::initVariables()
{
    // Camera
    CameraPositionPoint = vec3(0, 0, 0);
    CameraDirection = vec3(0, 0, -1);
    View_Plane = ViewPlane(-0.1, 0.1, -0.1, 0.1, 0.1);
    
    // World
    WorldDirection_u = vec3(1, 0, 0);
    WorldDirection_v = vec3(0, 1, 0);
    WorldDirection_w = vec3(0, 0, 1);
    
    // Object
    sphere01 = Sphere(vec3(-4, 0, -7), 1);
    sphere02 = Sphere(vec3(0, 0, -7), 2);
    sphere03 = Sphere(vec3(4, 0, -7), 1);
//    HorozonPlane = pla
    

}
Example #2
0
Camera::Camera() {
  this->eye = Point();
  this->vp = ViewPlane(Point(), Point(), Point(), Point());
}
Example #3
0
Camera::Camera(Point e, Point llp, Point lrp, Point ulp, Point urp) {
  this->eye = e;
  this->vp = ViewPlane(llp, lrp, ulp, urp);
}