Page MenuHomeFeedback Tracker

GetScreenPos result wrong when in scope
Closed, ResolvedPublic

Description

If you are trying to make some kind of 3D markers in DayZ and use the GetGame().GetScreenPos(pos); Method to get the position of the Marker in 2D space the result is perfect except the player is in a scope that zooms in. When the player moves the weapon around, the marker changes the position instead of being stable on one position. There is some kind of multiplication error when having a zoomed view.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

Do something similar like the VanillaPlusPlusMap andsee how it behaves when using a scope (tested with PU scope on SKS)

Event Timeline

LBmaster created this task.Jan 19 2020, 2:36 PM
LBmaster updated the task description. (Show Details)
Geez closed this task as Resolved.Jan 30 2020, 11:47 AM
Geez claimed this task.
Geez added a subscriber: Geez.

Hello LBmaster.
When manually zooming camera, the FOV is overriden, hence the multiplication errors.
You can try these FOV values to adjust the calculation:
scripts/3_Game/constants.c:
DZPLAYER_CAMERA_FOV_EYEZOOM
DZPLAYER_CAMERA_FOV_IRONSIGHTS

Regards,
Geez