Destiny 2 material recreation WIP

ue4

#1

Latest Version:


Hey all,

I am attempting to recreate an effect i love from Destiny 2, specifically its a space rip/tear that appears around the Taken.

Here is my current attempt (The texture is a placeholder).

I am happy with the shapes being generated but i would like to understand how i could achieve the glowing edges found in the original here.

There are many different parts to this effect i would like to recreate but for now i am mostly interested in the glowing edges. Here is the node graph for the current attempt. I would love some advice on this one!

Any help or guides you know of would be greatly appreciated!

Cheers


#2

Don’t use an if, instead smoothstep through your clamped texture twice.
Once to create the same mask that you have right now, and another to make one a few pixels larger.
Then subtract the smaller one from the larger one and use it to drive your glow colour. add that to your end result.
Profit!

Theres other solutions, that is just the one that I found to give me the most pleasing results while being relatively cheap :smiley:


#3

@Wyvery is right about the if statement you want to avoid them unless absolutely necessary, an easy way to get your alpha is to use a ceil() after your threshold subtraction, and for the edges you can sample the gradient at zero and divide by a thickness value to generate the edge, this way you can control the gradient falloff on the edge as well.


#4

@DeepSpaceBanana @Wyvery

Thank you both very much for your replies they are both so very helpful! Im glad i have a way to avoid if statements for things like this now! My graphics teacher would scold me for introducing branching within a shader haha!

I’m going to applies these now and see where i get


#5

@DeepSpaceBanana @Wyvery

Thanks for the advice again guys ive updated the material and its now more on the right path!

Poor quality but you get the idea!

Cheers


Wyvery's Sketchbook
#6

Cool, now just use more then one noise and average the results.
After that it’s just prettiefying :smiley: