When replaying a demo file recorded by demorec
from the console, how can I make it such that the demo is played back from a first person perspective of the player who recorded it?
I’m working with Carla. When playing back a demofile, the player is given a spectator camera that can just fly around the world. Gameplay is faithfully recorded, however - I can find the the original player character in the world, and all the player and NPC actions are correctly recorded.
How can I attach the spectator camera to the view of the player during recording? Carla also has a set of features inside a PlayerController
subclass that allow for semantic segmentation of the scene and extracting depth maps. How can I get the controller possess the original player pawn in the recording, so I could render segmantic segmentation and depth maps from the demofile?
I’m not familiar with Unreal, and searching around, I wasn’t able to find anything that looked relevant.