I wonder how to set up a topdown view.
I've tried:
cam.setFrustumPerspective(45.0f, (float) settings.getWidth() / (float) settings.getHeight(), 1, 1000);
Vector3f location = new Vector3f(0.0f, 150.0f, 200.0f);
Quaternion rot = new Quaternion();
rot.fromAngleAxis(FastMath.DEG_TO_RAD*180, Vector3f.UNIT_Y);
cam.setFrame(location,rot);
cam.update();
Doesn't matter how high the first parameter is set. The angle of the camera will not change. I also tried "fromAngleNormalAxis" doesn't help anyhow.
Next thing I've tried is :
cam.setFrustumPerspective(45.0f, (float) settings.getWidth() / (float) settings.getHeight(), 1, 1000);
Vector3f location = new Vector3f(0.0f, 150.0f, 200.0f);
Vector3f left = new Vector3f(-1.0f, 0.0f, 0.0f);
Vector3f up = new Vector3f(0.0f, 1.0f, 0.0f);
Vector3f direction = new Vector3f(0.0f, -2.0f, -1.0f);
cam.setFrame(location, left, up, direction);
cam.update();
The direction vector sould be the value which affects the angle of the camera, right? If I change the y value of the direction vector, the only thing what happens is, the whole display deforms a bit but the cameras angle is unaffected.
Could somebody help me?
Thanks and regards
Edregol