All examples By author By category About

bryik

A-Frame and NVIDIA Ansel

Displaying Ansel Stereo Panoramas with A-Frame

Update: for an easier way, see Overunder Panorama Viewer.

Ansel stereo panoramas are surprisingly good, better than Cardboard Camera and nearly as impressive as scenes handmade for VR viewing.

Instructions:

  1. Split the original over-under equirectangular image in two using the following ImageMagick command:
magick convert <IMAGE.png> -crop 1x2@ +repage +adjoin pano_%d.png

Note: replace <IMAGE.png> with the name and format of the image you want to split.

This command will add two new files to your directory. I suggest renaming them to avoid confusion:

  1. Upload the left and right images to the host of your choice. Beware of CORS issues. Imgur worked for me.

  2. Go to this codepen and hit the "fork" button.

  3. Replace the links on lines 4 and 5 with your own.

CodePen has a number of different views, "debug" is the cleanest.

References

Credit for Ansel panorama: Dougstar02.

Example Pen by bryik on CodePen.