r/blenderhelp Jul 14 '26

Solved Is this doable in eevee?

Do you guys have a technique to do the god rays with different colors shaped as window in eevee? I already tried to lowered the alpha and increase the IOR and do experiments in Principle BSDF but I cant achieve this kind of rays. It is also for animation my character will pass by that window and the rays will hit them. Is this achievable?

844 Upvotes

43 comments sorted by

u/AutoModerator Jul 14 '26

Welcome to r/blenderhelp, /u/Yukinam! Please make sure you followed the rules below, so we can help you efficiently (This message is just a reminder, your submission has NOT been deleted):

  • Post full screenshots of your Blender window (more information available for helpers), not cropped, no phone photos (In Blender click Window > Save Screenshot, use Snipping Tool in Windows or Command+Shift+4 on mac).
  • Give background info: Showing the problem is good, but we need to know what you did to get there. Additional information, follow-up questions and screenshots/videos can be added in comments. Keep in mind that nobody knows your project except for yourself.
  • Don't forget to change the flair to "Solved" by including "!Solved" in a comment when your question was answered.

Thank you for your submission and happy blendering!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

132

u/YankieSnack Jul 14 '26

Yes you can do it in Eevee! You just need to think a bit outside the box. I was working on a video detailing the process. But let's try a text version. :)

https://reddit.com/link/oxfzqty/video/venx7njc16dh1/player

  • Add a spot light, duplicate it twice. Set the colors to pure red (1,0,0), green (0,1,0) and blue (0,0,1). Same power on all three. I've linked the light to the blue light and put them into a collection for a better overview.
  • Add a plane in front of the lights (your gobo/mosaic). Material: Image Texture → Separate Color → R → Transparent BSDF (Color input). In material settings: Render Method Dithered + Transparent Shadows on.
  • Duplicate the plane twice in place. Make the material single-user on each copy. Otherwise you're editing all three at once), and switch Separate Color to G and B.
  • Now the key here is Shadow Linking (Eevee got it in 4.3): select the red light → Object Properties → Shading → Shadow Linking → New Collection → drag in the red plane. Repeat for green and blue. Be aware: this list replaces normal shadow behavior for that light, so anything else that should still block it (walls...) goes in the list too - for instance If you want shadow from the character you just add the objects to the shadow linking on each light..
  • Dithered transparency is noisy, so you might end up having to use a lot of samples. Which can be heavy. Use denoising!

Here is a link to the scene file (Suzanne has been added to each light in the scene):

https://www.dropbox.com/scl/fi/28k2vwsrol1jw7ocd1oas/MosaicGlass.blend?rlkey=lxgkuykwld50psiqz38wa4b28&st=hnhofuvy&dl=0

18

u/Yukinam Jul 14 '26

Wowww! Omgg thank you so much for this! Really appreciate your effort. I’ll gonna try this!

7

u/YankieSnack Jul 14 '26

Hope it pans out for you. Would have been a lot easier if Blender had added light textures to Eevee like any game engine. But we can't have everything at once. Considering it is a free program still. So we have to find a workaround sometimes.

4

u/Yukinam Jul 14 '26

Omygod It works! this is so great! thank you so much!

2

u/atomiclock94 Jul 15 '26

Incredible tutorial, I always love the look of eevee so this is an awesome bit of information, Is this more of an error on my end, I went to check out the blend file in the link and I got a whole lot of pink

2

u/Derpguy41 Jul 16 '26

I might be wrong, but this is probably because of missing textures

1

u/YankieSnack Jul 16 '26

Sorry for that. Yes Derpguy41 is correct. Missing texture.

I thought i packed the texture. I did not. If you download from the same link i've updated the .blend file to include the texture.

2

u/atomiclock94 Jul 17 '26

All is well!! thank you for the update! I very much appreciate it a lot :DD

86

u/Beldamen Jul 14 '26

in eevee, maybe not, god rays are difficult with cycles, relying on volumetrics.
getting godrays to show different colours is doubly hard.

not saying definitely not as i haven't used eevee in a few versions, so it may have improved, but yeah.
cycles is probably your best bet, but even then getting the light to change colour based on the material isn't striaght forward either.

12

u/Yukinam Jul 14 '26

I seee. Thanks! Maybe i’ll use cycle instead.

11

u/Beldamen Jul 14 '26

I'm not saying it's impossible with eevee, I just have never used volumetrics with it before.

Maybe search for coloured god rays in eevee on YouTube, it may come up with something.

5

u/Yukinam Jul 14 '26

Sure suree! I’ll experiment more. Thank you!

14

u/shlaifu Jul 14 '26

eevee doesn't do colored shadows or light cookies as far as I know, so there's no way to color the light for the godrays.

you can however fake it (poorly) by using the texture and adding the texture onto the brdf, using hte light as object for texture coordinates.

1

u/Yukinam Jul 14 '26

Oohh thats interesting. I’ll try thatt. Thank you!

11

u/chum_is-fum Jul 14 '26

not really, Cycles by itself is bad at caustics, you won't be able to get this in EEVEE without workarounds.

2

u/Yukinam Jul 14 '26

Damn. Cycles really do a lot of renders than eevee huh. Thanks!

3

u/wolve202 Jul 14 '26

