I have several objects, each has a transformation matrix (4x4) that tells it position and the rotation of this object. The camera is an object, also. How do I render the objects from that camera object’s view. I tried something like:
inverse_matrix(cam_matrix, temp); (as found on several websites)
glLoadMatrix(temp);
for every object
{
glPushMatrix();
glMultiplyMatrix(object->matrix);
draw polygons
glPopMatrix();
}
This doesnt work as I want it to. Can anybody help?
– Thomas