Sorry, but I must know the answer to this and tried to google alot, without finding the exact answer...
Q: Why does this work?
When this doesn't work?Code :glMatrixMode(GL_PROJECTION) glLoadIdentity() aspect = float(width)/float(height) gluPerspective(40., aspect, 0.1, 40.) glMatrixMode(GL_MODELVIEW) gluLookAt(0,0,10, 0,0,0, 0,1,0)
I thought the projection and the modelview matrices have absolutely nothing to do with each other, so why does the order of the operations/matrix stuff matter ???Code :glMatrixMode(GL_PROJECTION) glLoadIdentity() aspect = float(width)/float(height) gluPerspective(40., aspect, 0.1, 40.) glMatrixMode(GL_MODELVIEW) gluLookAt(0,0,10, 0,0,0, 0,1,0)
Why doesn't it give the same result ???
Noob question, I know... But I don't understand this...



