Hi All,
Last year, I experimented with importing three.js objects into krpano (Import GLB in krpano using threejs helper). More recently, I played around with gaussian splatting and noticed that there was a three.js based implementation (https://github.com/mkkellogg/GaussianSplats3D) to display gaussian splats in a web browser. so I had the idea to update the threejs helper plugin so it could also display gaussian splats.
What I had to do to accomplish this:
* upgrade to the latest version of three.js: previously, I used version 0.147 as this was the latest version that had a non-modular approach to integrate three.js into other applications. With some direction of klaus (RE: Using ES Modules in krpano plugin) I managed to import three.js into the plugin and use the latest version.
* upgrade to webgl2: I kept running into WebGL errors. After some investigation, it seemed that by default, krpano uses the stanadard WebGL implementation, and the libraries I was using required WebGL2. But ofc, krpano provides a way to upgrade to WebGL2 by using https://krpano.com/docu/embedpano/#webglsettings in the embed options!
After these 2 hurdles were taken, extending the existing helper to accomodate gaussian splats was pretty straight forward. A quick demo scene can be found here:
I'm really looking forward to a better integration for krpano and other WebGL renderers (like three.js) so we can extend the power of krpano even further.
Have a nice weekend!
Kristof