react-native-cesium 1.2.9 → 1.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/cpp/CesiumBridgeAndroid.cpp +8 -10
- package/cpp/engine/CesiumEngine.cpp +42 -9
- package/cpp/engine/CesiumEngine.hpp +9 -6
- package/ios/CesiumBridge.mm +8 -10
- package/lib/typescript/src/specs/cesium-view.nitro.d.ts +6 -4
- package/lib/typescript/src/specs/cesium-view.nitro.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/specs/cesium-view.nitro.ts +6 -4
|
@@ -312,17 +312,15 @@ void CesiumBridgeAndroid::renderFrame(double nowSeconds) {
|
|
|
312
312
|
|
|
313
313
|
// ── Terrain floor clamp ───────────────────────────────────────────────
|
|
314
314
|
const float minAbove = engine_->getConfig().minAltitudeAboveTerrain;
|
|
315
|
-
if (minAbove > 0.0f) {
|
|
316
|
-
const double
|
|
315
|
+
if (minAbove > 0.0f && engine_->terrainFloorKnown()) {
|
|
316
|
+
const double geoidN =
|
|
317
317
|
reactnativecesium::mslToEllipsoidMeters(actual.latitude, actual.longitude, 0.0);
|
|
318
|
-
const double
|
|
319
|
-
|
|
320
|
-
const double
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
integrator_->clampActualAltitude(clampedMsl);
|
|
325
|
-
actual.altitude = clampedMsl;
|
|
318
|
+
const double floorMsl =
|
|
319
|
+
static_cast<double>(engine_->terrainFloorEllipsoidMeters()) - geoidN;
|
|
320
|
+
const double minMsl = floorMsl + static_cast<double>(minAbove);
|
|
321
|
+
if (actual.altitude < minMsl) {
|
|
322
|
+
integrator_->clampActualAltitude(minMsl);
|
|
323
|
+
actual.altitude = minMsl;
|
|
326
324
|
}
|
|
327
325
|
}
|
|
328
326
|
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
#include <Cesium3DTilesSelection/TilesetExternals.h>
|
|
14
14
|
#include <Cesium3DTilesSelection/TilesetOptions.h>
|
|
15
15
|
#include <CesiumGeospatial/BoundingRegion.h>
|
|
16
|
+
#include <CesiumGeospatial/Ellipsoid.h>
|
|
16
17
|
#include <CesiumGeospatial/GlobeRectangle.h>
|
|
18
|
+
#include <CesiumGeospatial/GlobeTransforms.h>
|
|
17
19
|
#include <CesiumAsync/CachingAssetAccessor.h>
|
|
18
20
|
#include <CesiumAsync/SqliteCache.h>
|
|
19
21
|
#include <CesiumCurl/CurlAssetAccessor.h>
|
|
@@ -607,7 +609,8 @@ void CesiumEngine::updateFrame(double w, double h, FrameResult& result) {
|
|
|
607
609
|
const double camLatRad = glm::radians(camParams.latitude);
|
|
608
610
|
const double camLonRad = glm::radians(camParams.longitude);
|
|
609
611
|
float bestTerrainFloor = terrainFloorEllipsoidM_; // carry previous value if no tile matches
|
|
610
|
-
double
|
|
612
|
+
double bestHorizDistSq = std::numeric_limits<double>::max();
|
|
613
|
+
bool floorScanFound = false;
|
|
611
614
|
|
|
612
615
|
// ── floor-scan cache lookup ─────────────────────────────────────────
|
|
613
616
|
// Skip the per-vertex scan when the camera has moved less than ~10 cm in
|
|
@@ -630,6 +633,18 @@ void CesiumEngine::updateFrame(double w, double h, FrameResult& result) {
|
|
|
630
633
|
// semantics aligned).
|
|
631
634
|
const bool runFloorScan = trackTerrainFloor && !floorScanFromCache;
|
|
632
635
|
|
|
636
|
+
// ENU basis at the camera — horizontal distance to each terrain vertex.
|
|
637
|
+
glm::dvec3 floorEast(1.0, 0.0, 0.0);
|
|
638
|
+
glm::dvec3 floorNorth(0.0, 1.0, 0.0);
|
|
639
|
+
if (runFloorScan) {
|
|
640
|
+
const auto& ellipsoid = CesiumGeospatial::Ellipsoid::WGS84;
|
|
641
|
+
const glm::dmat4 enuToEcef =
|
|
642
|
+
CesiumGeospatial::GlobeTransforms::eastNorthUpToFixedFrame(
|
|
643
|
+
cameraPos, ellipsoid);
|
|
644
|
+
floorEast = glm::normalize(glm::dvec3(enuToEcef[0]));
|
|
645
|
+
floorNorth = glm::normalize(glm::dvec3(enuToEcef[1]));
|
|
646
|
+
}
|
|
647
|
+
|
|
633
648
|
// ── fast path ────────────────────────────────────────────────────────
|
|
634
649
|
// The visible primitive list has been identical for kMaxFramesInFlight
|
|
635
650
|
// frames in a row, so every backend slot is guaranteed to hold a copy of
|
|
@@ -660,10 +675,18 @@ void CesiumEngine::updateFrame(double w, double h, FrameResult& result) {
|
|
|
660
675
|
for (size_t vi = 0; vi < vc; ++vi) {
|
|
661
676
|
const glm::dvec3 vECEF =
|
|
662
677
|
glm::dvec3(prim.localPositions[vi]) + prim.rtcCenter;
|
|
663
|
-
const
|
|
664
|
-
|
|
665
|
-
|
|
678
|
+
const glm::dvec3 delta = vECEF - cameraPos;
|
|
679
|
+
const double de = glm::dot(delta, floorEast);
|
|
680
|
+
const double dn = glm::dot(delta, floorNorth);
|
|
681
|
+
const double horizSq = de * de + dn * dn;
|
|
682
|
+
if (horizSq < bestHorizDistSq) {
|
|
683
|
+
bestHorizDistSq = horizSq;
|
|
666
684
|
bestTerrainFloor = prim.altitudes[vi];
|
|
685
|
+
floorScanFound = true;
|
|
686
|
+
} else if (horizSq <= bestHorizDistSq * (1.0 + 1e-9) + 1e-4) {
|
|
687
|
+
bestTerrainFloor =
|
|
688
|
+
std::min(bestTerrainFloor, prim.altitudes[vi]);
|
|
689
|
+
floorScanFound = true;
|
|
667
690
|
}
|
|
668
691
|
}
|
|
669
692
|
}
|
|
@@ -703,8 +726,9 @@ void CesiumEngine::updateFrame(double w, double h, FrameResult& result) {
|
|
|
703
726
|
result.cameraLon = paramsFP.longitude;
|
|
704
727
|
result.cameraAlt = paramsFP.altitude;
|
|
705
728
|
|
|
706
|
-
if (trackTerrainFloor) {
|
|
729
|
+
if (trackTerrainFloor && (floorScanFound || floorScanFromCache)) {
|
|
707
730
|
terrainFloorEllipsoidM_ = bestTerrainFloor;
|
|
731
|
+
terrainFloorValid_ = true;
|
|
708
732
|
// P5: refresh the floor cache on a fresh scan; skip when we hit the
|
|
709
733
|
// cache (the stored value already reflects this signature).
|
|
710
734
|
if (runFloorScan && signature != 0ULL) {
|
|
@@ -763,10 +787,18 @@ void CesiumEngine::updateFrame(double w, double h, FrameResult& result) {
|
|
|
763
787
|
for (size_t vi = 0; vi < vertexCount; ++vi) {
|
|
764
788
|
const glm::dvec3 vECEF =
|
|
765
789
|
glm::dvec3(prim.localPositions[vi]) + prim.rtcCenter;
|
|
766
|
-
const
|
|
767
|
-
|
|
768
|
-
|
|
790
|
+
const glm::dvec3 delta = vECEF - cameraPos;
|
|
791
|
+
const double de = glm::dot(delta, floorEast);
|
|
792
|
+
const double dn = glm::dot(delta, floorNorth);
|
|
793
|
+
const double horizSq = de * de + dn * dn;
|
|
794
|
+
if (horizSq < bestHorizDistSq) {
|
|
795
|
+
bestHorizDistSq = horizSq;
|
|
769
796
|
bestTerrainFloor = prim.altitudes[vi];
|
|
797
|
+
floorScanFound = true;
|
|
798
|
+
} else if (horizSq <= bestHorizDistSq * (1.0 + 1e-9) + 1e-4) {
|
|
799
|
+
bestTerrainFloor =
|
|
800
|
+
std::min(bestTerrainFloor, prim.altitudes[vi]);
|
|
801
|
+
floorScanFound = true;
|
|
770
802
|
}
|
|
771
803
|
}
|
|
772
804
|
}
|
|
@@ -1018,8 +1050,9 @@ void CesiumEngine::updateFrame(double w, double h, FrameResult& result) {
|
|
|
1018
1050
|
result.cameraLon = params.longitude;
|
|
1019
1051
|
result.cameraAlt = params.altitude;
|
|
1020
1052
|
|
|
1021
|
-
if (trackTerrainFloor) {
|
|
1053
|
+
if (trackTerrainFloor && (floorScanFound || floorScanFromCache)) {
|
|
1022
1054
|
terrainFloorEllipsoidM_ = bestTerrainFloor;
|
|
1055
|
+
terrainFloorValid_ = true;
|
|
1023
1056
|
// refresh the floor cache on a fresh scan (slow path always runs a
|
|
1024
1057
|
// scan unless the cache short-circuit fired above). Only memoise when
|
|
1025
1058
|
// the geometry signature is stable enough to key on.
|
|
@@ -142,10 +142,11 @@ public:
|
|
|
142
142
|
|
|
143
143
|
const EngineConfig& getConfig() const { return config_; }
|
|
144
144
|
|
|
145
|
-
// Ellipsoid height (metres) of the terrain
|
|
146
|
-
//
|
|
147
|
-
// tile covering the camera position has been rendered.
|
|
145
|
+
// Ellipsoid height (metres) of the terrain surface under the camera nadir,
|
|
146
|
+
// sampled from loaded tile meshes. Meaningless until terrainFloorKnown().
|
|
148
147
|
float terrainFloorEllipsoidMeters() const { return terrainFloorEllipsoidM_; }
|
|
148
|
+
// True after at least one frame has sampled the floor from real terrain tiles.
|
|
149
|
+
bool terrainFloorKnown() const { return terrainFloorValid_; }
|
|
149
150
|
|
|
150
151
|
private:
|
|
151
152
|
void createTileset();
|
|
@@ -184,9 +185,10 @@ private:
|
|
|
184
185
|
GlobeCamera camera_;
|
|
185
186
|
TileLifecycleManager lifecycle_;
|
|
186
187
|
|
|
187
|
-
// Ellipsoid height of the terrain surface at the camera nadir
|
|
188
|
-
//
|
|
188
|
+
// Ellipsoid height of the terrain surface at the camera nadir (horizontal
|
|
189
|
+
// nearest-neighbour sample). Only written after a successful tile scan.
|
|
189
190
|
float terrainFloorEllipsoidM_ = 0.0f;
|
|
191
|
+
bool terrainFloorValid_ = false;
|
|
190
192
|
|
|
191
193
|
// Wall-clock timestamp of the previous updateFrame call. Used to compute
|
|
192
194
|
// deltaTime for Tileset::updateViewGroup, which drives LOD transition fading.
|
|
@@ -225,7 +227,8 @@ private:
|
|
|
225
227
|
// ── terrain-floor scan cache ──────────────────────────────────────
|
|
226
228
|
// The minAltitudeAboveTerrain clamp scans every vertex of every tile whose
|
|
227
229
|
// bounding region contains the camera lon/lat and picks the altitude of
|
|
228
|
-
// the vertex with the smallest
|
|
230
|
+
// the vertex with the smallest horizontal (ENU) distance to the camera
|
|
231
|
+
// nadir (tie-break: lower ellipsoid height). That's an O(NV)
|
|
229
232
|
// scan over the visible primitives — dominant CPU cost when the camera
|
|
230
233
|
// sits over a dense LOD chain. Result depends only on the camera lon/lat
|
|
231
234
|
// and the set of visible primitives, so we cache it keyed on
|
package/ios/CesiumBridge.mm
CHANGED
|
@@ -387,17 +387,15 @@
|
|
|
387
387
|
// Uses terrain floor from the previous frame (one-frame lag is
|
|
388
388
|
// imperceptible at 60 fps). Skipped when minAltitudeAboveTerrain == 0.
|
|
389
389
|
const float minAbove = _engine->getConfig().minAltitudeAboveTerrain;
|
|
390
|
-
if (minAbove > 0.0f) {
|
|
391
|
-
const double
|
|
390
|
+
if (minAbove > 0.0f && _engine->terrainFloorKnown()) {
|
|
391
|
+
const double geoidN =
|
|
392
392
|
reactnativecesium::mslToEllipsoidMeters(actual.latitude, actual.longitude, 0.0);
|
|
393
|
-
const double
|
|
394
|
-
|
|
395
|
-
const double
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
_integrator->clampActualAltitude(clampedMsl);
|
|
400
|
-
actual.altitude = clampedMsl;
|
|
393
|
+
const double floorMsl =
|
|
394
|
+
static_cast<double>(_engine->terrainFloorEllipsoidMeters()) - geoidN;
|
|
395
|
+
const double minMsl = floorMsl + static_cast<double>(minAbove);
|
|
396
|
+
if (actual.altitude < minMsl) {
|
|
397
|
+
_integrator->clampActualAltitude(minMsl);
|
|
398
|
+
actual.altitude = minMsl;
|
|
401
399
|
}
|
|
402
400
|
}
|
|
403
401
|
|
|
@@ -84,10 +84,12 @@ export interface CesiumViewProps extends HybridViewProps {
|
|
|
84
84
|
*/
|
|
85
85
|
taskProcessorThreads?: number;
|
|
86
86
|
/**
|
|
87
|
-
* Minimum
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
* terrain
|
|
87
|
+
* Minimum clearance above the loaded terrain surface, in metres (added on top of the
|
|
88
|
+
* terrain MSL height at the camera position). Default 0 (no constraint).
|
|
89
|
+
* Set to e.g. 2 to prevent the camera from going underground.
|
|
90
|
+
* The clamp runs only after terrain tiles have been sampled; until then the demand
|
|
91
|
+
* altitude is used as-is. The demand altitude is not modified — only the rendered
|
|
92
|
+
* (actual) camera may be raised to meet this minimum.
|
|
91
93
|
*/
|
|
92
94
|
minAltitudeAboveTerrain?: number;
|
|
93
95
|
/** Maximum yaw rate (degrees per second). 0 = uncapped. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cesium-view.nitro.d.ts","sourceRoot":"","sources":["../../../../src/specs/cesium-view.nitro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,eAAe,EACf,iBAAiB,EAClB,MAAM,4BAA4B,CAAA;AAEnC;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,cAAc,EAAE,MAAM,CAAA;CACvB;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV;AAED,iEAAiE;AACjE,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAA;IACX,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,kBAAkB,EAAE,OAAO,CAAA;IAC3B,+DAA+D;IAC/D,aAAa,EAAE,OAAO,CAAA;IACtB,YAAY,EAAE,OAAO,CAAA;IACrB,gBAAgB,EAAE,MAAM,CAAA;CACzB;AAED,MAAM,WAAW,eAAgB,SAAQ,eAAe;IACtD,cAAc,EAAE,MAAM,CAAA;IACtB,UAAU,EAAE,MAAM,CAAA;IAClB;;;;OAIG;IACH,aAAa,EAAE,WAAW,CAAA;IAC1B,cAAc,EAAE,OAAO,CAAA;IACvB,uBAAuB,EAAE,MAAM,CAAA;IAC/B,4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CAAA;IAEjC;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAA;IAEnC;;;;;OAKG;IACH,eAAe,IAAI,OAAO,CAAC,WAAW,CAAC,CAAA;IAEvC;;;;OAIG;IACH,eAAe,IAAI,OAAO,CAAC,WAAW,CAAC,CAAA;IAEvC,8EAA8E;IAC9E,iBAAiB,IAAI,OAAO,CAAC,UAAU,CAAC,CAAA;CACzC;AAED,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,eAAe,EAAE,iBAAiB,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-cesium",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "Experimental Cesium rendering for React Native via Nitro
|
|
3
|
+
"version": "1.2.10",
|
|
4
|
+
"description": "Experimental Cesium rendering for React Native via Nitro",
|
|
5
5
|
"main": "./lib/commonjs/index.js",
|
|
6
6
|
"module": "./lib/module/index.js",
|
|
7
7
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"node": ">=18"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"react-native-nitro-modules": "^0.35.
|
|
67
|
+
"react-native-nitro-modules": "^0.35.7"
|
|
68
68
|
},
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@types/jest": "^29.5.14",
|
|
78
78
|
"@types/react": "19.2.14",
|
|
79
79
|
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
80
|
-
"nitrogen": "0.35.
|
|
80
|
+
"nitrogen": "0.35.7",
|
|
81
81
|
"react": "19.2.3",
|
|
82
82
|
"react-native": "0.85.3",
|
|
83
83
|
"react-native-builder-bob": "^0.41.0",
|
|
@@ -98,10 +98,12 @@ export interface CesiumViewProps extends HybridViewProps {
|
|
|
98
98
|
*/
|
|
99
99
|
taskProcessorThreads?: number
|
|
100
100
|
/**
|
|
101
|
-
* Minimum
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
* terrain
|
|
101
|
+
* Minimum clearance above the loaded terrain surface, in metres (added on top of the
|
|
102
|
+
* terrain MSL height at the camera position). Default 0 (no constraint).
|
|
103
|
+
* Set to e.g. 2 to prevent the camera from going underground.
|
|
104
|
+
* The clamp runs only after terrain tiles have been sampled; until then the demand
|
|
105
|
+
* altitude is used as-is. The demand altitude is not modified — only the rendered
|
|
106
|
+
* (actual) camera may be raised to meet this minimum.
|
|
105
107
|
*/
|
|
106
108
|
minAltitudeAboveTerrain?: number
|
|
107
109
|
|