The Matrices For The Perspective
The Matrices For The Perspective
Prototype functionality
1. Throw object
1. velocity
2. angle
3. ball can knock over elements
4. ball can miss elements
2. Roll object
1. velocity
2. angle
3. ball can knock over elements
4. ball can miss elements
2. Any other core actions we want to support?
1. Select environment
2. Upload avatar
3. Unlock different objects to throw/roll
o Show leaderboard and the ability to invite friends
hBuffer->getFrame(hFrame);
if (hFrame->goodH && hFrame->timeStamp != timeStamp) {
timeStamp = hFrame->timeStamp;
std::cout << "(" << hFrame->eye.x << ", " <<
hFrame->eye.y << ", " <<
hFrame->eye.z << ") \n";
d_near = eye.z;
d_far = eye.z + 50;
P = mat4((2.0*d_near)/(right-left), 0, (right+left)/(right-left),
0,
0, (2.0*d_near)/(top-bottom), (top+bottom)/(top-bottom),
0,
0, 0, -(d_far+d_near)/(d_far-d_near), -
(2.0*d_far*d_near)/(d_far-d_near),
0, 0, -1.0, 0);
MV = C * V;
//MV = V;
glutPostRedisplay();
}
}