Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 384
Richard Vijgen Avatar asked Feb 03 '17 10:02

Richard Vijgen


1 Answers

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...

like image 86
Martin Schuhfuß Avatar answered Sep 26 '22 23:09

Martin Schuhfuß