Skip to content

Mapping double spherical 360 cam image to equirectangular, on WebGL

Notifications You must be signed in to change notification settings

izmhr/EquirectangularMapOnWebGL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

Equirectangular mapping on WebGL(Three.js).

  • Insta360 Air is a nice omni-directional camera, which connects to pc directly via usb.
    • lower latency than Ricoh Theta S, Theta V, Ricoh R.
    • hight resolution than Ricoh Theta S, when using live streaming.
    • very small body.
  • To see Insta360 Air image in HMD, we need to project the raw double spherical image to equirectangular image. And, In my case, I wanted to steam the video via WebRTC and see it on WebVR on a browser.
    • So, I implemented GLSL Shader to map double spherical raw image of Insta360 Air to Equirectangular.
    • on Three.js.

TypeScript + WebPack.

  • And, for my lesson, I used Webpack and Typescript as development tools.
  • Luckily, Three.js officially started to supports typescript.

Reference

To use

To Build

> npm i         # install modules (webpack, typescript and so on.)
> npm run build # webpack

To See the result

  • Conect Insta360 Air to your PC.
  • Use some webserver.
    • In my case, I use LiveServer on Visual Studio Code.
    • Now, we need to use HTTPS webserver to use webrtc.
  • And access https://<Address>:<Port>/dist

Stitching Parameters

  • dat.GUI on the top-right corner, you can tweek the parameter to stitch.
  • press save to save the parameters on localStorage.

About

Mapping double spherical 360 cam image to equirectangular, on WebGL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published