GithubHelp home page GithubHelp logo

imclab / theta-s-quartz Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kfarr/theta-s-quartz

0.0 2.0 0.0 4.26 MB

Creation of a quartz project to transform live theta s feed from dual fisheye to panoramic

GLSL 100.00%

theta-s-quartz's Introduction

CamTwist Effect Plugin to Convert Theta-S Live Video from Fisheye to Equirectangular via Quartz

An experiment to use OS X Quartz Composer to transform Ricoh Theta S live feed dual fisheye to equirectangular.

NOTE JUN 2016: Ricoh has since released native OS drivers to accomplish this: https://theta360.com/en/support/download/

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/

Current state - Proof of concept works

  • theta-fish2sphere.qtz - this "routes" camtwist through Paul Bourke's custom quartz patch project (see references below)

  • @kosso modified version added : theta-fish2sphere_K.qtz with reference images to play with.

Reference Input Image

!['Reference Input Image'](https://github.com/kosso/theta-s-quartz/blob/master/THETAS_DUALFISH_REF_1280_720.png?raw=true =600x)

Test Output Snapshot

!['Example Output Image .. so far'](https://github.com/kosso/theta-s-quartz/blob/master/OUTPUT.png?raw=true =600x)

Example images:

To use:

  • Download camtwist http://camtwiststudio.com/, install to applications
  • Add theta-fish2sphere.qtz and theta-crop.qtz to Applications > CamTwist > Effects
  • Open CamTwist
  • Step 1: View > Main Window, Double click "Webcam" and choose RICOH THETA S
  • Step 2: Choose filter theta-fish2sphere
  • Step 3: Modify settings if you'd like, not sure it'll make much of a difference yet. Make sure to press enter after you enter new values.

How to modify:

  • Download quartz composer from Apple's developer site http://developer.apple.com/downloads by searching for "Graphics Tools for Xcode"
  • Open theta-fish2sphere.qtz file in quartz composer
  • Change input image source to theta s on USB or HDMI input live stream, or use sample image from this git project's root dir

Dev notes for Quartz Composer

  • For testing / developing in QC, you'll need to unhook the "Image (Required)" patch and use instead the image patch "image-example of 720p theta-s stream"
  • Ideally in QC during dev one could use video input patch to use as reference for modifying settings, but it is not consistent with behavior when ran inside of camtwist

Some helpful docs

theta-s-quartz's People

Contributors

kfarr avatar kosso avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.