Thanks, already found that method, but i really could not get it working:
Following the doc, this should work:
[java]
System.out.println("Reversal: 0,0: " + camera.getScreenCoordinates(camera.getWorldCoordinates(new Vector2f(0, 0), camera.getViewToProjectionZ(25))));
System.out.println("Reversal: 0,1: " + camera.getScreenCoordinates(camera.getWorldCoordinates(new Vector2f(0, 1), camera.getViewToProjectionZ(25))));
System.out.println("Reversal: 1,1: " + camera.getScreenCoordinates(camera.getWorldCoordinates(new Vector2f(1, 1), camera.getViewToProjectionZ(25))));
System.out.println("Reversal: 1,0: " + camera.getScreenCoordinates(camera.getWorldCoordinates(new Vector2f(1, 0), camera.getViewToProjectionZ(25))));
[/java]
the output should show me a quad, 25units in front of the camera
But the actual output is:
Location: (0.0, 0.0, 25.0)
Direction: (0.0, 0.37139067, -0.9284766)
0,0: (-5.82488, -0.3299282, -2.057839)
0,1: (-5.82488, -0.31490555, -2.0518308)
1,1: (-5.8087, -0.31490555, -2.0518308)
1,0: (-5.8087, -0.3299282, -2.057839)
small rounding errors are not a problem really, but that numbers are way off