12-05-2003, 01:29 AM
Dear all,
All these day I use to specify glLoadIdentity (for Modelview matrix) inside the callback function of glutReshape. Now I found a billboarding example whereby glLoadIdentity is specified in the display call back func.
When I removed this glLoadIdentity and put in the Reshape callback func, the entire scene is moving away .
What is the logic behind glLoadIdentity. Where exactly is place for glLoadIdentity part of glMatrixMode(G_MODELVIEW).
With regards
IRIS_RAJ
All these day I use to specify glLoadIdentity (for Modelview matrix) inside the callback function of glutReshape. Now I found a billboarding example whereby glLoadIdentity is specified in the display call back func.
When I removed this glLoadIdentity and put in the Reshape callback func, the entire scene is moving away .
What is the logic behind glLoadIdentity. Where exactly is place for glLoadIdentity part of glMatrixMode(G_MODELVIEW).
With regards
IRIS_RAJ