Cesium Compatibility

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)