How to See Through Walls and Highlight Objects in Unreal Engine 5

Опубликовано: 04 Октябрь 2024
на канале: UnrealCG
8,842
248

Project Files:   / 78198014  

In this video, I will show you how to make the Witcher Sense effect in Unreal Engine 5. This effect allows you to see through walls and highlight objects in the world. We will use a combination of Niagara, postprocess materials, and stencil buffers to create this effect.

Prerequisites

Unreal Engine 5
A basic understanding of Unreal Engine
Step 1: Create a Particle Trail

We will start by creating a particle trail that will represent the Witcher Senses. To do this, open up Niagara and create a new emitter. Set the emitter type to "Ribbon" and the particle type to "Sphere".

Next, we need to set the emitter settings. In the "Particles" section, set the "Lifetime" to 1.0 and the "Spawn Rate" to 100. In the "Ribbon" section, set the "Width" to 0.1 and the "Subdivisions" to 10.

Finally, we need to set the material for the particle trail. Create a new material and set the "Base Color" to white. We will also need to add a "Noise Texture" node and a "Turbulence" node to the material.

Step 2: Create a Sound Effects Widget

We will now create a widget that will display sound effects when the Witcher Senses are activated. To do this, create a new widget and add a "Sound Wave" component to it.

Next, we need to set the sound wave settings. In the "Sound Wave" section, set the "Sound Wave" to a sound effect that you want to use. In the "Attenuation" section, set the "Radius" to 1000.

Finally, we need to position the widget in the world. To do this, click on the "Transform" section and set the "Location" to (0, 0, 0).

Step 3: Highlight Objects in the World

We will now create a postprocess material that will highlight objects in the world when the Witcher Senses are activated. To do this, create a new postprocess material and add a "Stencil Buffer" node to it.

Next, we need to set the stencil buffer settings. In the "Stencil Buffer" section, set the "Operation" to "Replace" and the "Reference Value" to 1.

Finally, we need to add a "Brightness" node to the material and set the "Brightness" to 1.0.

Step 4: Combine Everything

Now that we have created all of the components, we need to combine them together. To do this, add the particle trail to the scene and add the sound effects widget to the player character.

Next, we need to add the postprocess material to the scene. To do this, go to the "Postprocess Settings" and enable the "Witcher Senses" postprocess material.

Finally, we need to bind the Witcher Senses to a key. To do this, go to the "Input Settings" and bind the "Witcher Senses" action to a key of your choice.

Conclusion

In this video, we learned how to make the Witcher Sense effect in Unreal Engine 5. This effect allows you to see through walls and highlight objects in the world. We used a combination of Niagara, postprocess materials, and stencil buffers to create this effect.




**************

This tutorial was made possible by my pateron supporters.

♥ Want to Support Me on Patreon: https://goo.gl/jD94ge

**************

Thank you so much for watching my tutorials.

♥ Don't Forget To Subscribe: https://goo.gl/rM9aZi


Want to watch more Tutorials?

●Related Videos : https://goo.gl/aZBhuN

●My Particle System Playlist : https://goo.gl/RNWDFi

●My Shader Effect Playlist : https://goo.gl/VmSnZH

●My Game Mechanics Playlist : https://goo.gl/GjmrvY

●My UMG Playlist : https://goo.gl/G2zqFM

My Social Links : Follow Me!

●Twitter : https://goo.gl/ARWqBD
●Facebook : https://goo.gl/DdLxL5
●Donation Link : https://goo.gl/SAH1hd

*****************************************************
#indie #ue4 #unreal
#gamedev #vfx