Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
StrausEmu's avatar
StrausEmu
Honored Guest
11 years ago

VR and cursor (crosshair) and Menu

Hello everyone!

[SORRY FOR MY ENGLISH]

Problem (only VR mode):

when I look in the VR mode, I can't correctly select the menu items (push button...). Apparently the coordinates of the mouse cursor position and VR HMD position is different.

When you hover over the button, button is not highlighted. If you move the cursor much higher (on axis X) the button, button is highlighted.


What I did:

1. I'm made HUD 3D and bind to HMD.
2. Now when I cause the menu, menu appears before my eyes. This is no problem.
3. I'm made cursor/crosshair (for example by Epic) for VR.
4. In the Blueprint I get the mouse cursor position. Crosshair is correctly displayed in VR (over the menu).

Image (Blueprint):
https://answers.unrealengine.com/storage/attachments/55831-hud_class.png

Question:

How to solve a problem?

3 Replies

Replies have been turned off for this discussion
  • artyom17's avatar
    artyom17
    Expert Protege
    Does it change if you set 100% screenpercentage (using 'hmd sp 100' console cmd)?
    I would assume that the issue is in ScreenPercentage and attempting to use screen coordinates.
    If you can make a small project which reproduce the issue then it will be useful.