# How to make smooth Camera Switch Transition

**URL:** <https://forums.unrealengine.com/t/how-to-make-smooth-camera-switch-transition/585725>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint\
**Created:** [June 20, 2022, 7:58am UTC](https://forums.unrealengine.com/t/how-to-make-smooth-camera-switch-transition/585725 "2022-06-20T07:58:16Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_fb4e3c491](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fb4e3c491](https://forums.unrealengine.com/u/anonymous_user_fb4e3c491)\
**Post date:** [June 20, 2022, 7:58am UTC](https://forums.unrealengine.com/t/how-to-make-smooth-camera-switch-transition/585725/1 "2022-06-20T07:58:17Z")

</div>

Hey guys, i reworked the BP\_ThirdPersonCharacter and added a simple toggle to switch between FirstPersonCamera and ThirdPersonCamera.

Now i want to try add a timeline and make it as a smooth “zoom in/zoom out” transition.  
But i have problems, where and how to set the timeline correctly.

I would be very happy if someone can help.

 ![CameraSwitch](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/9/1/f9188ad63aeb6a76bb01b15a6e85efe1cb4df6dd.png)

best regards

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 20, 2022, 8:08am UTC](https://forums.unrealengine.com/t/how-to-make-smooth-camera-switch-transition/585725/2 "2022-06-20T08:08:29Z")

</div>

If these are two separate actors ( looks like it from the variables ), you can just use ‘set view target with blend’

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/9/1c988635d52408791e915c0e51489c9ba9154595.jpeg "HTF do I? Change Cameras in Unreal Engine 4 Blueprints") ](https://www.youtube.com/watch?v=uW86ZGxesmc)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 20, 2022, 8:16am UTC](https://forums.unrealengine.com/t/how-to-make-smooth-camera-switch-transition/585725/3 "2022-06-20T08:16:38Z")

</div>

You’re switching between 2 cameras so a timeline will not help you much, at least not _just like that_. We’d need to move one of the cameras towards the other and vice versa.

When you’re in the 3rd person cam:

- rather than flipping cameras, lerp the 3rd cam’s transform towards the 1st one
- once the timeline has finished, switch cameras
- move the 3rd person cam to its original location
- apply reverse logic for the 1st person cam

You may get a good result with `tInterpTo` instead of the Timeline with this method as well.

* * *

It might be more desirable to have a single camera only and move it between 2 pre-set locations:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/d/a/3da88e5e2b265bb9e6790a55d512d384a1315f04.png)

Play the TL in reverse to switch back.

* * *

Alternatively, for multiple cameras and their transitions, consider letting the `Set View Target with Blend` handle the translation - Blend Time, Blend Func (curve) and the Exponent provide a bit of granular control.

In this case it would be a matter of keeping only 1 camera Activated and then firing Set View Target - that node will switch to the first active camera it finds over Blend Time.

* * *

> If these are two separate actors ( looks like it from the variables )

They’re comps but it will work with 1 actor, too - just keep one desired camera active. Making the cameras separate (child) actors would also work well, ofc.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fb4e3c491](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fb4e3c491](https://forums.unrealengine.com/u/anonymous_user_fb4e3c491)\
**Post date:** [June 20, 2022, 11:28am UTC](https://forums.unrealengine.com/t/how-to-make-smooth-camera-switch-transition/585725/4 "2022-06-20T11:28:09Z")

</div>

Hey thank you for the answers!  
Maybe i have to say, that i am relative new to UE. It help me, if i start a complete new project.  
But i want to understand it a little bit better and just include it in my own Event Graph.

Can someone explain it in few steps for my better understanding?

> [@](#):
>
> you can just use ‘set view target with blend’

With this solution its hard to work for me, because i need first “Set Player Controller” and i dont use it in my event graph before, so its kind of tricky for me.

> [@](#):
>
> It might be more desirable to have a single camera only and move it between 2 pre-set locations:

It looks for me like a good solution that i can put into my event graph, but i work with 2 different cameras and dont figured out since now how to work with one cam and 2 views.

So maybe it will be great, when someone can use my event graph and explain me how i get the blend into that? IF its possible?

Sorry 😃 i really try to understand the logics. And i sitting now for 1 hour on this two solutions and trying many things, but i dont get the result that i need. thanks!

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 20, 2022, 11:49am UTC](https://forums.unrealengine.com/t/how-to-make-smooth-camera-switch-transition/585725/5 "2022-06-20T11:49:32Z")

</div>

> [@anonymous\_user\_fb4e3c491](#):
>
> “Set Player Controller” and i dont use it in my event graph before, so its kind of tricky for me.

No need to set a controller:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/c/c/5cc0910fe65c2eea06f6a90c8223be552fd857f4.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 20, 2022, 12:07pm UTC](https://forums.unrealengine.com/t/how-to-make-smooth-camera-switch-transition/585725/6 "2022-06-20T12:07:21Z")

</div>

For the most straightforward method:

- create an actor with just a camera:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/b/8/7b8f30bca66da67e45c3925134f2c482fbc1e9bc.png)

- add 2 child actor components to the character, and have them instantiate that camera actor:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/f/d1f2d267ac31994421c391b812c71128b680c7cb.jpeg)

- simple Flip Flop script:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/3/3/8336634d093c29983af0fc1b83d06c963225adb4.png)

This requires no timeline or activating / deactivating components. You may want to add a delayed gate so the user cannot spam the button. Set View Target does not like interruption - the system has no idea about the very interpolation it’s performing. 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fb4e3c491](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fb4e3c491](https://forums.unrealengine.com/u/anonymous_user_fb4e3c491)\
**Post date:** [June 21, 2022, 9:20am UTC](https://forums.unrealengine.com/t/how-to-make-smooth-camera-switch-transition/585725/7 "2022-06-21T09:20:12Z")

</div>

Got it

But the movement is wrong now.

How i can fix it?

In the third person camera its complete wrong.  
In the first person camera it “feels” wrong.

Here a video documentation:

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fb4e3c491](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fb4e3c491](https://forums.unrealengine.com/u/anonymous_user_fb4e3c491)\
**Post date:** [June 21, 2022, 6:58pm UTC](https://forums.unrealengine.com/t/how-to-make-smooth-camera-switch-transition/585725/8 "2022-06-21T18:58:25Z")

</div>

@ Have you any ideas to fix that?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 21, 2022, 7:00pm UTC](https://forums.unrealengine.com/t/how-to-make-smooth-camera-switch-transition/585725/9 "2022-06-21T19:00:01Z")

</div>

Can you show the actor hierarchy after adding the CACs?

---

<div class="post-metadata">

**Author:** ![Greg55](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/greg55/32/1084802_2.png) [@Greg55](https://forums.unrealengine.com/u/Greg55)\
**Post date:** [May 28, 2024, 4:22am UTC](https://forums.unrealengine.com/t/how-to-make-smooth-camera-switch-transition/585725/10 "2024-05-28T04:22:39Z")

</div>

quick question reviving that topic: when using this set up to translate the position of the camera boom, if the interp speed is not 0 or super fast the boom never fully reaches its target, and I have no idea why.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/9/2c98cf571321bca5e8a12e87df057cca001d2183.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [May 28, 2024, 7:09am UTC](https://forums.unrealengine.com/t/how-to-make-smooth-camera-switch-transition/585725/11 "2024-05-28T07:09:51Z")

</div>

Not really related to the topic at hand. But by the very definition interpolation will create ever decreasing steps. You can snap the value yourself as it may take quite a bit of time for the floats to match up - they never actually will from the floating point error point of view anyway.
