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.
@metalman1234566 ай бұрын
On the noise texture though where do you add it?
@noisegrindercn2 ай бұрын
The band generator is just a material function, and if you open it up you can see it does pretty much what you described. But I agree with that the prodedural noise node is really expensive and it's better off using a low-res texture sample.
@eldflaug3770 Жыл бұрын
great thank you! it is good that you explain everything so well, It is easy to understand what we are doing and why :D
@CodeLikeMe Жыл бұрын
You're very welcome!
@youngjinjeong473317 күн бұрын
thank you!!!! very much!!!
@megtwin Жыл бұрын
Really nice and exactly what I was looking for, thanks!
@CodeLikeMe Жыл бұрын
Glad I could help!
@dschannel52792 жыл бұрын
thank you so much
@WolfloW_Official6 ай бұрын
how do you make it so the ends of the electricity start at one point?
@nacho62474 ай бұрын
Solo funciona si se agrega a un plano que hago si quiero agregarlo a un cilindro? (cuerda)
@fullyguilty8 ай бұрын
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!
@carlosvalencia27636 ай бұрын
Try turning on the "Bloom" option in your Unreal Engine project settings
@monjamarek9057 Жыл бұрын
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. :)
@CycleverseGames2 жыл бұрын
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?
@CodeLikeMe2 жыл бұрын
well, when it comes to changing size, colors, opacity with time, which is often the case with effects, we have to use the particle system. But for the base look, we can rely on the material.
@badbrat Жыл бұрын
helping content
@anirudhsingh6553 Жыл бұрын
if those streaks emitted light on the landscape or the cilynders it would have benn much better
@noah816211 ай бұрын
it does, with UE5 if you use lumen lighting then emissive materials (like his lightning) will cast light on nearby surfaces