Rendering out stereo 360 from Blender EEVEE is actually pretty easy thanks to the new eeVR addon.
Here are the steps to take if you want to do an equirectangular render from EEVEE:
- Download the eeVR addon from Github: https://github.com/EternalTrail/eeVR
- Install the VRRenderer.py file using the normal addon installation process
- Open the new “Testing” tab in the addons and activate eeVR there
- Open the eeVR settings in the viewport view3d-settings area (the panel that opens with the N-key)
- Set field of view to 360
- Go to the render settings (the symbol with a printer icon) and enable stereoscopy
- Model your scene and remember to save it.
- Hit “render animation” from the eeVR panel.
- You will soon have a folder full of stereoscopic 360 PNG images in the folder that contains your Blender file.
If you want to convert the PNG files into an Oculus Quest compatible file, you can use this FFMPEG command (frame%6d means that the filenames have the word frame followed by 6 digits):
ffmpeg -i frame%6d.png -framerate 30 -c:v libx265 -preset slow -crf 17 -vf "scale=4096x4096" -pix_fmt yuv420p -an -movflags faststart -r 30 "output_sideload_4096_h265_crf17.mp4"
That script was adapted from https://echeng.com/articles/encoding-for-oculus-media-studio/
If you want to upload the video to Youtube, simply use this Metadata Injector before uploading:
After injecting the file with the correct metadata, Youtube should understand the file as stereoscopic 360 video. Note that the processing of the file might take some time and it might not work correctly as 360 video before the processing for that is ready.