Unreal Engine 5 - Electric Material

preview_player
Показать описание
Today, I am going to implement a simple electric streak material. This simple material can be used to implement something like a electric beam, electric spark or a lightning bolt. I will create parameters to customize the color, speed and few other properties to have a unique look for each different material instance. You can use this material with particle effects as well.
► 👇 𝐒𝐮𝐩𝐩𝐨𝐫𝐭 𝐓𝐡𝐞 𝐂𝐡𝐚𝐧𝐧𝐞𝐥 // 𝐁𝐞𝐜𝐨𝐦𝐞 𝐀 𝐏𝐚𝐭𝐫𝐨𝐧!
►Patrons will have access to project files of all the stuff I do in the channel and other extra benefits

Join this channel to get access to perks:

#CodeLikeMe #unrealengine #ue5 #ue4 #indiegamedev
Рекомендации по теме
Комментарии
Автор

great thank you! it is good that you explain everything so well, It is easy to understand what we are doing and why :D

eldflaug
Автор

This is way too expensive to use in a game. 2 generative nodes in a single material for just that simple effect.
To get the same line you can use a texcoord node masked in G, then subtract 0.5 from it, run it though ABS and Power, use the power to have it sharper or smoother then use smoothstep node if you wanna make wider or slimmer. And it's the same as the band generator but it does not generate anything at runtime. It is precalculated.
Then to make it like a lightning just add a low res noise texture and instead of panner just add time to it to keep it as cheap as it can get.
Your material can also be additive instead of translucent. Or even masked id you're going for a more stylised (sharper) look. And for the best result make a Niagara system spawning a couple sprites facing the camera so that you will get the best result no matter the angle you're looking at it. You can also use texcoord and add a random value in the niagara using a dynamic parameter to make it random for each lightning.

hristozafirov
Автор

Really nice and exactly what I was looking for, thanks!

megtwin
Автор

Hello, thank you very much for your tutorial. Do you know what I have to adjust so that the electric wave does not interrupt, but continues to wave without a break? Kind regards. :)

monjamarek
Автор

Your tutorials are very helpful, although I have a small problem with the previews when using the Panner. Yours clearly seem emissive, while mine are just flat white without a glow around it. Is there anything I need to change within settings or whatever to get the preview as you're showing it? Many thanks in advance! Keep up the good work!

fullyguilty
Автор

Solo funciona si se agrega a un plano que hago si quiero agregarlo a un cilindro? (cuerda)

nacho
Автор

if those streaks emitted light on the landscape or the cilynders it would have benn much better

anirudhsingh
Автор

how do you make it so the ends of the electricity start at one point?

WolfloW_Official
Автор

That is really cool. I didn't know about the GeneratedBand node so I would have started experimenting with Niagara trails. Are there any rules for determining which effects to produce in materials rather than Niagara?

CycleverseGames