# First person camera is somehow "magically" expanding

I'm making a first-person game, and I've gotten the camera done (modified version of Lloyd Goodall's code), but whenever I scale an object, it doesn't appear bigger, but the speed of movement seems to have slowed down (of course, I know that this is because of the size, but I'd rather want to see the objects scaled up). Here is my code:

    Prism rect = new Prism(new Vector3f(1f, 1f, 1f), new Vector3f(1,1,1));
try {
rect.setTextures(new TextureArray(
} catch(Exception e) {
e.printStackTrace();
Errors.exit(Errors.EXCEPTION);;
}

Camera camera = new Camera(0,0,0);
float dx;
float dy;
float dt;
float sensitivity = 0.07f;
float speed = 0.07f;
// Generate the frames
Mouse.setGrabbed(true);
while (!Display.isCloseRequested() && !input.isKeyDown(input.ESC)) {
dt = getDelta()/10;
dx = Mouse.getDX();
dy = Mouse.getDY();
camera.incYaw(dx * sensitivity);
camera.decPitch(dy * sensitivity);
float dist = speed*dt;
if(input.isKeyDown(input.JUMP)) {
camera.up(dist);
}
if(input.isKeyDown(input.SNEAK)) {
camera.down(dist);
}
if(input.isKeyDown(input.FORWARD)) {
camera.forward(dist);
}
if(input.isKeyDown(input.BACK)) {
camera.back(dist);
}
if(input.isKeyDown(input.LEFT)) {
camera.left(dist);
}
if(input.isKeyDown(input.RIGHT)) {
camera.right(dist);
}
GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);
init3DGL(width, height);
camera.look();
rect.render();
init2DGL(width, height);
try {
HotBar health =
health.render();
} catch (Exception e) {
e.printStackTrace();
System.exit(1);
}
Display.update();
Display.sync(30);
}
Display.destroy();


So I guess my question is: How do you keep a camera at a certain size?

• Can you think of a better title? It doesn't seem to sync with your question very well. And you can leave the tags out of the title. May 16 '12 at 16:41
• well, I don't exactly know what causes the problem, but I think this title is better May 16 '12 at 16:56
• Well, the title is funnier, but doesn't describe your problem any better. There's no magic in computers, they only do what you tell them. May 16 '12 at 17:32