Camera cam = DisplaySystem.getDisplaySystem().getRenderer().createCamera(800,600);
the screen turns black. The camera is not attached to the display system, it's just created! Has it anything to do with the chase cam? Any suggestions?
You need to set the frustum and frame before setting the location and lookAt
Vector3f loc = new Vector3f( 0.0f, 0.0f, 0.0f );
Vector3f left = new Vector3f( -1.0f, 0.0f, 0.0f );
Vector3f up = new Vector3f( 0.0f, 1.0f, 0.0f );
Vector3f dir = new Vector3f( 0.0f, 0f, -1.0f );
/** Move our camera to a correct place and orientation. */
cam.setFrame( loc, left, up, dir );
cam.update();
Vector3f position = Utils.convertVector( jme_Driver.getDriver().getLogic().getTable( Globals.playerTable ).getPosition() );
position.y = 25f;
position.z -= ( Globals.tableLength/3f );
cam.setLocation( position );
// cam.setDirection( new Vector3f( 0, -0.1f, 0 ) );
cam.lookAt( new Vector3f( 0, -1000, 5000 ), up );