i’m trying to make a 3d game with a birds eye 2d view during gameplay, i have set the view as follows:-
// Calculate The Aspect Ratio Of The Window, 3d camera
GLU.gluPerspective(
45.0f,
(float)640 / (float) 480, // these being screen width and height
0.1f,
1000.0f);
GL11.glMatrixMode(GL11.GL_MODELVIEW); // Select The Modelview Matrix
GL11.glLoadIdentity();
GLU.gluLookAt(320.0f,240.0f,600.0f, // camera pos
320.0f,240.0f,0.0f, // camera target
0.0f,1.0f,0.0f); // camera tilt
i have a box in the middle of the screen, the thing is when the object moves left or right on the screen i begin to see the sides of the object the futher it moves away from the centre of the screen, i know this is normal for 3d but i was hopeing if there was a way to reduce this so the sides don’t show so much and i get more of a 2d style feel?
thx
