Sun Shader

Hello!

I’ve created this sun in Maya:

How can I create a shader in UE4 that would look similar to this?

I am a total noob at this, so any help would be appreciated!

Thanks!

There are more than one ways really. For the surface you need black&white alpha masks(or built-in procedural noise in the material editor) that resemble the sun surface and then combine and pan those and set the color either with constant vectors or a black body node. For flamey looking outer surface you can either use planes scattered all over the sun and use another texture for those, or you can make particle systems. You can even have sun flares with GPU particles controlled with vector fields like so:

7386239d02062ce31b4ab0385dc4d09d14b3c358.jpeg

Search the forums for sun and solar system and you’ll find more examples and materials.

I’d like to do a flamey surface with particles instead of scattered planes, but I just have no idea how to do it. I’ve tried modifying a particle emmiter, but I just don’t understand anything there :frowning: Like I said, I’m a noob.

Being noob is fine! Watch this video to learn how to create a fire particle effect from scratch:

He uses UDK, but the majority of the stuff you’ll see there apply to UE4 as well.

We tried around a bit with several approaches and that’s the wip result for now:

I’m linking in your AnswerHub post here as well:https://answers.unrealengine.com/questions/79827/sun-shader.html

I’m going to be taking on something similar over the next few weeks, I’ll get back to you with any cool tips and tricks I find :slight_smile:

Hey , looking forward to see your results. Cooreets and I continued with it a bit and it’s slowly getting somewhere. :slight_smile:

Using a depth opacity node now and way better flame-flipbook texture.

@Jacky Is this sun made in ue4?

@Uzad_abdlm It was. Though i’m sure a much better version of it can be made now with the help of Niagara.