Page MenuHomeFeedback Tracker

Splendid camera does not restore rotation for presets
Reviewed, NormalPublic

Description

The splendid camera does not restore pitch and roll when recalling offsets with 1,2,3,etc. (saved with ctrl+1,2,3, etc.).

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Eden Editor
Steps To Reproduce
  1. Open splendid camera.
  2. Point camera down.
  3. Press Ctrl+1 to save position.
  4. Point camera straight ahead.
  5. Press 1 to recall position.

Camera still points straight. Only heading is restored.

Event Timeline

MulleDK19 updated the task description. (Show Details)
MulleDK19 edited Steps To Reproduce. (Show Details)
Wulf changed the task status from New to Reviewed.Jan 22 2018, 12:29 PM
Wulf added a subscriber: Wulf.

Hello.

Thank you for the report, we will have a look at it.

greenfist added a subscriber: greenfist.EditedMay 17 2020, 12:04 PM

The issue persists in the current dev build 1.99.146398 and stable 1.98.

Moving the camera after saving/loading replaces the profile variable that holds the camera positions.
The fault apparently lies in handling of the pitch/bank subarray of the camera parameters.

At least this seems to fix it:
function \A3\functions_f\Debug\fn_camera.sqf
Line 605: profilenamespace setvariable ["BIS_fnc_camera_positions",+_positions];
Line 1043: BIS_fnc_camera_pitchbank = +_pitchbank;

Added pluses to create new instances of the arrays.