henrilf
henrilf

Reputation: 33

Export an aframe scene to a 360° video

I'm trying to export a VR scene made with a-frame (three.js-based VR library) into a 360° video.

All I could find was a way to export the canvas to a regular flat mpeg4 using a chrome plugin (RenderCan). I would like it to be a video that could be watched from any angle though.

Is there a way e.g. to snapshot every frame to an equirectangular image or something?

Upvotes: 1

Views: 491

Answers (1)

Daniele Sesoldi
Daniele Sesoldi

Reputation: 102

You can make equirectangular screenshot of aframe scene by doing

document.querySelector('a-scene').components.screenshot.getCanvas('equirectangular');

or normal perspective screenshot of what you're looking with

document.querySelector('a-scene').components.screenshot.capture('perspective');

Maybe you can try to make some screenshot and make a sort of gif

Upvotes: 1

Related Questions