# Playing demo files from first person perspective?

**URL:** <https://forums.unrealengine.com/t/playing-demo-files-from-first-person-perspective/425737>\
**Category:** Rendering\
**Tags:** demo, replay-system, replay, unreal-engine, question\
**Created:** [May 23, 2018, 1:03am UTC](https://forums.unrealengine.com/t/playing-demo-files-from-first-person-perspective/425737 "2018-05-23T01:03:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![candytacod](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@candytacod](https://forums.unrealengine.com/u/candytacod)\
**Post date:** [May 23, 2018, 1:03am UTC](https://forums.unrealengine.com/t/playing-demo-files-from-first-person-perspective/425737/1 "2018-05-23T01:03:40Z")

</div>

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](https://github.com/carla-simulator/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.

---

<div class="post-metadata">

**Author:** ![LDOGLONDON](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LDOGLONDON](https://forums.unrealengine.com/u/LDOGLONDON)\
**Post date:** [October 25, 2019, 8:54pm UTC](https://forums.unrealengine.com/t/playing-demo-files-from-first-person-perspective/425737/2 "2019-10-25T20:54:21Z")

</div>

Hey hopefully this can help you out. I kinda found a work-around:

> **[\[UE4 4.22.3 & C++\] How can I do a 'Point Of View' replay?](https://forums.unrealengine.com/questions/929567/view.html)**
>
> Hey all, I'm trying to do a replay system where when you playback the replay you have the same point of view as when the replay was recorded. By this I mean the camera maintains the same position & rotation as it was when you controlled the...
