Hacker News new | ask | show | jobs
by camoby 3497 days ago
Doable. In a way. But think about the problem, if a '3d/stereoscopic' effect is what you're after.

When you turn your head right, the left 'eye' would be 'looking' at the right 'eye/camera' (at the side). The only way to achieve what you're thinking about is to have the cameras move the same way as the head (ie: 'live' not pre-recorded) on a pan/tilt setup. (There are a few Raspberry Pi projects around that do this).

It's easy enough to play two identical videos to each eye in Google Cardboard, using ThreeJS in a browser. The videos need to be in either 'spherical/equirectangular' format as a texture on a sphere (with a virtual camera in the middle), or using the cubic format (which Facebook uses and open-sourced) projected onto a cube. Look up 'skybox' and ThreeJS for examples.

I've been experimenting a lot with all this stuff over the last year or so :)