Original Post
Hi,
I have implemented scrolling on two players in the game I am creating using gluLookAt in main:
{float x = (g_Player1.getPosX()+g_Player2.getPosX()/2);
float y = (g_Player1.getPosY()+g_Player2.getPosY()/2);
float z = (g_Player1.getPosZ()+g_Player2.getPosZ()/2);
gluLookAt( x, y+50,z+100,x, y, z,0.0f,1.0f,0.0f);}
I also have other objects in my game drawn with OpenGL that are static. I would like to get these objects to scroll through the game also. I would be grateful for any help.
Thanks.
I have implemented scrolling on two players in the game I am creating using gluLookAt in main:
{float x = (g_Player1.getPosX()+g_Player2.getPosX()/2);
float y = (g_Player1.getPosY()+g_Player2.getPosY()/2);
float z = (g_Player1.getPosZ()+g_Player2.getPosZ()/2);
gluLookAt( x, y+50,z+100,x, y, z,0.0f,1.0f,0.0f);}
I also have other objects in my game drawn with OpenGL that are static. I would like to get these objects to scroll through the game also. I would be grateful for any help.
Thanks.