How to use two ue4 cameras (left/right) as direct output for nDisplay stereo rendering ?

I am using nDisplay for the stereoscopic rendering. In my level, I have two cameras close to each others that represent the left and right eyes.

I wish to to output the view of my left camera to the left channel and to ouput my right camera to the right channel of the stereo rendering.

My nDisplay configuration file goes as follow:

  • My projection policie is of type camera:
    [projection] id=proj_cam type=camera
  • Two cameras are declared:
    [camera] id=“cam_left” loc=“X=0,Y=0,Z=0” force_offset=-1 eye_dist=“0”
    [camera] id=“cam_right” loc=“X=0,Y=0,Z=0” force_offset=1 eye_dist=“0”
  • Two viewports are declared as to link a camera to each of them. Each viewport are of the same size/position as to fill the window:
    [viewport] id=vp_left x=0 y=0 width=2560 height=1440 projection=proj_cam camera=cam_left gpu_node=1
    [viewport] id=vp_right x=0 y=0 width=2560 height=1440 projection=proj_cam camera=cam_right gpu_node=1

    (I linked the viewports from the ue4 blueprint using nDisplay’s nodes)

Output result

  • One viewport/camera view is visible (the other is under it)
  • the visible viewport is rendering in stereo by only offsetting the image of one of the camera
  • The parameters of the cameras’ configuration (eye_dist, force_offset, etc.) are completely ignored and doesn’t change the output.