360

Help transforming fisheye into equirectangular

kfarr's picture

Hi there, I'm trying to use Quartz Composer to transform a live video feed consisting of dual fisheye views (180 x2 = 360) from the Ricoh Theta S camera into an equirectangular output to then stream for 360 webvr viewing.

Goal is to create a Quartz composition that can be used in camtwist or other live video streaming software to adjust live the output of the theta-s to be suitable for using in a 360' web panorama plugin. The flow will be something like this:

  • Theta S via USB or HDMI > Computer
  • Computer to use this Quartz composition from within Camtwist > Media encoder > HLS (via cloud encoding service) > web front-end
  • Web front-end needs equirectangular image, see this example: https://aframe.io/examples/showcase/sky/

I am having a hard time getting this to work using sample code from Paul Bourke found here: http://paulbourke.net/dome/fish2/

Has anyone done similar transformation of fisheye > equirectangular? Would love any advice you can provide.

The QTZ file and more info on the project can be found here: https://github.com/kfarr/theta-s-quartz

Rotate image for a 360° simulation (used for 3D effect) (Composition by rbetin)

Author: rbetin
License: Creative Commons Attribution-NonCommercial-ShareAlike
Date: 2011.11.02
Compatibility: 10.6, 10.7
Categories:
Required plugins:
(none)

This patch uses a single image to simulate a 360° rotate, with 2 sprites.

See video