this post was submitted on 24 Nov 2023
1021 points (97.8% liked)

196

16776 readers
2800 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] crystalmerchant 3 points 1 year ago (3 children)

can somebody please ELI5 ray tracing for me. Yes I have googled and am only more confused

[–] Cicraft 12 points 1 year ago (1 children)

Instead of applying filters over textures once, ray tracing literally simulates photons bouncing all over the place every single frame

[–] [email protected] 14 points 1 year ago* (last edited 1 year ago)

*Instead of developers having to use thousands of tricks, filters, shortcuts, and post-processing algorithms very carefully arranged and stacked, ray tracing simulates light waves to arrive at the same end result the same way the world actually works.

Ultimately, ray tracing will mean the vast simplification (and therefore cost reduction) of the way visuals in games are produced. Which I'd wager is why it's being pushed so hard.

[–] Pipoca 7 points 1 year ago* (last edited 1 year ago)

Basically, a scene in a game has a bunch of objects in it.

It's not to hard to just light them, but it doesn't look that good. Most games want to have shadows, reflections, that sort of thing.

The traditional approach is to use a bunch of extra manual work by pre-calculating a bunch of stuff.

Ray tracing works by simulating how physical photons bounce around in real life. It's existed for a long time; they've used it in animated movies for decades.

The issue with games is that we haven't had hardware capable of doing it in real time until quite recently.

Edit:

That is to say, if you want to animate water or a mirror with ray tracing, you know where the camera is in the scene, and you know where the water/mirror is, so you know the angle the reflection would have come from. So you bounce the photon back that way til you get to the light source.