UE4.27: Autostereoscopic 3D Rendering
What is Autostereoscopic 3D?
In order to achieve a stereoscopic effect, where objects appear more three-dimensional based on the different angles viewed by the left and right eyes, two cameras can be set up and their positions and focal lengths can be adjusted to create a parallax effect. The resulting footage from these two cameras can then be provided to engineers for further processing to create the final 3D effect. This article does not go into the technical details of how naked-eye 3D is achieved, but rather explains how to calculate the necessary parameters for clients with such requirements. The actual eye separation and focal length should be adjusted in consultation with the engineers for optimal results. (The image below shows an example of the output video, but note that engineers will further process the footage for use with naked-eye 3D equipment.)
Setup
PD(Inter Pupillary Distance)refers to the distance between the pupils of the eyes, which varies from person to person. According to the official recommendation of Meta Quest 2, the average PD range is between 61-66mm.
Link: IPD and lens spacing on Meta Quest 2 | Meta Store
To set up a 3D scene for naked-eye 3D rendering in Unreal Engine, you need to confirm that the Composure and Movie Render Queue plugins are enabled.
To create the 3D effect, you'll need to place two cameras with a certain distance between them. According to the official recommendations for the Quest 2, the distance between the two cameras should be set to a difference of 63mm.
Create a new Composure layer and add two CG layers (one for the left eye and one for the right eye).
Configure Comp Material, Output Mode, and Output Resolution.
Set up R_Comp material (L_Comp is the same)
Add the Comp layer and two cameras to the Sequence, and render the animation in Movie Render Queue.
Edited by Yi Chung, Yung Jie
Last Update: August 24, 2022
Software: Unreal Engine 4.27
OS: Windows 10
Reference::