How does ray tracing produce hyper realistic graphics? | Bitwise

Поділитися
Вставка
  • Опубліковано 28 гру 2024

КОМЕНТАРІ •

  • @RakastanPorkkanakakkua
    @RakastanPorkkanakakkua 3 роки тому +148

    Honestly, learning that ray tracing can simulate sound waves was what really struck a chord in me.

    • @REALsandwitchlotter
      @REALsandwitchlotter 3 роки тому +2

      BOOM…BOOM!! (Excuse the “basil brush the seventies fox puppet” reference:)

    • @StigDesign
      @StigDesign 2 роки тому +2

      Yes you can think of it like that too, and its more easy to try in real life, Play music in one room and you go to another room and listen, close the door and hear difference :D

  • @SplitScreamOFFICIAL
    @SplitScreamOFFICIAL 3 роки тому +101

    "He's Back!"
    -I'm sponsored by Raid Shadow Leg-
    "but at what cost"

    • @bigpencil6032
      @bigpencil6032 3 роки тому +13

      He's back + he gets more money, there is no negative points

    • @cavemann_
      @cavemann_ 3 роки тому +9

      @@bigpencil6032 Promoting a mobile gambling game is definitely a negative point. Ok it's not true gambling, but it's scummy asf

    • @bigpencil6032
      @bigpencil6032 3 роки тому +6

      @@cavemann_ I personally don't care about the promotions in the videos I just skip them especially when it's raid shadow legends

  • @zyansheep
    @zyansheep 3 роки тому +124

    He finally remembered his youtube password...

    • @Thebreak1
      @Thebreak1 3 роки тому +1

      Raid shadow legends is finall happy a year later xD

  • @Ashona
    @Ashona 3 роки тому +61

    Will I ever use this information? Probably not. Will I still watch the entire video because Digi made it? Yeah

  • @Cypeq
    @Cypeq 3 роки тому +52

    Funny enough we've had raytraced audio over a decade ago, with creative EAX 3 and it sounded so much better... games that fully supported it were quite spectacular sounding, audio source positioning was very accurate, unlike nowadays. It's weird that hardware audio acceleration died like it did.

    • @ThylineTheGay
      @ThylineTheGay 3 роки тому +7

      yeahh, it's dissapointing that things like that and physics arent as popular

    • @carl8790
      @carl8790 3 роки тому +14

      I think it has to do with people not liking the idea in buying another hardware to just do one specify task, when there are many inexpensive solutions. Like, it makes sense if your job requires it, but for the average gamer, it's not.
      This is why Nvidia integrated their Raytracing accelerated hardware with their GPU. If they had sold it separately, it would have been a very difficult sell to gamers.

  • @Corruptgore
    @Corruptgore 2 роки тому +5

    really love these types of developer commentaries, explaining and figuring out how things work, amazing work

  • @zxuiji
    @zxuiji 3 роки тому +28

    Now this was a truly useful episode for me, however there IS way to let the ray go "infinitely", if you record the limits of the scene boundaries - so for example if the furthest x point is 100.0 & -100.0 respectively - and split the scene into boxes (where you can then use the old 2d ray trace method of roughly "if ( rx >= ry ) rx += inc; else ry += inc;") you can then cut off any ray the moment it's rx value goes outside those scene boundaries for the x-axis because at that point you know for sure nothing can be seen beyond that point, this can be further sped up but splitting each scene into sub scenes that are not absolutely positioned but placed at an offset from 0.0 based on how far from the focused sub scene it the sub scene is (e.g. frontScene->z = activeScene->layer - frontSceneA->layer), this gives you a fixed distance based on how many front sub scenes are drawn in the first place, the over arching scene will always be drawn at low poly and unobstructed light state, this will never be noticed because the sub scenes in front of the active scene will hide any low poly stuff. I'm in the middle of learning OpenGL atm so when I've progressed enough to start drawing full on scenes and not just few triangles with a texture here and there I will programme an actual example of what I mean.

    • @zxuiji
      @zxuiji 3 роки тому +1

      @Doctor Zoidenberg I already have rough math for it, I just need to finish building an environment to refine it in since trying to do so with a pen & paper ain't happening

    • @4P5MC
      @4P5MC 3 роки тому

      I'm a bit late to the discussion, but what would happen in the case of two perfectly reflective surfaces facing each other? Would the ray infinitely bounce since there's no end condition?

    • @zxuiji
      @zxuiji 3 роки тому +2

      @@4P5MC no, that's what the scene boundaries are for, if the ray get's longer than the difference between it's emition/bounce point and the scene boundaries then you simply stop the loop as it's impossible for it to hit any stored objects at that point

    • @4P5MC
      @4P5MC 3 роки тому +2

      @@zxuiji Ooh, I get it now!

    • @zxuiji
      @zxuiji 3 роки тому +2

      @@4P5MC I should point out that using the difference between the emition/bounce point is actually the slower method of cutting off the ray loop, the faster method is to first put it's angle in normalisation territory relative to the scene and then work out which corner it's facing, after that you simply take part of the scene's total height & width (so offset everying so there are no negatives including the start point of the ray), minus the ray starting point from the part you took, multiply the normalised angle x/y values against those parts and you'll have the max distance the ray can travel in any dimension, much faster than square root, albeit more complicated

  • @straydrop411
    @straydrop411 2 роки тому +4

    Best ray tracing explanation video ever. I have watched this from Japan🌸 but nothing more concrete order and more proper choice of words plus pictures like this.
    I hope more people would watch this then can easily comprehend the latest graphics technology. 😃 ( cheering for you🥇

  • @Tomyb15
    @Tomyb15 3 роки тому +10

    Raytracing for sound (or just some for of holophonic sound) is something I've always been asking for in games. While graphics have kept improving at an incredible rate, sound has mostly remained the same for many years. The most I get out of stereo sound with headphones is to be able to tell that something is to my right or left and gauge the distance from the volume. It really breaks all immersion for me. And it's not like you need one ray for each pixel when it comes to sound, because there are no pixels!
    There is something to that end from dolby, but it completely proprietary and expensive and almost no games use it. What I want is good 3d sound to be standard and expected in 3d games, not an expensive gimmick.

    • @davidmurphy563
      @davidmurphy563 3 роки тому +2

      You can technically use ray casting (not ray tracing, that's impossible, fragment shaders operate on a wavefront and don't return data, that's what makes them so quick) for a super basic implementation but bouncing ray casts off collision meshes looking for the sound origin is prohibitively expensive for very little gain. The usual hack is to use the path finding your NPCs are using. That way you stop noise coming through walls but let it go through doors. Calculating stereo from that is easy enough. Whether you'll ship a single extra unit from going to the effort is another question and this all costs dev time and fps.

    • @kapilbusawah7169
      @kapilbusawah7169 3 роки тому +2

      The PS5 has a dedicated sound module for exactly sound engineers in game. The work that little processor does for example would require the entire power of the PS4 to "render"

    • @gabrielandy9272
      @gabrielandy9272 3 роки тому

      not all games keep technology of sound the same, Source engine (valve games) distort sounds based on the materials it travel trough..... it don't simulate then with ray tracing its acctualy just a straight line from source sound to player, but any material it hits in the path the sound get applied a distortion effect based if its wood metal etc.... cs go is already using this.. VALVE is as company that have amazing sound in games anyway.... some of its games even used dynamic generated music very early.
      play any valve game with a good headphone and you will notice that its quality is way above many other games...

  • @wills_turtles
    @wills_turtles 3 роки тому +8

    Good video, but misses a bit of the explanation. See the premier comments about people misunderstanding about how many rays are emitted from rough surfaces.

  • @Neph0
    @Neph0 3 роки тому +9

    Love the fact that you chose footage of sheep herding while promoting Raid

  • @miscu2542
    @miscu2542 3 роки тому +4

    Awesome video as your previous ones!! Thanks a lot for spreading all this knowledge in a so clear way!

  • @ReBufff
    @ReBufff 3 роки тому +3

    Very informative and entertaining, hopes to more videos soon!

  • @nitro99x
    @nitro99x 3 роки тому

    Always great to see a new video. I personally don't really who you're sponsored by, as long as it doesn't effect the videos content. 👍🏼

  • @quentinmcwimberton6797
    @quentinmcwimberton6797 3 роки тому +6

    Sponsored by Ray: Tracing Legends

  • @yuriterra1
    @yuriterra1 3 роки тому

    Really good video :D
    I love watching your channel

  • @Komplexitet
    @Komplexitet 3 роки тому

    The youtube compression system did not like this video xD especially around 14:00 haha. Love the vid!

    • @bernardo-x5n
      @bernardo-x5n 2 роки тому +2

      It is a flaw of the ray tracing algorithm they decided to use in this scene. He said the scene becomes grainy if you move around because it takes a while for the averages to cancel each other out.

  • @eboatwright_
    @eboatwright_ 3 роки тому

    I love this channel :) Thanks for making great videos!

  • @XD-zg6ii
    @XD-zg6ii 3 роки тому +1

    I see what you “numbered” in BVH but anyway thank you for this knowledge

  • @Hyphen3372
    @Hyphen3372 3 роки тому +1

    ayy new upload.

  • @justinbuergi9867
    @justinbuergi9867 3 роки тому

    Well this is convenient
    I’m learning about Ray tracing in class this week

  • @kepler1175
    @kepler1175 3 роки тому

    Havent seen.. er, heard it applied with sound before to my knowledge. Really cool

  • @D.S69
    @D.S69 2 роки тому +1

    I think that as long as something is fun that's all that matters

  • @guts2048
    @guts2048 3 роки тому +2

    Why does the description of raid always look the same do they just copy and paste it?

    • @NICK....
      @NICK.... 3 роки тому +3

      Because it essentially is, mobile ads have ridiculously strict ad reads

    • @guts2048
      @guts2048 3 роки тому +1

      @@NICK.... bruh

  • @drinkwatrr9883
    @drinkwatrr9883 3 роки тому

    We missed you Digi

  • @REALsandwitchlotter
    @REALsandwitchlotter 3 роки тому +1

    This is good thanks

  • @anbu5667
    @anbu5667 3 роки тому

    your channel is insane

  • @necronull3767
    @necronull3767 3 роки тому +1

    I love your content man, always a pleasure to see you upload

  • @stredo6683
    @stredo6683 3 роки тому +1

    i love your videos, keep it up o/

  • @vokonmusic
    @vokonmusic 3 роки тому +2

    I love this channel :)

  • @freezinfire
    @freezinfire 3 роки тому +1

    Finally you've made this, I waited so long

  • @fazeelicopter8988
    @fazeelicopter8988 3 роки тому +1

    The return of the king

  • @nikaknigde5104
    @nikaknigde5104 3 роки тому +1

    Feels a lackage of Vsause music in the background :D

  • @stig6339
    @stig6339 2 роки тому

    According to the thumbnail ray tracing is so powerful it can change clothing on Herald

  • @ZimmervisionCZ
    @ZimmervisionCZ 3 роки тому

    Wait, do you know where that tech demo for the audio ray tracing comes from? To my eye, that looked a LOT like an upper floor of Angell Hall at the University of Michigan

  • @Lukegear
    @Lukegear 3 роки тому +1

    Nice!

  • @cylexx
    @cylexx 3 роки тому

    the king is back

  • @biaxthepanda
    @biaxthepanda 3 роки тому

    I just came across to this channel after wondering how portals in the game portal works. As a gamedev i would definetly would like to see more of the "How ..." videos. Geep up the good work!!

  • @madness_lab
    @madness_lab 3 роки тому

    2 videos in a year? youre on fire dude 😎😎👌👌

  • @jumbledfox2098
    @jumbledfox2098 3 роки тому +2

    Next video:
    How to put out a burning GPU | Bitwise

  • @matrix9452
    @matrix9452 3 роки тому +1

    Nice

  • @BloodAssassin
    @BloodAssassin 2 роки тому

    Next video in a couple of months?

  • @realdonutking123
    @realdonutking123 2 роки тому

    15:02 oh my GOD i thought someone was in my house

  • @Theraot
    @Theraot 3 роки тому

    11:50 #RealisticPerfectMirrorReflectionAngle

  • @Helloyunho
    @Helloyunho 3 роки тому +1

    he’s back: panik
    it’s about ray tracing: panik
    sponsored by raid shadow legend: *PANIK*

  • @mranxiety9995
    @mranxiety9995 3 роки тому

    Always love a new video. Ive missed ur accent

  • @SimonLedoux
    @SimonLedoux 3 роки тому +2

    I love cats

  • @joltedjon
    @joltedjon 3 роки тому +1

    9:07 lmao the areas

  • @BloxXor
    @BloxXor 3 роки тому

    tell me about terraria

  • @Zweemanuel
    @Zweemanuel 3 роки тому +1

    9:08 Nice

  • @-o-1695
    @-o-1695 3 роки тому

    Mf at google is still holding out on quantum computer techs. Imagine the good things we could have

  • @Phytom
    @Phytom Рік тому

    Ray tracing is when you loose 50 FPS for smoother shadow edges.

  • @CirqueAlvis
    @CirqueAlvis 2 роки тому

    9:10 hehe 420 69

  • @handledav
    @handledav Рік тому +1

    so

  • @konkelberryfinn
    @konkelberryfinn 2 роки тому

    A: 420 and A: 69

  • @sehaless
    @sehaless 3 роки тому +4

    Great content, but that sponsor... >.

  • @fxarachnid4764
    @fxarachnid4764 2 роки тому

    What if there was raytracing with quantum physics taken into account? Actually, no, please don't make that (but maybe do though).

  • @gigigigiotto1673
    @gigigigiotto1673 3 роки тому

    i don't think your definition of roughness is correct

  • @QiotiCoyote
    @QiotiCoyote 3 роки тому

    you GOTTA either mute video game footage you show while you're talking, or have minimal sound effects like walking only, on low volume
    otherwise it's so hard to pay attention or even hear what you're saying
    it's fine having a video, it's even nice to be able to watch something while you're talking
    and having just footsteps barely hear able kind of fades into the background and doesn't take away from your voice
    but anything that's outside a rhythm, like combat or voices, dialogue, or music, or even anything where there main focus is to read as in non voiced dialogue can all take focus away from what you're saying

  • @davidmurphy563
    @davidmurphy563 3 роки тому +2

    I mean, you discussed ray tracing without using the word "vector"... Ok. No matrices being multiplied either. No basis and origin clearly. No dot or cross products. No normalisation. No UV. No fragment shader. No vertices with no indexes and no normals.
    I dunno. It's kinda like promising to explain how a grandfather clock works and having no mention of cogs. No hands, no pendulum, no springs, you get the idea... All you really described were a few optimisation tricks.
    Maybe change the title to "some optimisation tricks used in ray tracing".

    • @quentinmcwimberton6797
      @quentinmcwimberton6797 3 роки тому

      Isn't the point of these videos to go in-depth into programming concepts and what they are, but in Laymen's terms? Vectors, matrixes and the likes are all easily googleable if you wanna calculate shit with them yourself, this video more shows what ray tracing is and what it does.

    • @davidmurphy563
      @davidmurphy563 3 роки тому +4

      @@quentinmcwimberton6797 Teaching how to do the calculations is obviously impractical. Khan Academy has over a 140 videos laying the groundwork.
      But this vid is bizarre, it goes from the most basic explanation possible (a ray is bounced from the camera to the light source) to some pretty irrelevant trivia regarding optimisation that has next to nothing to do with the fundamentals and are just work arounds to hardware bottlenecks.
      Say you were explaining how an ICE works, your explanation is "you put fuel in, spark goes boom which turns a crack pushing car forward" and then going on to explain why an overhead cam is used instead of pushrods. This is equally weird.
      The explanation is trivial to the extent of being what you would give to your drunk uncle in the pub followed by some weird detail.
      But really, I'm not saying the vid is terrible, only that the title should have been different.

  • @andrewwagner942
    @andrewwagner942 Рік тому

    Stop making dirt shiny

  • @a_grin_without_a_cat
    @a_grin_without_a_cat 3 роки тому +1

    Sound mastering at the end is fuuuuuucking horrible, I guess I can bet that I haven't heard worse shit like this ever :)

  • @fatfingersman
    @fatfingersman 3 роки тому +5

    ok, but now tell me how magnets work..

    • @freezinfire
      @freezinfire 3 роки тому +6

      do you know quantum spin? Magnets are basically just conducting metals having their electrons with same spin stuck at one side of the atom making static electricity making magnetic fields. that's basically the gist of it.
      in other words, oonga boonga magic