How to Create Third Person Portals | Unreal Engine 5

Описание к видео How to Create Third Person Portals | Unreal Engine 5

In this video, I show how you can create a third person portal effect inside Unreal Engine 5. This is similar to post portal systems, except it allows you to detach the camera from the player allowing them to teleport separately, which creates a much more seamless effect.

USEFUL LINKS:
Project Files:   / 3rd-person-files-105061894  
Discord:   / discord  

HELPFUL INFORMATION:
The aspect ratio setting on the player camera is only found on newer versions of Unreal Engine. If you don't see this setting, don't worry, that means you don't have to adjust it!

The duplicate character stuff starting at around 48:45 is for cloning the character when they are intersecting with the portal plane. I am using the default mesh, but you will need to do this stuff for your custom characters if you have them. If you want further info, you can find it here: https://docs.unrealengine.com/4.26/en...

Lastly, you see I disable lumen and motion blur at the beginning. This is because these settings don't work well with scene capture components currently. You can feel free to reenable these and tweak them around, but disabling these will get you the most seamless effect.


0:00 | End Result
Part 1: The Visuals
0:31 | Project Settings
1:42 | Setting up the Classes
2:10 | Creating the Portal Material
2:50 | Setting up the Portal Class
4:20 | Portal Begin Play
7:30 | Updating the Portal Camera
13:40 | Fixing the Player Camera FOV
14:05 | Detecting When Resolution Changes
16:40 | Setting Clipping Plane of Cameras
Part 2: The Physics
19:05 | Adding More Components to the Portal
22:55 | Creating the Should Teleport Function
24:05 | Is Point Crossing Portal
29:55 | Teleport Character Function
34:00 | Retain Player Velocity
37:20 | Desyncing the Camera and Character
45:00 | Update Alternate Camera Location
Part 3: Improvements
48:45 | Creating a Mirror Player Character
50:00 | Making the Mirror Character Copy Players Animation
51:45 | Player Overlapping Events
56:00 | Update Mirror Character Function
58:45 | Prevent Camera Clipping Plane
1:02:21 | End Result

#unrealengine5 #portals #tutorial #gamemechanics

Комментарии

Информация по комментариям в разработке