mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Take the camera layer's geometry off Cesium
The frustum's view axis comes from geo/frames' east-north-up frame, and the activation probe's mount point and hit distance from geo/ellipsoid and geo/vector; a new test checks the axis and the monitor plane's orientation against the renderer's own transforms, bit for bit. The mesh-floor sampling reads the eye through the model's camera-port helper. What the geometry part did with Cesium moves, unchanged, into the rendering part, which owns the layer's Cesium drawing: the positions the entities take, building the five coverage lines, building and removing the viewshed volumes, the photoreal tileset readiness check, and the probe's one ray pick, which now goes through a small rendering helper. Geometry leaves the allow-list.
This commit is contained in:
1 parent
d71d25961f
commit
0f496b9ae8
7 files changed
+331
-231
No files matched your search
@@ -74,7 +74,7 @@ export function createProjection({
|
||||
record.probeClampRangeM,
|
||||
);
|
||||
const positions =
|
||||
record.frustumPositions || parts.geometry.frustumCartesians(geometry);
|
||||
record.frustumPositions || parts.rendering.frustumCartesians(geometry);
|
||||
runtime.planeEntity.position = positions.capCenter;
|
||||
runtime.planeEntity.orientation = planeOrientation(
|
||||
record.camera,
|
||||
@@ -299,7 +299,7 @@ export function createProjection({
|
||||
record.probeClampRangeM,
|
||||
);
|
||||
const positions =
|
||||
record.frustumPositions || parts.geometry.frustumCartesians(geometry);
|
||||
record.frustumPositions || parts.rendering.frustumCartesians(geometry);
|
||||
runtime.planeMaterial = new Cesium.ImageMaterialProperty({
|
||||
image: canvas,
|
||||
transparent: true,
|
||||
|
||||
Reference in new issue
Block a user