How do I create a custom sun disk for my skydome or integrate the atmospheric fog sun disk with my skydome?

DanielDidenko
Thu, 10 Jul 2014 14:24:40 +0000
Rendering

Hey there,

Branch: Binary

Build Version: 4.2.1-2101290

Repro Steps: I’ve created a skydome in 3ds max and imported it as an fbx. I’ve also created a few textures with masks in photoshop (one texture with three cloud masks (red/green/blue), one with three for masks and one with a star/horizon and vista mask.) Combining them all together I got the result I wanted. Almost. I can’t make the sun disk appear on the skydome’s surface the same way I did in UDK (which was setting the material to mlm_customlighting and making sure the skydome accepted the directional light via the lighting channels, none of the options of which I could find in unreal engine 4) I still create my sun disk in the same way, save for plugging it to custom lighting I plug it to the emissive socket. I use a dot product which I split between a cameravectorws node and a lightvector. However the engine tells me that the light vector node can only be used on light function materials. After setting the material to light function it becomes extremely bright. I don’t know what to do, I want a sun disk that follows the directional light and is projected onto my skydome.

I also understand there’s such a thing as atmospheric fog with an already modifiable sundisk. However the sundisk is blocked behind my skydome together with the rest of the atmospheric fog. So if there’s any way to integrate the atmospheric fog with the skydome, that would be awesome as well.

Thank you in advance!

dgonik

5 posts - 5 participants