What is Ray Tracing?

Поділитися
Вставка
  • Опубліковано 6 вер 2018
  • Sign up for Private Internet Access VPN at www.privateinternetaccess.com...
    Ray tracing has made headlines lately as the rendering method of the future for games - but what exactly is it, and how can it make your games look more realistic?
    Techquickie Merch Store: www.designbyhumans.com/shop/L...
    Techquickie Movie Poster: shop.crowdmade.com/collection...
    Follow: / linustech
    Leave a reply with your requests for future episodes, or tweet them here: / jmart604
    Join the community: linustechtips.com
    Intro Theme: Showdown by F.O.O.L from Monstercat - Best of 2016
    Video Link: • Monstercat - Best of 2...
    iTunes Download Link: itunes.apple.com/us/album/mon...
    Listen on Spotify: open.spotify.com/album/5Zt1P3...
  • Наука та технологія

КОМЕНТАРІ • 1,6 тис.

  • @LeoCoot
    @LeoCoot 5 років тому +598

    they said it's easy for game developers to use RT you can just throw it in there, if that's true i just need one thing, RT for older games, New Vegas will be a good start.

    • @waynepayne9875
      @waynepayne9875 3 роки тому +18

      GTA 4 raytraced would be gorgeous

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

      @@waynepayne9875 ua-cam.com/video/Uo7nu4fSWpA/v-deo.html
      even better... gta 5, it's like 4 but with gameplay and (characters?)

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

      @@waynepayne9875 but for real, this shit is pretty mindblowing albeit raw and messy as a throw in without currating the environment... still, looks better with than without, and that says something...

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

      @Tyler Russell I'm pretty sure they have Ray tracing for resident evil 2 in the sweet effects mod, or excuse me reshade or whatever the hell it is now the All MOD...
      I guess the real question is when is Adobe going to buy it reshade and add it as a plugin for Photoshop...

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

      @Tyler Russell what differentiates between whether it uses the RT cores or the regular processing? I mean theoretically you could configure it to use those cores right or is that something that only Nvidia does? cuz that would be an annoying licensing issue in general

  • @FizzleFX
    @FizzleFX 5 років тому +2814

    *you get a friend named Ray* ... and then follow him without knowing

    • @maj113
      @maj113 5 років тому +6

      Lol 😆

    • @W1zardRyan
      @W1zardRyan 5 років тому +7

      That profile pic 😎👌

    • @ninjasiren
      @ninjasiren 5 років тому +53

      Not just follow him, also trace him as well.

    • @FizzleFX
      @FizzleFX 5 років тому +2

      @@W1zardRyan , i link it to you, tomorrow... ;3

    • @W1zardRyan
      @W1zardRyan 5 років тому

      @@FizzleFXheheh thx homie

  • @abdur-raheem5316
    @abdur-raheem5316 5 років тому +547

    What is Ray Tracing?
    Me: *Expensive*

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

      ARJ for know!! GIVE IT TIME BRO!!

    • @retrodragon2249
      @retrodragon2249 4 роки тому +5

      It's only expensive if you want it real time
      My computer's 12 yrs old and I've done quite a few ray-traced 3D renders.

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

      Haha gpu money huhuhuhu

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

      @@retrodragon2249 Ah that's so old- I ray trace with my CPU
      oops I path trace with my CPU

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

      One-Year Later: Sold out every where

  • @TechRide.
    @TechRide. 5 років тому +2202

    "Just buy it" - Tom's Hardware

    • @cyrenarkade
      @cyrenarkade 5 років тому +101

      "NO" - Gamers Nexus

    • @nickpickerwi7787
      @nickpickerwi7787 5 років тому +69

      "NO" - Tom, THE Tom, formerly of Tom's Hardware.

    • @guyincognito566
      @guyincognito566 5 років тому +73

      "It JuST WorKs" - Nvidia.

    • @shirshanyaroy287
      @shirshanyaroy287 5 років тому +15

      "NO..speaking of which, why didn't you guys use the benchmark results for AMD graphics cards that I sent you?" - Igor of Tom's Hardware Germany.

    • @No-bb1jq
      @No-bb1jq 5 років тому

      4Head

  • @visibleconfusion9894
    @visibleconfusion9894 5 років тому +681

    But i am in a dark room with no lights on

  • @rei_2645
    @rei_2645 5 років тому +635

    You mean Wallet Tracing?

  • @mal4797
    @mal4797 5 років тому +2065

    Graphic keeps getting better and better while the physics are still bad

    • @strohhuttv8848
      @strohhuttv8848 5 років тому +75

      Yes and no. If u for example walk on grass the grass moves with u same for high winds or for example if u swim or u jump to water u see the psychics of moving water. I don't think the problem is the psychics is. More likely the graphic is almost on the limit now is only one step over that and this is real life footage graphic that the graphic looks so realistic that u can't see a difference between for example rocks in game and rocks in real world...

    • @Trackrace29582
      @Trackrace29582 5 років тому +121

      Depends on the engine the game uses

    • @radumirceabunica7492
      @radumirceabunica7492 5 років тому +18

      ​u need to see that new unreal engine destruction demo

    • @kvmairforce
      @kvmairforce 5 років тому +74

      Play a game a 15-year old game and tell my physics aren't 10x better at least.

    • @josephnichols2064
      @josephnichols2064 5 років тому +4

      check out project Borealis, the physics are great!

  • @rohitbankar7579
    @rohitbankar7579 5 років тому +1958

    how about games with no dlc and good storyline rather than having a super reflective spoon

    • @Fergesslich
      @Fergesslich 5 років тому +259

      What about both?!

    • @svd355
      @svd355 5 років тому +265

      Who doesn't love a super reflective spoon?

    • @ValentineC137
      @ValentineC137 5 років тому +152

      There is no spoon..

    • @flameshana9
      @flameshana9 5 років тому +91

      No wait guys, I found it! 🥄

    • @KindlingEffect
      @KindlingEffect 5 років тому +36

      NVidia doesn't create games. And no company, that's actually creating games, is making super-reflective spoons.

  • @fayce7717
    @fayce7717 5 років тому +2191

    I'm here because of ray traced minecraft videos

  • @TheRealBleach
    @TheRealBleach 5 років тому +98

    Thanks for making this video. I was confused on the topic

    • @rolan5948
      @rolan5948 5 років тому +2

      It’ll probably be one of the greatest things to happen in gaming but it’s just not ready yet and anything under a 2080ti imo will be useless

  • @franticskunk2461
    @franticskunk2461 4 роки тому +108

    UA-cam is getting really brave now with these double ads

    • @prairiewolfedogg
      @prairiewolfedogg 4 роки тому

      Sort of makes you wanna fro' up, don't it?

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

      I close the video back to back and it eventually fks off

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

      @@yolocholo9611 thats exactly wat i do but shit it be popping up 10 times sometimes and the way u said " it eventually fucks off"😂

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

      Yeah sucks

  • @WADEY216
    @WADEY216 5 років тому +393

    2018:
    Nidia & AMD: Raytacing!!!
    Game Devs: BattleF13ld V!
    2019:
    Nvidia: RTX 2080ti!!!!
    Game Devs: Minecraft!!!!

    • @fgvcosmic6752
      @fgvcosmic6752 5 років тому +18

      This is why I’m here

    • @solarstrike33
      @solarstrike33 4 роки тому

      And also Quake II!

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

      2020-
      Nvidia: RTX 3090 Ti
      Devs: Minecraft RTX at 8K 60fps

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

      Quake Quake going in to attack

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

      Is ray tracing in MicroSoft Paint possible?
      ua-cam.com/video/vo9ztLY34n0/v-deo.html

  • @allansh828
    @allansh828 5 років тому +210

    Would you make video about NV-Link as well?

    • @andrubernardo3436
      @andrubernardo3436 5 років тому +1

      I second this

    • @nextlifeonearth
      @nextlifeonearth 5 років тому +1

      Maybe they should only once consumers can get it. They haven't even tested it yet at LMG.

    • @Bobcat665
      @Bobcat665 5 років тому

      Oh, please do, Linus!

  • @JacopoMTK
    @JacopoMTK 5 років тому +26

    Could've been good to also add a frame where the ray bounces from an object to another object,and then to a light source, to show that it's not just a camera->1 obj bounce->light kind of thing. But overall, straightforward explanation.

  • @ly_is_music
    @ly_is_music 5 років тому +187

    Funny how u show Minecraft as an example of no ray tracing but now we have ray tracing in Minecraft lol

    • @hystericallover5989
      @hystericallover5989 5 років тому +1

      Mathias Gaming ua-cam.com/video/lg5mjKD034w/v-deo.html

    • @ethanclark9565
      @ethanclark9565 5 років тому +2

      actually u dont, u just have path tracing

    • @Gr8humanilation9TV
      @Gr8humanilation9TV 5 років тому +5

      @@ethanclark9565 No it doesn't.

    • @ArmandoHernandez-ch4ul
      @ArmandoHernandez-ch4ul 4 роки тому

      Gr8humanilation9TV it does now

    • @God-ch8lq
      @God-ch8lq 4 роки тому +6

      @@ethanclark9565 path tracing is just glorified ray tracing (rays bounce of objects instead of returning immediately)

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

    Very interesting, Linus, thanks for explaining that! I've been hearing the term for years, wondering what it meant, thinking about looking it up someday and then always forgetting or never getting around to it, and this video explains it pretty well!

  • @NathanJohnson1999
    @NathanJohnson1999 5 років тому +149

    2018: Why are we Tracing Ray?
    2020: PS5- I FOUND RAY!

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

      Xbox Scarlett tho

    • @MyDbzfan9000
      @MyDbzfan9000 4 роки тому +1

      @@samuelaurora3632 yuck

    • @samuelaurora3632
      @samuelaurora3632 4 роки тому

      MyDbzfan9000 I know I’m ugly but f you man

    • @SAMISHUKRI
      @SAMISHUKRI 4 роки тому +1

      @@MyDbzfan9000 guess what? xbox series x is more powerful than ps5 so hell yeah

    • @bonedoggle
      @bonedoggle 4 роки тому

      nintendo boys

  • @jackshi9500
    @jackshi9500 5 років тому +9

    The old method is not necessarily just rasterization. It is a part of the vision pipeline (often the end). You would write a lighting model for your object. This result in bad shadow, reflection and refraction (although techniques such as shadow mapping does work to a degree).

  • @veobro1456
    @veobro1456 5 років тому +136

    Tay racing?

  • @NickMig
    @NickMig 5 років тому +1

    love this channel so far! super useful and cool info in not a lot of time! well done

  • @soejrd24978
    @soejrd24978 5 років тому +158

    As a Blender Cyclic user, I love ray tracing

    • @NotHugs
      @NotHugs 5 років тому +25

      Cycles*

    • @whydoineedausername1386
      @whydoineedausername1386 5 років тому +6

      Cycles isn't raytracing. Classic Blender internal is raytracing. Cycles it pathtracing. The difference is that rays bounce in path tracing, they just end when you hit something in raytracing

    • @philmsproduction
      @philmsproduction 5 років тому +35

      I would say path tracing is also a form of raytracing. It's just a far more sophisticated, realistic and expensive form of ray tracing than for example primitive whitted style raytracing. The main difference is that in pathtracing we trace a much higher number of rays.

    • @jm27232
      @jm27232 5 років тому +10

      Correct, path tracing counts under ray tracing.

    • @fleshTH
      @fleshTH 5 років тому +4

      Have you used EEvee yet?

  • @kurisu7885
    @kurisu7885 2 роки тому +17

    I just got an RTX capable graphics card after my old RX 580 started to die, and, it's freakin amazing.

  • @ibsn87
    @ibsn87 5 років тому +3

    I love how he just slides in his advertisements, gets me every time.

  • @MrCasatony
    @MrCasatony 5 років тому +245

    who else knows "a lot" about ray tracing but still clicked on the video because its linus

    • @frosty9392
      @frosty9392 5 років тому +63

      no matter how much you think you know, there is always more to learn. Even from simplified sources
      brains love to trick themselves into thinking they are perfect and all knowing

    • @unlokia
      @unlokia 5 років тому +3

      NEVER use quotation marks for *_emphasis_*

    • @frosty9392
      @frosty9392 5 років тому +8

      you're not my "real" mom!

    • @9yearoldepicgamersoldier129
      @9yearoldepicgamersoldier129 5 років тому +1

      @@frosty9392 100% true

    • @josephnichols2064
      @josephnichols2064 5 років тому

      me

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

    Below are two functions from my own code that showcases what raytracing can be in a basic way...the test is going to fire a ray from mouse and trace it to check if it collides with a triangle.Note: Raytracing for rendering involves firing not from the mouse but camera or other places - Millions of them.
    //// TRIANGLE INTERSECTION FUNCTION: (This is the test we want to run for every triangle in the scene)
    glm::vec3 PlaneN = glm::triangleNormal(v0, v1, v2); // uncertain if normal is rotated?
    glm::vec3 RayDirection = RayEnd - RayStart;
    RayDirection = glm::normalize(RayDirection);
    //// backface check
    //float loldot = glm::dot(RayDirection, PlaneN);
    //if (loldot > 0) {return false;}
    glm::vec3 PlanePointToRayStart = v0 - glm::vec3(RayStart);
    // PLANE EQUATION
    float t = glm::dot(PlanePointToRayStart, PlaneN) / glm::dot(RayDirection, PlaneN);
    HitReturn = glm::vec3(RayStart) + RayDirection * t;
    // compute triangle intersection
    glm::vec3 C;
    // edge 0
    glm::vec3 edge0 = v1 - v0;
    glm::vec3 InterToV0 = HitReturn - v0;
    C = glm::cross(edge0, InterToV0);
    float LeftEdgeDot = glm::dot(PlaneN, C);
    if (LeftEdgeDot < 0) { return false; }
    // edge 1
    glm::vec3 edge1 = v2 - v1;
    glm::vec3 InterToV1 = HitReturn - v1;
    C = glm::cross(edge1, InterToV1);
    float BottomEdgeDot = glm::dot(PlaneN, C);
    if (BottomEdgeDot < 0) { return false; }
    // edge 2
    glm::vec3 edge2 = v0 - v2;
    glm::vec3 InterToV2 = HitReturn - v2;
    C = glm::cross(edge2, InterToV2);
    float DiagonalEdgeDot = glm::dot(PlaneN, C);
    if (DiagonalEdgeDot < 0) { return false; }
    ///// THE LOOP: (below is the loop, it goes through all the triangles in scene and does the above test to see if there is a collision):
    for (auto &T : GL.TRIANGLES) { Triangle_Intersection(T, DistanceToHit); }

  • @pororotrr
    @pororotrr 3 роки тому +18

    2019: Ray Tracing
    2020: Contact Tracing.. lol

  • @kstricl
    @kstricl 5 років тому +9

    Once the api is taken fully advantage of, 3d rendering software is going to see a massive jump in rendering performance. I would think game developers may want to only use the technology to enhance specific parts of the game for now, while leaving the actual play rasterized for performance. Only time will tell.

  • @tonyv6815
    @tonyv6815 5 років тому +15

    Come on guys, it's Ray tracing. It just works

  • @rhoharane
    @rhoharane 5 років тому +209

    Jiggarays. JUST BUY IT

  • @tomberberich7700
    @tomberberich7700 5 років тому +33

    Linus, WHERE ARE THE CAT TIPS

    • @KangJangkrik
      @KangJangkrik 5 років тому

      His cats are died

    • @tomerbaraban66
      @tomerbaraban66 5 років тому +13

      Really? What color did he die them? Why would anyone die their cat anyway? seems weird

    • @KangJangkrik
      @KangJangkrik 5 років тому

      Some of elder cats, i'm forgot which one

    • @tomerbaraban66
      @tomerbaraban66 5 років тому +6

      @@KangJangkrik Not sure if you are pretending to be able to speak English and you can't, or you're pretending you can't speak English and you can

  • @nicfit23
    @nicfit23 5 років тому

    One of the best yet

  • @JukeyPlays
    @JukeyPlays 5 років тому +2

    Thank you so much for explaining Linus

  • @boah1668
    @boah1668 5 років тому +23

    Playstation 5 details officially came and they say it has a "Ray tracing".

    • @toasthead
      @toasthead 5 років тому +16

      At the same time some guy named ray is getting paranoid because he swears he is seeing people following him

    • @axelkyamilov6272
      @axelkyamilov6272 5 років тому +4

      @@toasthead Shut the fuck up

  • @bibasik7
    @bibasik7 5 років тому +342

    In America, you trace ray.
    In Soviet Russia, ray trace YOU!

    • @Riquelme4232
      @Riquelme4232 5 років тому +13

      @ARCH - FX maybe because we're not in 2011 anymore

    • @TheFreshPeddler
      @TheFreshPeddler 5 років тому +4

      You win
      For worst use of tired old joke.

    • @hayaokakizaki4463
      @hayaokakizaki4463 5 років тому +8

      @@Riquelme4232 >2011
      I guess we all know when you started browsing the internet.

    • @quarryspanish
      @quarryspanish 5 років тому

      Dead meme.

    • @lennywhere
      @lennywhere 5 років тому +1

      God this joke is so dead and bad

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

    Pulseway is the only ad I see when I see any video of techquickie...... But ngl I love it.

  • @wtfsalt
    @wtfsalt 5 років тому +1

    one of the better explanations of raytracing. nice vid 💪

  • @ocalyy
    @ocalyy 5 років тому +7

    I cracked nvidia's system guys
    (( Real Time x Ray Tracing) x $1040) + ti =
    (RT x 2 x 1040) + ti =
    RT x 2080 +ti =
    RTX 2080ti

  • @uss_04
    @uss_04 5 років тому +10

    Its the thing that your 4th grade teacher made you do with a straight edge and an arrow.

  • @bigad23
    @bigad23 5 років тому +1

    Well made video. Thank you for keeping it to about 5minutes.

  • @rayansattarkhan6807
    @rayansattarkhan6807 4 роки тому +1

    Thank you for this much simple and easy explanation.

  • @sionmarak1916
    @sionmarak1916 5 років тому +54

    Minecraft is the most realistic graphics game I ever played.

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

      Same
      But it's the ONLY graphics game I've played

  • @KingOfTheBeyond23
    @KingOfTheBeyond23 5 років тому +12

    Yeah but I kinda need the mathematical logic behind this to program it in a framework.

    • @I25mI25
      @I25mI25 5 років тому +4

      One of the first papers (if not the first) about ray tracing has formulas for it: citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.156.1534 . But there might be improved formulas or already existing libraries/frameworks out there.

    • @Cepheid_
      @Cepheid_ 5 років тому

      Take a physics class in optics

    • @dixie_rekd9601
      @dixie_rekd9601 5 років тому +2

      ua-cam.com/video/frLwRLS_ZR0/v-deo.html heres a disney video explaining the physics logic behind ray tracing :D

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

      Is ray tracing in MicroSoft Paint possible?
      ua-cam.com/video/vo9ztLY34n0/v-deo.html

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

    Never knew that 3:22 also explains how Atom Heart Father works

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

    Excellent explanation/ depiction, so easy to understand!

  • @chonkyloreraccoon3686
    @chonkyloreraccoon3686 5 років тому +188

    I'd like for Linus to be my sugar daddy in a way. He pays me in pc parts he isn't using and I fallow him around calling him various names like cool guy or Tom and then fetch his mail using my heelys so I can fetch it very fast. Think man servant but with early 2000's foot ware and modern PC parts
    I' be the bing of interns. Kinda crappy and not as good as the other options but you can't seem to get it to go away so you just give up all hope and keep it

    • @XenoContact
      @XenoContact 5 років тому +73

      what the fuck

    • @Navisheik
      @Navisheik 5 років тому +8

      Slav

    • @BothHands1
      @BothHands1 5 років тому +14

      I love the picture you've just painted in my head.
      It makes my heart warm.

    • @bugglest0n
      @bugglest0n 5 років тому +5

      I relate to this on a spiritual level

    • @christiankneupper7011
      @christiankneupper7011 5 років тому

      the bing of interns! Lol

  • @ravenman13
    @ravenman13 5 років тому +13

    Love how every one memes/pokes fun at ray tracing, when it made many movies possible with realistic CGI (depending on who does it) and used in Pixar movies, Nvidia didn't invent ray tracing, it take time for this to get better. CGI and computer graphics wouldn't look so realistic without ray tracing.

    • @izvarzone
      @izvarzone 5 років тому +2

      Nvidia didnt invented ray tracing, but they make it real time instead.

    • @def_not_dan
      @def_not_dan 5 років тому +1

      All hail CUDA.

    • @michaelscott-joynt3215
      @michaelscott-joynt3215 5 років тому +4

      But I think part of the criticism is that the video card market is suffocating, and the demand for affordable, significant upgrades has been met with immature technology that's costly in every way and might not be important until their next upgrade.

    • @shirshanyaroy287
      @shirshanyaroy287 5 років тому +6

      The memes aren't making fun of the general technique of ray-tracing. They're making fun of RTX.

    • @alexatkin
      @alexatkin 5 років тому +2

      There is more to rendering games than just throwing more cores at the problem. Its only logical someone HAD to move the technology forward, just as programmable shaders replaced fixed-function shaders, raytracing will slowly replace programmable shaders.
      Clinging on to a limited technology is never a good thing, even if it upsets people in the short term due to the cost it will improve game visuals and make developeing those games a bit easier in the long term.

  • @senditall152
    @senditall152 5 років тому +1

    Thanks I was quite curious about how this works.

  • @frederikkousgaard3453
    @frederikkousgaard3453 5 років тому

    Good video, love u linus, keep up the good editers LUL Keep up the good work :D

  • @John-lt5rl
    @John-lt5rl 5 років тому +19

    something that costs u 1.2k

    • @alexatkin
      @alexatkin 5 років тому +3

      Because you HAVE to buy the top-end model, right?

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

      Ey

  • @shade3524
    @shade3524 4 роки тому +4

    "unless you're sitting in complete darkness" how did ya know?

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

    So basically, it renderes the enviroment in 3d simulation, then simulates where light would travel from said lightsources. And wether your in the those lines detirmines the shades that are rendered.

  • @David-zf5tv
    @David-zf5tv 3 роки тому

    Really nice explanation

  • @sarahmouhdach1927
    @sarahmouhdach1927 5 років тому +20

    Oh, finally linus talked about RTX cards...

  • @sharif47
    @sharif47 5 років тому +65

    I finally figured out what the RTX 2080 stands for
    Real Time + Ray Tracing
    =RT + RT
    RT X 2 X 10+80
    =RTX 20 + 80
    RTX 2080
    I have no idea what I'm doing right now.

    • @ocalyy
      @ocalyy 5 років тому +2

      @ThaKos69 it should be
      (( Real Time x Ray Tracing) x 1040) + ti =
      (RT x 2 x 1040) + ti =
      RT x 2080 +ti =
      RTX 2080ti
      Smh😒

    • @LudwigvanBeethoven2
      @LudwigvanBeethoven2 5 років тому +1

      R = 18th letter
      T = 20th letter
      X = 24th letter
      20+24-18 = 26
      26÷2=13
      Illuminati Confirmed

  • @TakumiWadate
    @TakumiWadate 5 років тому

    Yes!, I've been waiting for this.

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

    Thanks for a concise yet detailed explanation.

  • @foist101
    @foist101 5 років тому +5

    Ray tracing will be the future of lighting in games, real time always follows production as hardware allows (PBR being one of the most recent huge jumps in quality brought in from production rendering) but I don't think it is anything more than enthusiast right now. Just imagine not needing to adjust shadow map quality, or enable some shadow softening options, or even decide which AO you want because those are all tricks and techniques to try and simulate those things ray tracing just does. It doesn't even necessarily help production, as we've had real time previewers in things like octane and even the free blender for years, so personally I'm going to hold off a few generations. Very exciting advancement though, and great explanation.

    • @yulfine1688
      @yulfine1688 5 років тому

      give it a few years..

    • @monowavy
      @monowavy 5 років тому

      I really hope so!

    • @izvarzone
      @izvarzone 5 років тому +2

      In few years, people wont even remember they complained about ray tracing.

    • @alexatkin
      @alexatkin 5 років тому

      Its not what you wanted but it IS what you need.

    • @benjaminmuller9348
      @benjaminmuller9348 4 роки тому

      it does help production IMO, at least for individuals. I mean, with RTX integration into many raytracing render engines, you see quite a decent speedup, which is great, especially for previewing a scene (for finals, you might have a renderfarm anyway).

  • @PeterJansen
    @PeterJansen 5 років тому +3

    3:08 "consumer grade ray tracing". Production renderers do the same thing (trace from the camera into the scene), it'd make no sense to just trace a shit load of rays that aren't going to randomly actually hit the camera lens. So that isn't how ray tracing for games differs.
    It differs from production rendering in that it only renders a few rays per pixel, and then the AI tensor cores use a deep neural network to denoise the result. Rasterizing is still the main rendering tech, and takes care of anti aliasing. In a production renderer, thousands of camera rays may be shot out per pixel for good anti aliasing, and they may be distributed across time (for motion blur) or space (across the area of a lens for bokeh effects). From each camera ray, thousands of shading rays may be cast too (reflections, refractions, both of which could be rough, requiring way more rays than glossy), and then finally directed towards a light. All the different types of shading rays, multiplied by thousands of camera rays exponentially increases the number of rays cast.
    So its really the same thing, just far fewer rays.

    • @jcm2606
      @jcm2606 5 років тому +1

      Was thinking this exact thing when I got to that part of the video, legit had to pause and have a "hang on, what did he say?" moment.
      Also, fun fact, Turing also accelerates the actual process of tracing individual rays, as the RT cores accelerate structure traversal and intersection tests. That, combined with the AI denoiser cleaning up the image, is what allows Turing to do "real time" raytracing.

    • @pottuvoi2
      @pottuvoi2 5 років тому

      Description of rasterization was all kinds of funky as well..
      Most nvidia demos used standard bilateral filtering and so on, will be very interesting to see what techniques we will see in future.

  • @Nithyanandan.S
    @Nithyanandan.S 5 років тому +1

    Such a great clarity on your Explanation Just educated me about Ray tracing... Thanks for the Video Linus...

  • @PandasticVoyage
    @PandasticVoyage 2 роки тому +1

    Thank you. I hear it all the time but didn't really get it. This was super simple. 👌

  • @__archive50472
    @__archive50472 5 років тому +3

    But to understand ray-tracing, me must fist talk about alternate universes

  • @AdriansNetlis
    @AdriansNetlis 5 років тому +6

    No idea why I watched this when I know more about ray tracing than Linus knows about how to hold his PC hardware firmly in his hands.
    Anyways, almost every game developer has dreamed of being able to use ray tracing in their games some day. I'd say that there is 0 chance that developers won't develop games with ray tracing support. It's more likely that they'll try to do anything to help the ray tracing technology be available to as many people as possible so that they had a chance to rely entirely on it. Ray tracing can save so much work for developers, you can't even imagine.

    • @dixie_rekd9601
      @dixie_rekd9601 5 років тому +1

      not only that but its actually less work to develop for a ray tracing API and for the most part rasterized work will only be improved by ray tracing techniques with zero input from the developer (unless they want to aim for photorealism ofc), I can see engines like unreal and unity working in both raytracing and rasterization really soon.

  • @Japanimepop
    @Japanimepop 5 років тому

    thanks for the video. Something I was very curious about!

  • @Hellboy_2109
    @Hellboy_2109 5 років тому

    Yes thank you for making this!

  • @Bolt6265
    @Bolt6265 5 років тому +88

    things not touched on here:
    path tracing,
    ray-object intersection methods,
    acceleration structures for ray-object intersection checks,
    multiple bounces/samples and other effects besides shadows
    noise issues encountered while ray tracing,
    nvidia's fancy pants filtering that turns noisy raytraced output into nice clean usable output.
    Im nerd boi and ive been thinkin about makin my own darn video about this that doesnt gloss over the fundamentals

    • @rotnmet6257
      @rotnmet6257 5 років тому +14

      I'll watch it if it's shorter than 15 minutes

    • @drawingguy2003
      @drawingguy2003 5 років тому +3

      Isn't that "noise" caused by the sparsity of rays used to cut the ray tracing to a more manageable task (something that a GPU can handle in a fraction of a second instead of days) rather than any consequence of Ray Tracing itself? And nvidia's fancy pants technique is to blur and approximate the missing data.

    • @Bolt6265
      @Bolt6265 5 років тому +14

      raytracing in its simplest form doesnt introduce any noise as youre only tracing as if all surfaces either dont reflect light in any direction but towards the camera or are only perfectly reflective. as you can imagine though in the real world light scatters off of surfaces in all directions (usually). so ray tracing in the simple form isnt noisy and also isnt super taxing, but that also wont give you: soft shadows, global illumination, things like caustics, etc. which nvidias stuff definitely allows for. to get things like, for this example soft shadows, in real life soft shadows are caused by the fact that there's no such thing as a point source light (infinitely small point light), all lights have volume. so in order to get soft shadows with ray tracing, when you sample shadow rays you need to sample randomly within the volume of the light source. and the keen among you may realize that once you start randomizing the direction of things whambamshapow, youve introduced noise into the picture (literally and figuratively). the same goes for things like global illumination where you need to take into account radiance of objects and smartly do multiple bounces off the initial object to simulate how light bounces around a scene and light from a green wall may reflect off and and onto other objects. theres randomness there that introduces noise as well. usually the way to deal with this kind of noise is just to render the same thing over and over and do a rolling average to converge the frames into a progressively less noisy image. but thats why this is hard to do in real time, you cant sample enough randomized paths to converge enough to the ground truth to look good in real time. at least, not without a good denoiser. and nvidias denoiser is really good, way more than just bluring/approximating. if its anything like the paper i read on a similar denoising technique, it uses machine learning combined with a rasterized render of the scene and some other wizardry to reconstruct the image. you can easily find examples of it being demonstrated with the denoiser on and off, basically can turn an unrecognizable noisy mess into a clean crisp image, with the occasional artifacting of course.
      hopefully this clears it up a little, so in one way yeah ya could say the noise is caused by making the task more managable, but i do think it is a fundamental issue with ray/path tracing. tho the more i think about it i guess if ya just had an insanely powerful computer that could crunch enough paths in realtime it wouldnt be an issue. its hard to word how i really feel about it but the noise is a fundamental property of light really. you get noise in the real world for similar reasons, like low photon count. things can look noisy just in your normal vision at night. and especially with cameras. just the fundamental way of basically accumulating photons looks noisy when you dont have enough photons. and same when you cant trace enough paths in ray tracing. so, eh, i guess ¯\_(ツ)_/¯

    • @shirshanyaroy287
      @shirshanyaroy287 5 років тому +10

      @@Bolt6265 this channel is called "techquickie". Of course they'll gloss over fundamentals. Make your own video. I'm serious I'll watch it. Just don't make it a half-hour long thesis.

    • @petersonp84
      @petersonp84 5 років тому +1

      Bolt Man Whoa there, we've got a know it all. lol kidding around but remember this is 'Techquickie' not Tech-hour-to-explain-every-single-detail-fully, dont get me wrong I would watch a longer vid with more detail but this channel is for quickies (I think around 7 mins or less fit that bill)

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

    I would like to see a ray traced
    lightning in real life, with nvidia series.

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

    The first of the tech in games was called high dynamic range or HDR. It is light that changes color when reflecting with say a wall: Yellow light onto a red wall creates an orange orb. Raytracing it the same principle but with images: Ever see a shadow in an alley way of a cat. Now that cats shadow is controlled by the cats low light vision, hunting for food (ominous as to scare off bigger predators). Cypress hill said it best, I'd watch you back but it's best to watch your front. Another example of reflected image is our eyes are round and the World oval, it's why in low light we see images reflecting off shadow from straight shots. Humans lost night vision in place of color, to spot poisonous fruits and berries. But our nocturnal vision never really went aways. A child in the whom has blue eyes and then get's pigment from it's parents surroundings. Blue round eyes take the low light into the iris. As raytracing happens in everyday life. Now if the World was round not oval, you would not get it, the reflective World would not exist: The saying when you stare into the abyss sometimes something looks back means one thing, you may see your self.

  • @kuromiLayfe
    @kuromiLayfe 5 років тому +1

    RT seems most useable for VR (as it already uses polygon counting for rendering the environments and objects) and rasterization for regular 3D rendering on a monitor or tv

  • @bhuvanchandra2848
    @bhuvanchandra2848 5 років тому +83

    Wtf is am incidentally sitting in a dark room.

    • @circuit10
      @circuit10 5 років тому

      Bhuvan Chandra And me

    • @danm2368
      @danm2368 5 років тому +4

      Engrrrish.

    • @DonatasCer
      @DonatasCer 5 років тому +8

      Is your screen on? Because that is a source of light.

    • @pr9101
      @pr9101 5 років тому

      im sitting in a room with light. but that light comes from behind my slightly open door, not giving me a visible light source to use

    • @jamesmnguyen
      @jamesmnguyen 5 років тому

      @@pr9101 That just means you have to switch to path tracing.

  • @JimGriffOne
    @JimGriffOne 5 років тому +41

    I'm tracing a picture of my friend Ray right now. I'm "Ray Tracing".

  • @didrickkazowski2340
    @didrickkazowski2340 5 місяців тому +1

    Good explanation, thank-you

  • @aoseriannanightingale6385
    @aoseriannanightingale6385 5 років тому

    Thanks, was wondering

  • @picklerick98
    @picklerick98 5 років тому +5

    BUT I AM SITTING IN COMPLETE DARKNESS ITS A LIFESTYLE CHOICE!

    • @alexatkin
      @alexatkin 5 років тому

      I call BS, how would you watch the video? :p

    • @acatisfinetoo3018
      @acatisfinetoo3018 4 роки тому

      I am sitting here in bright sunlight "puts on shades"

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

      You're the funniest thing I've ever seen

  • @jiggerypokery2962
    @jiggerypokery2962 Рік тому +3

    Is anyone else in complete darkness?

  • @KMNone-wc6si
    @KMNone-wc6si 3 місяці тому

    Brilliant explanation. Thanks.

  • @Jesus.A.Torres83
    @Jesus.A.Torres83 Рік тому +1

    You just convinced me to become a subscriber on the very first video that I watched from here. I found his explanation of a very complicated technology very user friendly! Good stuff!!

  • @nopparuj
    @nopparuj 5 років тому +5

    2:59
    >Linus : one frame per day
    >Image says 29 hours
    There is 29 hours in a day.

  • @philmsproduction
    @philmsproduction 5 років тому +3

    2:14 Well. You can get some pretty amazing raytraced graphics with a regular gaming PC, too, even without that much money. (or probably even a regular non gaming pc.) The bigger problem is just the time I would say. It is a big difference when you give your rendering software minutes or even hours to only render a single frame of an animation, instead of requiring your computer to render multiple images per second like in a computer game. I am pretty sure most people have computers capable of rendering this image at 2:30. Just not at all in real time.
    On the other hand if you have a lot of money you can save a lot of time. You just buy many computers and each computer can render a different frame of your animation simultaneously.

    • @benjaminmuller9348
      @benjaminmuller9348 4 роки тому

      'minutes or even hours' lol... I would be glad for that! Depending on the scene, minutes for a complete and somewhat noise free frame is pretty damn amazing.

  • @phenomanII
    @phenomanII 5 років тому +2

    This made me somewhat excited for this technology. It could be really cool. I hope in 3 years games can run well using this and I can enjoy those reflections on my Freesync IPS panel.

  • @king98f98
    @king98f98 5 років тому +1

    well explained. thanks

  • @Smash_ter
    @Smash_ter 5 років тому +4

    We've been using ray tracing in Blender for years, yet for games it's difficult. Within the next few years we will see games use ray tracing

  • @IAMDIMITRI
    @IAMDIMITRI 5 років тому +5

    "Ray tracing has made headlines lately as the rendering method of the future for games" Didn't we use ray tracing for a really long time, we just baked lights onto texture in order to save CPU power.

    • @alexbaker1569
      @alexbaker1569 2 роки тому +1

      No, we didn't use ray tracing before this in 3D games, before baked lights we just didn't have lighting

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

      @@alexbaker1569 im just saying that we had baked lights for a long time.

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

      @@IAMDIMITRI true, but that's not what you were saying, you said we have used ray tracing in games before, which is false

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

      @@alexbaker1569 That's what you do in for example counter strike 1.6 when you create maps. Light gets ray traced and baked onto textures. I'm certain that the whole quake engine uses this method.

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

      @@IAMDIMITRI yes, we used ray tracing to create maps, but once the maps were created it was baked in, we have never before used real time ray tracing, the kind that is now starting to used in games

  • @Top_Dawg360
    @Top_Dawg360 5 років тому

    This is a lot cooler than I thought it would be.

  • @naughtyisami154
    @naughtyisami154 4 роки тому

    I watched different videos and different channels but somehow are all him. This guy is everywhere.

  • @MarkSKristensen
    @MarkSKristensen 5 років тому +4

    I really hope this feature will become the new norm, it'll be a giant leap in graphics.
    And yes a huge cost in performance, but as people have said this is just the first generation, you gotta start somewhere.

    • @allanlansdowne340
      @allanlansdowne340 5 років тому +1

      "become" is the word. There is nothing for the normal gamer to use it for.

    • @yulfine1688
      @yulfine1688 5 років тому +2

      indeed even with better drivers and software to work with i dont think youll be seeing much in the well mainly tripple A games that have ray tracing built in and youll be lucky to see a 60fps at 1080p with a 2080ti or 2080. It requires a lot of power to render per second and the fact they nvidia and amd have been able to do so in real time at 30-60 frames per second that is god damn impressive.

    • @ShirokiMaki
      @ShirokiMaki 5 років тому

      See as how a lot of PC Master Races are allergic to sub 120 fps images, probably won't see much sheeple celebration for it in a while as well.

    • @chipmo
      @chipmo 5 років тому +1

      It's exciting tech but give it time. Not currently practical if you prioritise fps over visuals (like competitive gamers)

    • @alexatkin
      @alexatkin 5 років тому

      Why is nobody considering that using RTX actually reduces the load on the shaders?
      If developers allow people to choose the RTX complexity in the scene you could easily have a gorgeous 60fps game while still allowing much higher frame rates at the cost of it not looking as good, but likely STILL better than shaders alone.

  • @frosty9392
    @frosty9392 5 років тому +3

    It feels like when we went from 2d graphics, to 3d graphics, to 3d photo-realistic graphics and people said that it "probably wasn't worth the power required since it was going to perform so poorly"
    To anyone *not* excited about it. Just remember things iterate. And this is one of those things normal people dont consciously notice or think about

  • @saemranian
    @saemranian 10 місяців тому

    Good Explanation
    Thanks for sharing

  • @alanh.6720
    @alanh.6720 4 роки тому +1

    If anyone wants to help me out here I decided to choose this consumer grade ray tracing for a project in my computer science class! However I'm having a hard time clearly identifying what data the process takes in as an input. Would it be the data of the objects location and its behavior with light or would it be the actual path the virtual camera traces or a combination of both?

  • @SevenDeMagnus
    @SevenDeMagnus 5 років тому +5

    Hi. This has been in 3D software like Maya 20 years ago or so but using software, using the CPU (slow, not in real time- unless it's a renderfarm, like mentioned).
    God bless, Proverbs 31

    • @benjaminmuller9348
      @benjaminmuller9348 4 роки тому

      a renderfarm is usually used for animation rendering tho, to keep rendertimes below centuries, so I wouldn't really call it 'real time'. But I mean, real time is pretty vague. If you have a good PC, you can often preview your scene somewhat interactively (if it doesn't contain really computationally expensive things like detailed volumes etc).

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

    Anyone here because next gen consoles have ray tracing?

  • @justjuniorjaw
    @justjuniorjaw 5 років тому

    Already past my study on it to help me back then, but the explaination is nice :)

  • @Quantum-Bullet
    @Quantum-Bullet 5 років тому

    You could try games and Crisis on movie rendering rigs!

  • @tomislavcelic8806
    @tomislavcelic8806 5 років тому +31

    Ray Traced games currently don't look much better.
    HOWEVER we must use Ray Tracing to make our games look like real life.

    • @reck6328
      @reck6328 5 років тому +15

      No, they do look a lot better currently.

    • @BothHands1
      @BothHands1 5 років тому +5

      Image realism is better, but frame rate is trash atm. I don't think it's quite ready for market yet, at least not for games. Though it can definitely change the way amateur animation is done - in applications where people have time to wait for a render, the technology is amazing. But I won't be buying this iteration for gaming, and I don't work in animation, so I won't be buying it at all. But I'm definitely excited to see where this will be in 5 years, assuming it catches on in gaming. But with 40fps on a 1200$ card right now, I doubt anyone's even going to code games for ray tracing yet, at least not without huge financial incentives from nVidia.

    • @Gasmask11000
      @Gasmask11000 5 років тому +1

      Reckfullies eh, I watched the BF5 demos of ray tracing, and there wasn’t a huge difference. It looked like there really wasn’t a difference anywhere but in puddles. Yeah the puddles were amazing but I know I wouldn’t notice them during gameplay, just like massive overhauls in puddle reflections before.
      Sure it’s the future, but right now it’s definitely not worth the price premium for the handful of games with a little bit of extra reflections.

    • @reck6328
      @reck6328 5 років тому

      swd3311000 That is only BFV, a poor example because they only used raytracing for reflections. The biggest difference with RT is lighting, which they didn't even use.
      Sure I don't think there are any games that have that enabled right now, but it is definitely possible assuming a developer wanted to do it. And it would look amazing.

    • @Gasmask11000
      @Gasmask11000 5 років тому +1

      Reckfullies you said they look better currently, and then you said they don’t exist. That’s one of my main reasons not to buy this card: there’s only one game that supports this feature.
      So ray tracing games don’t really look better currently because they don’t exist. BFV is the only one that exists and it only uses it for reflections. I’m not going to buy a graphics card when the main selling point isn’t used by any games.

  • @deemonk7860
    @deemonk7860 5 років тому +8

    PhysX 2.0

    • @TheFoxyGamerOfficial
      @TheFoxyGamerOfficial 5 років тому

      How could it be PhysX 2.0? The Ray-tracing technology has nothing to do with physics at all.

    • @deemonk7860
      @deemonk7860 5 років тому

      @@TheFoxyGamerOfficial I was sarcastic...look this is my personal opinion,but picture it like this.Giant corporate chess game and Nvidia just made their move.Just like they did with SLI,PhysX,GameWorks,GPP...and now Ray Tracing.The question is does the other side have a counter move or is it game over?I compared it to PhysX because thats another technology customers didnt really want at the time it was introduced.Bottom line...its business thats what it is..

    • @HeavenlyWarrior
      @HeavenlyWarrior 5 років тому

      What you mean by a counter move? Ray tracing is here since 4/5 years, just almost nobody is using it, that's why for gamers there's no point in using windows 10 because ray tracing is only used in directx 12.

  • @maxl.4445
    @maxl.4445 5 років тому +1

    Quick and simple like always. Can you please make a video about Nvidias new Dlss? I would really appreciate it. So many different information are going trough the web at the moment.

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

    0:11 pause it, he looks serious

  • @frostya1029
    @frostya1029 5 років тому +77

    ps5 anyone?

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

    "It just works"- Todd Howard

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

    mom i want linus tech tips
    we got linus tech tips at home
    linus tech tips at home:

  • @AadidevSooknananNXS
    @AadidevSooknananNXS 5 років тому

    Thank you!