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

**URL:** <https://forums.unrealengine.com/t/how-to-use-two-ue4-cameras-left-right-as-direct-output-for-ndisplay-stereo-rendering/486125>\
**Category:** Cinematics & Media\
**Tags:** configuration, stereo-layers, ndisplay, unreal-engine, question\
**Created:** [July 13, 2021, 2:29pm UTC](https://forums.unrealengine.com/t/how-to-use-two-ue4-cameras-left-right-as-direct-output-for-ndisplay-stereo-rendering/486125 "2021-07-13T14:29:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexis.Harnois](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alexis.harnois/32/88719_2.png) [@Alexis.Harnois](https://forums.unrealengine.com/u/Alexis.Harnois)\
**Post date:** [July 13, 2021, 2:29pm UTC](https://forums.unrealengine.com/t/how-to-use-two-ue4-cameras-left-right-as-direct-output-for-ndisplay-stereo-rendering/486125/1 "2021-07-13T14:29:04Z")

</div>

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.
