Hi Omar,
Thank you for the reply
in a sandbox app these are the settings we are currently using.
var viewer = new Cesium.Viewer('cesiumContainer');
viewer.scene.screenSpaceCameraController.enableCollisionDetection = true;
viewer.scene.screenSpaceCameraController.minimumZoomDistance = 100.0;
viewer.scene.screenSpaceCameraController.minimumCollisionTerrainHeight = 100;
it occurs consistenly in our application
I managed to create a way to consistently recreate it.
When you are zoomed in to the maximum, collision detection works fine.
When you are not zoomed in and the detailed tiles are not loaded yet, you can tilt through the map.
Collision detection only seems to work when the most detailed layer from the map is loaded.
I hope this helps,
kind regards
When zoomed in tilting works as expected, when zoomed out tiling can bring me below the map.
https://drive.google.com/open?id=0B1JftRPeakpVLWhvbkxIdENjMUE
Do you have an idea to mitigate the problem?
many thanks
1. Visit our site (http://wbskiing.com/desktop.asp).
2. Shift+click anywhere on the terrain and push your mouse away from you (which lowers the camera) until the camera stops (due to a collision with the terrain).
3. Without releasing the mouse button or Shift key, pull the mouse back toward you to raise the camera, and then again push the mouse away from you to lower the camera.
>>The camera will (almost always) go below the surface of the terrain and Cesium will crash with an "Invalid array length".
Note this seems to only happen if you perform the above steps without releasing the mouse button after the camera "collides" with the terrain. So to duplicate it, it's best to perform this test immediately after loading the page.