How do I stop return to player camera after a level sequence?

So, this is going to take a bit of explaining, I will try to provide all the information I can. I am working on a “serious game” in UE 4.22 that is intended to be used as a training system for school teachers and coaches to use to understand and respond to student-athlete concussions. The game consists of 2 primary play modes, third person control of a teacher walking through a school environment, and Level Sequences/cinematic with UI button choices that the player needs to make. The choices cause branching/alternating level sequences to play. For example, the player may be presented with 2 options, do option X or do option Y. X will drive the game to run 1 level sequence, and Y will drive us to a different level sequence. There is an overall controller present in the levels that maintains current state, and determines which level sequence to load based on user interaction. We use events fired in the level sequences to tell the controller when the sequence is ending, then the next sequence is queued up and played.

My issue is that between the time one level sequence ends, and the next starts up, then engine returns control to the player momentarily forcing the camera back to the third person character camera for a short period of time before the next sequence loads. It is probably less than 200ms that this occurs for (more likely less than 100ms on most average powered machines). It doesn’t sound like a big deal, but it is very jarring. The quick flash of a different camera view is like a strange subliminal message, and is very undesirable since our target audience is non-gamers. It’s actually quite illuminating now seeing video recordings of the issue. The CEO of our company has been saying for months that he sees odd things all over the place, and my team and I have been dismissing it saying we don’t. Well I think the issue is that we are used to lots of visual feedback from years of gaming, and he is not a gamer so to him it is objectionable, but to us it’s just another blip of information.

Here is an example of one of our level sequences:

The Level Sequence has an EndScene event towards the end. That is the selected one in the screenshot. The following diagram explains the flow of events.

FYI, I inherited a lot of this code from the previous lead developer when I took over the project a few months ago. I can speak to what is happening, but not always about why it is done this way. At this point, we are nearing our planned Alpha phase, and major re-work is not in the cards. We are a small start up with limited funding, so we are sort of stuck with the existing architecture. It may well be completely fine the way it is, but I just wanted to add that disclaimer for info purposes.

Here is an example of the Level BP waiting for the event and calling the SR Controller:

290604-levelbp-endscene.jpg

Here is the SR Controller End Scene starting the next sequence:

And this is the Scene Controller actually determining the next sequence to load and starting it:

My assumption about what is happening is that the event handling is asynchronous, and the engine is returning control to the player, so switching the viewport back to the thirdperson camera, while the Level BP/SR Controller are processing the event and queuing up the next sequence. Is there any way to do this better?

Some thoughts I had:

  1. Can I stop the camera from switching back to the third person camera unless I explicitly ask for it? It would be better if the game would leave the Level Sequence camera until the next sequence is loaded.
  2. Can I add a blackout or something to the viewport? Essentially creating a fade in / out effect? This would have to persist over all cameras during this transition period.

I am open to any suggestions at this point. I really appreciate any input that anyone has for this.

Thanks a lot!
Fitz

If you do not add a “Camera Cut Track” to any of the Sequences they will not take over the player’s viewport. You can still animate cameras within a Sequence but without the Camera Cut Track they will not automatically take over the viewport and you will have to do it by hand. This will fix the issue where the sequence stops controlling it at the end and your view pops back (you will have to decide how to handle this).

If all of the objects within the scene disappear/reappear for a frame, you will need to change your code flow to not allow a full frame between the first sequence ending and the next sequence starting. Instead you will need to decide and load the next sequence immediately and ensure that it is evaluated that frame.

If you wish to control the fading in Sequencer you can use a Fade Track (though it will have the same single-frame gap problem) so you can control it manually as suggested here; Fade in/out without Matinee? - Cinematics & Media - Epic Developer Community Forums