I was wondering if anyone tried to get Needle to work together with Cesium. I want to reconstruct this: Sandcastle | CesiumJS , but with me standing on the bridge in XR. Before I try further, I wanted to ask what others had as experience.
Hi Sythelux, thanks for sharing your idea. As far as I know, there isnāt an official integration between Needle and Cesium yet, so thereās no readily available example of combining Cesiumās clipping demo with Needleās XR setup. Since Needle Engine is based on Three.js and has robust builtāin XR support (see our XR docs (docs/xr.html)), one possibility would be to try and overlay or integrate Cesiumās globe and clipping effects into Needleās scene. However, youād likely face some challenges:
⢠Cesium and Needle use different scene setups and coordinate systems. A custom solution would be needed to properly translate between Cesiumās geospatial coordinates and Needleās Three.js coordinate space.
⢠Each system has its own render loop. Synchronizing Cesiumās rendering (and its clipping setup) with Needleās WebXR pipeline might require some creative bridging code.
⢠Building the XR experience where you āstand on the bridgeā will probably mean you need to carefully manage camera transforms and session states so that both Cesiumās visual output and Needleās XR integration play nicely together.
Since there arenāt reports of others successfully combining the two at this point, your approach would be quite experimental. It might be a good idea to start with a minimal exampleāperhaps a simple Three.js scene where you bring in a Cesium layerāand then integrate Needleās WebXR component. This way, you can pinpoint any issues in camera control or coordinate conversion early on.
If you decide to move forward, feel free to share your challenges or code snippets on our forums for further assistance. It sounds like an exciting project, and Iād be very interested to hear how it goes!
1 replies left - Become PRO for more replies.
thread_muYVwG6uF7P7Gc6XUt83CJtD
Reply to this post directly if you need further help (bottom right button)