Page MenuHomeFeedback Tracker

[Question] Need information about new DayZPlayerCameraResult values from 1.21
New, UrgentPublic

Description

I noted you added DayZPlayerCameraResult.m_bUpdateEveryFrame and DayZPlayerCameraResult.m_OwnerTM in 1.21 update.
I was hoping it can help me to fix problems I have with my custom cameras.

I try to manually control camera position/rotation by overwriting them in DayZPlayerCamera
You can find a code example here (for vehicles) : https://feedback.bistudio.com/T169065

My problem is that when I control player camera (when outside vehicle) it work well if the player can run the game at 60fps but when under 60 (even 59) the camera become not smooth.
Note that when in a vehicle the camera become completely crazy (https://www.youtube.com/watch?v=GrS0nrLWHp4&ab_channel=LivensStuff)

As the DayZPlayerCameraBase seems to run at fixed time I was thinking the problem was comming from position/rotation interpolation from player values to calculate camera pos/rot for the frames not corresponding to fixed time.

Seeing the new m_bUpdateEveryFrame value I was hopping it can help to solve the problem but it didn't.
I tried to use the other m_OwnerTM value but it didn't help.

Can you tell me if these new values can help me for my needs or if it is not their purpose.

Sadly for the moment I'm stuck with both (vehicle/non vehicle) cameras and can't release them until these problems are not solved.

I hope I'm clear, English is not my natural language.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

The code from https://feedback.bistudio.com/T169065 can be use to reproduce the bug for the vehicle camera.

Additional Information

Here is an example of what my camera can do when it is smooth : https://www.youtube.com/watch?v=wdnMHhpQBhs&ab_channel=LivensStuff

Event Timeline

Liven created this task.May 9 2023, 7:21 PM