aframevr / aframe

:a: Web framework for building virtual reality experiences.
https://aframe.io/
MIT License
16.46k stars 3.92k forks source link

Creating a 360 video from a scene #5553

Open atrauzzi opened 3 weeks ago

atrauzzi commented 3 weeks ago

I would love to have the ability to dump what's going on in an aframe scene from a specific point as a 360 degree video. Even better would be if I had a 360 video as a skybox, that its original quality would be preserved, with the rendering of the scene simply layered over top of it at full quality.

mrxz commented 3 weeks ago

The screenshot component allows you to render an equirectangular image of your scene. While not the most performant, you could use it to make them in succession and then later combine them into a video. Note that these are monoscopic, so best to use it for distant/far away scenery.

As for retaining "original quality" when using it as a skybox, that is a bit trickier. In any case using the WebXR Layers API to create an equirectangular layer should yield the best results. A-Frame does have some limited WebXR Layers support (see layers component), but no equirectangular support, so you'd have to implement that yourself.

dmarcos commented 3 weeks ago

and 360 gameplay video will most likely be very disorienting (unwatchable for most) do to camera movement.