Commit d8959f48 authored by Matthias Betz's avatar Matthias Betz
Browse files

rotate camera to point to north

parent ee770fdd
...@@ -403,7 +403,7 @@ public class CityGMLViewer { ...@@ -403,7 +403,7 @@ public class CityGMLViewer {
double translateZ = -d; double translateZ = -d;
camera.setDistance((float) translateZ); camera.setDistance((float) translateZ);
cameraViewDistance = (float) longestSide * 20f; cameraViewDistance = (float) longestSide * 20f;
camera.rotate(0, 300); camera.rotate(Math.PI / 2 * 500, 300);
clearColor = MemoryUtil.memAllocFloat(4); clearColor = MemoryUtil.memAllocFloat(4);
clearColor.put(0, 0.9411765f).put(1, 1f).put(2, 1f).put(3, 1f); clearColor.put(0, 0.9411765f).put(1, 1f).put(2, 1f).put(3, 1f);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment