mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Draw tropical cyclones through the renderer's draw port
The cyclone layer no longer imports Cesium. Its advisories are three draw sets per rendering (points, lines, cones) taken from drawOf(viewer): the centers and forecast points are clamped dots culled past the horizon, the tracks and cone outlines are draped lines, and the cones are clamped polygons that keep their holes. Flights go through cameraOf, and the focus sphere comes from a port of BoundingSphere.fromPoints in src/geo/sphere.js. Clicks read the new ClickEvent.drawHit: the dispatcher's pick as the contract's Hit when it is a draw-set item. The Cesium port's query uses the same conversion, now in render/cesium/drawHit.js. pickStorm takes that hit and accepts only current items of the layer's own sets. Every advisory commit redraws the points, so an empty advisory clears them; an unchanged selection draws nothing. Far-side tracks and cones are left to the globe's depth instead of a per-frame occluder. Both cyclone files leave the Cesium allow-list.
This commit is contained in:
1 parent
bb3106991e
commit
bd5a688144
14 files changed
+818
-783
No files matched your search
@@ -67,8 +67,6 @@
|
||||
"src/layers/cctv/selection.js",
|
||||
"src/layers/cctv/state.js",
|
||||
"src/layers/cctv/testing.js",
|
||||
"src/layers/cyclones/index.js",
|
||||
"src/layers/cyclones/rendering.js",
|
||||
"src/layers/directions/index.js",
|
||||
"src/layers/firms/cards.js",
|
||||
"src/layers/firms/lifecycle.js",
|
||||
|
||||
Reference in new issue
Block a user