Search code examples
camerathree.jsvirtual-realitypanoramas360-virtual-reality

360º degree camera in three.js


Does anyone know how to create a 360º camera in three.js?

I'm trying to render the entire scene as a 360º panorama like you would with a go pro 360 rig.

I'm trying to recreate a panorama by arranging several screens in a circle and stretch a threejs window across all the screens.

For this I need a very wide window that has a tree.js camera that captures the entire scene in 360º

Is this possible?


Solution

  • It is definitely possible, as it was already implemented: https://github.com/spite/THREE.CubemapToEquirectangular

    That library will just export snapshots as png, but looking at the code it should be possible to integrate the same method it uses into realtime-rendering if you want to...