2D Perspective

Hello,

im trying to set the camra for 2d mode, but its not working like it should.







code:

flyCam.setMoveSpeed(40);

cam.setLocation(new Vector3f(0, 60, 0));

cam.lookAt(new Vector3f(0, -10, 0), new Vector3f(0, 0, -1));

See the TestOrtho test class for 2D mode on 2D objects, and TestParallelProjection for 2D mode on 3D objects.

Why it is not possible to set the right settings to the cam?

Im already using the SimpleBulletApplication class.

sry, i just wonna use the jmonkey engine for a 2d game, but im using 3d objects.

i can still see the third dimension.



i should look like in the blender3d game engine:





Jmonkey engine:





the cylinder should look like a circle.



why im using 3d objects? because of the physics engine, it work only with 3d objects.

What do you meant it is not possible to set the right settings?

I am not sure what you’re trying to show in the screenshot either

Okay I understand now. What you want is parallel projection; see the test class jme3test.renderer.TestParallelProjection

Yeah, thank you very much.