This repository was archived by the owner on Dec 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Fix inertial transformation #39
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
(Asked in the Cesium forum)
When enabling the icrf function on the JavaScript side implemented here:
Lines 26 to 40 in 7b8ba68
| // To have an inertial (ICRF) view | |
| function icrf(scene, time) {{ | |
| var icrfToFixed = Cesium.Transforms.computeIcrfToFixedMatrix(time); | |
| if (Cesium.defined(icrfToFixed)) {{ | |
| var camera = viewer.camera; | |
| var offset = Cesium.Cartesian3.clone(camera.position); | |
| var transform = Cesium.Matrix4.fromRotationTranslation(icrfToFixed); | |
| camera.lookAtTransform(transform, offset); | |
| }} | |
| }} | |
| // Temporarily disable inertial view | |
| // until we make it work with 2D Mercator view | |
| // and fix the zoom sensitivity, see | |
| // https://groups.google.com/d/msg/cesium-dev/vuXmepd4T2E/i71tq2I8EAAJ | |
| // viewer.scene.postUpdate.addEventListener(icrf); |
There are some strange effects when rotating the view or switching to 2D. We should try to fix those.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working