Quick question I’ve been getting mixed responses on. Can UE4 render coloured translucent shadows based on the image they pass through? An example of what I mean is direct light through a stained glass window. I’ve read that the transmission material option was removed in UE4 as it was present in UDK, a feature which I used a lot for architectural renderings. However I found this article that says it should work. (about halfway down the page)
If it can work, how do I set my material to transmit this colour without having to use a light function on 3 spotlights with 3 textures for RGB? Decals will not work for what I’m trying to do either.
It does work in UE4, but only from a light whose Mobility is set to Static. Stationary lights don’t support it and that’s the default light Mobility. Note that it’s under ‘Features for Static Lights Only’ in the UE4 Lightmass doc. The same was true for UE3 but the doc didn’t reflect it.
Awesome! I’ll give that a shot. I do have 2 moving doors in the scene, so to light them i should just put a couple dynamic lights which only cast on them?
As a reminder, this effect can ONLY be achieved with static lighting. There may be a way to fake it with RGB light functions, but I’ve not tested that yet. And even if that is possibly it will only be Full Red, Green, or Blue for the color values.
Hi, I’ve tried to get the colored shadow, but I keep getting a grayscale shadow. There might be some very faint traces of pink in the shadow but not as strong as suggested. The left material on the image is actualy a lit transparent material. But according to CPU Lightmass Global Illumination | Unreal Engine Documentation
it should take the basecolor linearly interpolated with white by alpha, but no luck. Has anyone gotten this to work properly?
It may be a little difficult to see, but if you open the image in a new tab you’ll see it at full resolution and you can see their is color transmission.
One thing to make sure in your scene though is that you are using ONLY STATIC LIGHTING. Transmission will not work with Stationary or Movable.
I have the “pinky material” which does its own modulate calculation in translucent mode and this works perfectly! So there is no technical reason why this should not be possible.
2. Blend mode additive: Works (See left amethyste material in
added screenshot).
3. Blend mode translucent: Very poor. You hardly see any colored shadows regardless wether you set opacity to low or high. Still seems there is something wrong with it.EDIT: CORRECTION: seems it works though. I had two light sources at the same position. One stationary and one static. I needed the stationary, because without it the tricked reflection effect did not work (was just static. this is still a bug in my opinion). Setting the stationary lights to 1/100th of its intensity showed the effect as on the left material of screenshot 2. I could exaggerate the effect by multiplying the base color by 10. that’s what you see in the right material of screenshot 2.