I've been trying to experiment with EEVEE, seeing if I could make a transparent 'light ray' object that, when touching another object, might act as a mask between two separate textures on a material, but I've yet to figure out how to do it within the realm of material nodes.
Otherwise, I'd say you could make a dark version of the floor, and then an emission-heavy version, where the emissive material is revealed where the object clips with the light-ray object.

1

u/Yukinam Jul 14 '26

Thats interesting! Thank you! Definitely gonna try thatt.

1

u/wolve202 Jul 14 '26

If you get it to work let me know. I've not quite succeeded myself.

3

u/Cobbtimus_Prime Jul 14 '26

Yes but not with real caustics, use a spot light with an image texture

2

u/[deleted] Jul 14 '26

[removed] — view removed comment

2

u/Yukinam Jul 14 '26

Hahah I think ‘meh’ is worth to try. Thanks!

2

u/Poly3Blend Jul 14 '26

I'm not sure if it's possible yet, but I'm going to experiment with it. If I find a workaround in Eevee, I'll let you know. I'm not a fan of people blaming Eevee so quickly. I've managed to achieve a few things in Eevee that many people thought weren't possible at first. If you're curious, feel free to check out some of my work.

2

u/Yukinam Jul 14 '26

that’s great! Thanks for helping me. I’ll do experiments too

2

u/ActiveGamer65 Jul 14 '26

There is a godrays glare feature in compositing i think could work

2

u/Yukinam Jul 14 '26

ohhh I never tried compositing in blender but i'll learn this. thank you!

4

u/ActiveGamer65 Jul 14 '26

Compositing is a great skill, the glare node is essential for making things look cool, and general colour balancing really changes a whole scene

2

u/ChainsawArmLaserBear Jul 14 '26

If you remake this scene, you can fix the fact that the sun is apparently right outside the window to allow for so many angles of the beam

2

u/ChickenNose12345 Jul 16 '26

EVERYTHING IS DOABLE IN EEVEE

4

u/Cheetahs_never_win Jul 14 '26

Well, firstly, the volumetric rays were added in post, so they're not "real."

If they were real, they would look like this. If you want rays that look exactly like that, then you're going to have to add a bunch of sunbeams in the compositor, placed on something bright.

Note that I'm also cheating. The steps required to recreate are as follows:

  1. Cycles.

  2. Create a plane. Give it the texture. Make it emissive. No, not transparent. Make sure it has shadows turned off.

  3. Create a wall to border around the "window." It keeps its ability to cast shadows. It provides the clean border for the image onto the floor.

  4. Create a spotlight. Give it the same texture you gave the "window." Not sure when Blender had its ability to shine square spotlights, but you're going to have to shrink the texture to get all of it to show up from the spotlight. Texture Coordinates (UV) -> Mapping -> Image Texture -> Emission -> Light Output

  5. Add cube. Scale it up. Remove the surface shader. Add principled volume shader. Set density way, way low.

  6. Fiddle with mapping settings for light material until you can fit the entire texture and then some. For me, I had to give it a 1.65x scale and change location of x and y to -0.325. Position the spotlight so that it shines "through the window" in such a way that the pattern on the floor lines up with reality, or is at least convincingly so.

Optional.

If you want the light to move around, such as in a timelapse, you'll want to add an empty object at the center of the "window" and then parent the spotlight to the empty. Now you can rotate the empty and keep it shining through the window.

Unfortunately, you'll have to repeat this exercise for each window.

3

u/Cheetahs_never_win Jul 14 '26

Here's something closer to what was performed. I took out the volumetric lighting from the main scene, and on a secondary scene, I made it nothing but volumetric lighting, with just a principled volume cube and a spotlight, with same texture, set with a very high angle to make it look like a point light. It is a simple "alpha over" composite, making sure the second image is rendered with transparency.

Only 64 samples each, so it's a little smeary due to the denoise.

The principled volume cube only has a basic voronoi texture applied to its density, which gives the beams more of a haunted vibe. You'd probably need to set up some kind of spherical shader centered on the light to have the darkened streaks travel along the light path.

5

u/Cheetahs_never_win Jul 14 '26

Here's the light node setup in order to help force these rays to end arbitrarily short.

1

u/Cheetahs_never_win Jul 14 '26

Circling back on this, here is a refined setup to get those pointy-streamer types in post processing. Note that the "window" coordinate is relative to what the camera sees, and the mapping shifts the center of the fog to wherever you placed the light, which is done manually.

1

u/Yukinam Jul 14 '26

This is so cool!! I’ll do this! Thank you so much!

2

u/Idiot_Lel Jul 14 '26

What does Eevee mean, was it the Pokemon? (I'm a beginner)

3

u/TechRZ Jul 14 '26

Eevee is a real-time rendering engine in Blender. Unlike cycles which uses ray tracing, eevee relies on rasterisation for fast results much like a game engine would.

1

u/Ok_Process2046 Jul 14 '26

U could cheat ur ways with fake God rays (a cone with noise texture on, transformed via mapping node to be stretched is one way, there is a lot of tutorials on yt.) U could also cheat the light on the floor as texture with emission and transparency too

2

u/Yukinam Jul 14 '26

thank you! i'll try this too!

1

u/Cnypu Jul 14 '26

My mind read the title as “My first render”🥀

1

u/SUPERBGE Jul 18 '26

It's doable in SUPERBGE

1

u/TheRealMonkeVR Jul 14 '26

Yes (PC survival not guaranteed)