# ndisplay: how to match player input with camera view?

**URL:** <https://forums.unrealengine.com/t/ndisplay-how-to-match-player-input-with-camera-view/484648>\
**Category:** Cinematics & Media\
**Tags:** viewport, ndisplay, unreal-engine, mouse-position, question\
**Created:** [June 9, 2021, 11:09am UTC](https://forums.unrealengine.com/t/ndisplay-how-to-match-player-input-with-camera-view/484648 "2021-06-09T11:09:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_9f003c31](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9f003c31](https://forums.unrealengine.com/u/anonymous_user_9f003c31)\
**Post date:** [June 9, 2021, 11:09am UTC](https://forums.unrealengine.com/t/ndisplay-how-to-match-player-input-with-camera-view/484648/1 "2021-06-09T11:09:41Z")

</div>

hi developers,

basically i have 2 monitors set vertically from each other, and i set the viewport of ndisplay with the in-game cameras. In order for the player to interact base on the viewport, i blend the top camera to the player controller as a test. The expected behaviour is to only be able to interact with the object within the top camera. However, what happen is where i click on the screen does not match where the raycast is.

 ![341083-ndisplay-interaction.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/3/1a39e09d340be332e0f544b06b9ed7c7b82106c5.jpeg)

i am drawing the raycast by using “ConvertMouseLocationToWorldSpace”.

---

<div class="post-metadata">

**Author:** ![andlxsen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@andlxsen](https://forums.unrealengine.com/u/andlxsen)\
**Post date:** [May 10, 2023, 3:20am UTC](https://forums.unrealengine.com/t/ndisplay-how-to-match-player-input-with-camera-view/484648/2 "2023-05-10T03:20:17Z")

</div>

> [@anonymous\_user\_9f003c31](#):
>
> basically i have 2 monitors set vertically from each other, and i set the viewport of ndisplay with the in-game cameras. In order for the player to interact base on the viewport, i blend the top camera to the player controller as a test. The expected behaviour is to only be able to interact with the object within the top camera. However, what happen is where i click on the screen does not match where the raycast is.

Have you solved this issue?
