I wrote a Raytracer for DOS, 16 VGA colors

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

КОМЕНТАРІ • 3 тис.

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

    You could pause the actual visual at anytime and create a 90's Math book cover out of what ever is on the screen.

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

    The only video on UA-cam that looks more realistic in 144p than in 4k.

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

      True, WTF?! 😯

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

      Well I'll be damned, it does

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

      cuz 144p is lower resolution than what the tracer is rendering in.

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

      I was gonna say the same thing! I especially love how you can still see weird color banding, but all of the dithering is gone.

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

      wow amazing!

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

    Modern games: you need RTX for raytracing
    This guy: hold my IDE

    • @dave2.077
      @dave2.077 5 років тому +45

      wait a second guys. im a pro. i can do this. well technically more like 10 hours but just wait a bit ok

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

      @ 👏

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

      @@dave2.077 Look at his header. Math, Stdlib, Stdio, dos. only these four. Seriously Can you?

    • @dave2.077
      @dave2.077 5 років тому +20

      @@hayoun3 i cant understand what you are trying to say me but id like to say that my comment was a joke and is not to be taken serioisly

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

      RTX stands for real time ray tracing. RTX is the acronym because RTRT looks dumb. Non real time raytracing has been done for decades

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

    I think youtube's algorithm is almost fixed as finally they are able to recommend actually good videos they have been postponing it for years.

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

      I've been getting good recommendations for years. Nearly always at least a few of the recommendations are actually videos I like.

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

      But now how long will even years of backlogged good videos last?? A few days? A few hours?

    • @Jaqen-HGhar
      @Jaqen-HGhar 5 років тому +7

      no it's just that a bunch of people search ray tracing then they find this video. UA-cam sees an uptick in interest in this video from a long time ago so thinks it's worth watching. It does this all the time on old videos and you always see people in the comments freaking out wondering why UA-cam is suddenly recommending this video to them.

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

      @@lotusauer4785 This video was apparently 8 years backlogged, so we have a bit to go through.

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

      They were just shitposting using the recommendations.

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

    UA-cam: Do you want to recommend it?
    Bisqwit: Nah just wait 8 years.
    Edit: Damn guys thanks for 10k likes! Really appreciate that ten thousand of you appreciated my comment! ^_^

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

      It’s not up to me. UA-cam does what UA-cam does. I call the phenomenon “Recommendation Fairy”. Most of the time she slumbers, but sometimes my channel is blessed by her. Usually she directs the masses to my typing video. This is the first time ever that she directs them to a video that actually represents my channel well.

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

      Too many Ray Tracing Minecraft videos.

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

      @@Bisqwit Yeah she blessed my second channel. WHY NOT MY MAIN AAAAAAAA

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

      @@cc12yt yeah i've seen them

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

      I guess it's because of nVidia's RTX graphics cards, UA-cam may have noticed that videos with "raytracing" in the title are currently 'hyped', so it starts recommending them.

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

    Amazing!

    • @heattap8991
      @heattap8991 4 роки тому +26

      Jesus christ

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

      Hey

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

      I did not know that Jesus was a programmer too xD !! Bless me lord so that I can become a programmer like you too...

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

      Jesus himself is calling this “Amazing”

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

      oh jesus

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

    Lately youtube has been recommending me (at least) weird and interesting videos. And this is one of the best UA-cam has ever recommended to me

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

      They seem to have been working on a zeitgeist algorithm. Things we are secretly talking about keep getting recommended.

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

      funny I watched and liked this years ago yet it recommended it to me again. i approve

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

      Bruh same

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

      Makes me miss the algorithm from 7+ years ago and how great it was at recommending quality videos. Lately it won't even suggest me the second part of multi part videos

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

      Firdaus Mohd same here. Been getting all sorts of wacky recommended shit. Been loving every moment of it

  • @Undarial
    @Undarial 8 років тому +2479

    Raytracer..in dos..in vga...in 4k...Now I seen it all.

    • @jaguar3217
      @jaguar3217 6 років тому +169

      in 2011

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

      It's 640x480 but upscaled to 4K. It's not actually 4K.

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

      @TheThunderGuy S You can easily do that with a mod though

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

      4K in 2011?

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

      Whats so weird about 4k in 2011? It wasnt mainstream but it doesnt mean it wasnt any popular.

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

    thank you for recommending me this youtube

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

      Thank you Cyranek, very cool!

    • @user-ro1cc8tz6d
      @user-ro1cc8tz6d 5 років тому

      Cool

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

      Good thing that also other people are getting these videos on their recommended tab. UA-cam is getting a Lil' bit better like 1% more better

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

      Lol Cyranek, looks like we same

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

      your everywhere

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

    I thought it was added after the RTX boom, then I checked the upload date

    • @Cptn.Viridian
      @Cptn.Viridian 5 років тому +89

      No, UA-cam just only cared about this AFTER the boom, thus the super late recommendation of this video.

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

      Lol I actually watched the whole thing and when he typed in his information at the top saying made in 2011, I paused the video and checked the upload date. Then I was seriously blown away as an engineer.

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

      It's only come to the mainstream attention and the masses as of recent because of that. Ray-tracing, given you were in the whole rendering 3-D images thing like myself, has been around for years and years before "RTX".

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

      same

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

      @@pushpopLoC909 ikr, computer graphics is one of my favorite things in IT and Ray Tracing is old af but it was nearly impossible to do live RT

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

    Woah, someone finally fixed the UA-cam algorithm.

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

      Haha yeah I thought the same thing... it's amazing! I hope it stays that way...

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

      Fuck you

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

    Hebrew in the beginning
    Japanese 4 seconds in
    English used as primary language throughout the video

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

    144p for optimal quality. Prepare to be stunned. Really.

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

      Most underrated comment here.

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

      Wait WHY?

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

      @@kilianbalter because no one would consider turning a video down to the lowest settings possible would make it look better.

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

      ​@@kilianbalter I think it's due to dithering. Dithering is an age-old graphics technique developed in the era where colour palettes were extremely limited. Basically it uses alternating pixel colours in order to simulate the existence of more colours than there actually are. For example, if you space out alternating black and white pixels and view them from a far enough distance they turn into grey.
      I think what's happening is that the 4K original loses so much detail as it downscales, that a lot of the dither is lost. You can see this when you change down resolutions. There's not a lot of difference between 4K and 720p, but you can see some of the colours getting blurred together or changed by the encoder. Once you drop under the resolution of the ray-trace renderer (480p), the colours start looking more and more solid thanks to the dithering being blurred.

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

      schmutz06 144 made it super blurry and 1080 made it really clear? Did I miss something?

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

    and when it and this is this nd [[[[

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

      Didn't expect to find you here

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

      @@BrainChili Am I being stalked?

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

      you both, as always...

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

      @@xeome5596 you're gonna get wooshed

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

      @@Poolie its me, the one that died al-
      11596

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

    if(rays)
    {
    trace;
    else:
    don't;
    }
    There, optimised it a bit for you.

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

      Hahahaha!

    • @Philippe-ch6uk
      @Philippe-ch6uk 5 років тому +55

      I was playing papers please like 10 minutes ago

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

      No nieźle

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

      Nooooo, wild syntax error appear

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

      Wresni Ronggowerdhi
      Oh noes, a wild syntax error appeared
      FTFY

  • @TwoMinutePapers
    @TwoMinutePapers 9 років тому +97

    Very soothing. A great experience after a long day of work. :) The VGA colors also bring me back. Love it!

    • @33ro0
      @33ro0 6 років тому +10

      Woah. What are the chances I find you here!! I didn't even know your channel existed 2 years ago :D

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

      And what are the chances I’d find you here 6 years before I knew your channel existed! What a time to be alive!

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

      wow my fav youtube channel commented on this?

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

      What a time to be alive!

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

    NVIDIA 2018 - GROUND BREAKING NEW TECHNOLOGIES!
    bisqwit 2011 - IMPRESSIVE NVIDIA, MOST IMPRESSIVE.. HOWEVER

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

      Which IDE is he using? A reply would be appreciated.

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

      Aditya Chitrigemath He uses his own afaik, it's mentioned in another video

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

      @Ken Matharoo Ray Tracing is very old tech.

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

      It was mostly an effort to include hardware to speed up raytracing. Hardware is much harder to develop than software. It also takes up a chunk of silicon area without any speed up to other tasks. So increased cost for nothing for most users.

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

      Rtx cards provide real time ray tracing, this is prerendered ray tracing.

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

    The Algorithm Gods have blessed you this day

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

    Be sure to turn on Closed Captioning for extra info!

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

    NVIDIA HATES THIS GUY!! Here's how he made ray-tracing from scratch in 20 minutes.

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

      underrated

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

      has science gone to far?

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

      @@alberto7374 Check out these 12 reasons why it has. You will NOT BELIEVE #11

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

      R4MP4G3RXD he didnt create the concept

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

      What he can do if will work 8 hours- universe?

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

    Dude this is sick. Your coding skills are off the charts

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

    UA-cam - let's recommend this 2011 video in 2019 to everyone
    UA-cam - it has 4k even tho it wasn't introduced to youtube since few years after posting the video

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

      Yeah the same happened with 60fps. They keep the files so they can reprocess them into newer available technologies
      ME LIKEY

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

      There are also 720p videos from 2006 and I even saw a 1080p from around 2007 if I remember.

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

      @@ControversialOpinion gigabytes? pfft
      they have PETABYTES if not even more
      here you can download a copy of your data : takeout.google.com/settings/takeout

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

      gigabytes... per person ;)

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

      raytracing probably wasn't a very popular keyword then.

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

    Estimated render time: 73451 hours 53 minutes 17 seconds

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

      more than 8 years worth of rendering...LOL!!!

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

      ​@Rowdy Rhino​More like when you add 10 subdivision surface

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

      @@ryanekapanjisuhartanto7167 Me when I add 1 more sample

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

      @@ryanekapanjisuhartanto7167 Dont remind me, at the start of my game art and design course (2015) we had to use blender on old althon 64 machines and I would accidentally subdiv x 10 instead of 1-2 ALL the time, crashing the system

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

      @@recklesflam1ngo968 they actually made it foolproof now, you can't go past 6 with a single modifier. guess you weren't the only one accidentally going too far

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

    people saying it looks better in 144p... bruh, let me enjoy the ordered dithering in peace.

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

    8 years old and yet it's still interesting and informative. Despite my knowledge in programming, I really wish I knew how to do raytracing (especially in something like MS-DOS). Regardless, this is an amazing video! Thanks UA-cam for recommending me this video!

  • @meowgoesthedog_
    @meowgoesthedog_ 8 років тому +564

    Ironically, a video about DOS is available in 4K.

    • @BigOlSmellyFlashlight
      @BigOlSmellyFlashlight 8 років тому +57

      hey, we need to capture the pixels extremely sharply so we wont lose the pointy sharp pixellated pixels.

    • @ancientapparition1638
      @ancientapparition1638 7 років тому +15

      don't forget about the FLAC audio

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

      Uh?
      I didn't knew that 4K existed in 2011!

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

      wait i already watched this? huh.
      anyways idk how this video is in 4k if support wasnt added until 2014/5 and usually it would downgrade the quality if uploaded >1080p

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

      640x480

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

    Am I the only one who watched this and got depressed about my coding ability?

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

      Ikr, I wouldn’t even know where to start for something like this.

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

      Me too, my problem solving is not good

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

      This is gonna be my inspiration to keep learning and practicing, so one day, I will become so skilled and I'll be able to make some equally amazing like this.

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

      @@Igniz I think he just rewrote a code he actually already wrote before.
      Maybe he's just copying his own code.
      But he surely isn't writing it from scratch.
      Hope you feel better 👍

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

      @@somethingoriginal1707 3rd semester physics.

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

    I wrote similar crap on my amiga 1200, rendering took weeks in resolution 320x200, I bought half dozen amigas 600 and put them to the closet for rendering. Thous was a days.

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

      So much time wasted! Those were the days indeed.

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

      @@Bisqwit I had a grandma and she always complained about electrical bills and power consumption. She patrolled around house switching of any "unnecessary" appliances. That was the only reason why I kept my amigas locked in the closet. Now when I think back that was a tremendous fire hazard.

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

      When I had my A500, I made a D&D DM helper and a 3D (red/blue) object viewer. Only wireframe though, but realtime rotation. I used POVRay and later Lightwave3D for my raytracing.

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

      @@anthonylosego If I remember correctly, I used software Sculpt 3d, I was astonished by its capabilities. When I moved from Amiga workbench to pc dos I felt like someone cut my hands.

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

      and Portuguese Amiga means "Girl Friend" LOL

  • @manolete340
    @manolete340 7 років тому +88

    That super Mario running at the top is a legend already.

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

    UA-camrs: The algorithm is killing content creators!
    My Recommended:

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

      after reading the top comments: well maybe showing cool things to the general public wasn't a good idea.

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

      It just let them become macdonalds workers

  • @panzerkampfwagen-drei
    @panzerkampfwagen-drei 5 років тому +792

    2011: No
    2012: No
    2013: No
    2014: No
    2015: No
    2016: No
    2017: No
    2018: No
    2019: Sure, why not?

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

      Very original very original indeed.

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

      i made once a carpet maker ( graph ) in gwbasic.. on the 386 it took a while - later on it was to fast to follow.. like on a Pentium 1

    • @o.sunsfamily
      @o.sunsfamily 5 років тому

      The algorithm is getting better.

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

      Yep.
      Same.

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

      It's because you joined youtube in 2016 duh.

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

    This is really impressive. I've been slowly watching your video library, and I have to say that you are one of the most earnest software engineers I've seen.

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

      Thank you for your kind words!

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

    I don’t comprehend exactly what’s going on here but this straight 🔥🔥🔥 aesthetically

  • @FOUNDERZERO
    @FOUNDERZERO 8 років тому +17

    Tales of Phantasia music for the bulk of the video... you are awesome.
    Your videos inspire me to pursue programming.

  • @Bisqwit
    @Bisqwit  8 років тому +126

    Testing. A few days ago UA-cam seems to have sabotaged retroactively all old comments, removing all newlines.
    Instead of a nice paragraph break between thoughts, there's now _nothing_; the next word starts immediately after a full stop without even a space. It is very annoying. And makes comments a lot more difficult to read.
    This comment is here to test whether that applies to new comments as well.
    EDIT: Apparently it does. Because of the "Comment failed to post" problem, I posted earlier on my Twitter page saying: UA-cam-Google+ Frankenstein monster, get your shit together. And their response seems to have been: Lol no, we're just going to make things even shittier.

    • @spidermcgavenport8767
      @spidermcgavenport8767 8 років тому

      Thank you so very much.

    • @hecko-yes
      @hecko-yes 8 років тому

      It seems to have fixed itself everywhere except the mobile website, where newlines are replaced with spaces in all comments.

    • @Bisqwit
      @Bisqwit  8 років тому +1

      At least there are spaces... But that is still awkward.

    • @hecko-yes
      @hecko-yes 8 років тому

      +Bisqwit Then again, it's only the mobile website, and who uses that?

    • @LucasLuchi
      @LucasLuchi 7 років тому

      Nice Graphics

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

    Ah, this reminds me of the old demo scene. You used to see some amazing coders do things with the old primitive hardware that would blow your mind. I used to watch these for hours on old 8-bit and 16-bit computers (C=64, Amiga, DOS boxes).

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

    I feel like I've just witnessed the 4th Dimension. Very interesting stuff!

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

    Who knew that there was speed running for programming.

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

    BGM Music: Tales of Phantasia - Second Act

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

      Thank you

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

      do you know the BGM that starts at 11:49?

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

      @@fogsaturate
      StarOcean(SNES) ancient ruin

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

      @@kiwipease and @selami32 you're my heroes

    • @thierrykurt3867
      @thierrykurt3867 4 місяці тому

      Thanks !!!

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

    I bet Terry Davis could have made a raytracer for TempleOS

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

      Bless his soul

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

      No one’s stopping you from porting this code to HolyC

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

      Did he not?

    • @Cole-ek7fh
      @Cole-ek7fh 5 років тому +8

      friendly reminder terry was killed by gitd.

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

      In 640 X 480. The way god intended

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

    Nobody:
    The UA-cam Algorithm: let’s put this proto-RTX video from 2011 of a guy programming a raytracer for DOS for 15 minutes in everyone’s recommended

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

      🤣😂😂

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

      raytracing isn't a new thing and was used since dawn of computers

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

      @Dat Boii ye but that was never mentioned

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

    I don't know which one is cooler, the end result or the journey it took to get there. Subscribed

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

    If the current and new programming languages stop working somehow, this guy is going to be the one to rebuild everything from scratch. Great work! 👍

  • @nochan99
    @nochan99 8 років тому +107

    WOW man you captured EXACTLY how it felt to program as a young worry-free man in 1992!! *proud of OP*

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

    Japanese and Hebrew all in the same video? Cool. I'm actually studying both.

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

      I speak hebrew natively and studying japanese

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

      @@feyisthey i was born in israel so i knew hebrew since i was young

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

      @@ZigCade cool where are you now

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

      @@feyisthey Still it israel

  • @duuqnd
    @duuqnd 6 років тому +146

    R T X O N

    • @conformist
      @conformist 6 років тому +2

      R T X O F F (10 giga rays)

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

      @@conformist But you don't get it do you, NVIDIA RTX card doesn't use 10 giga rays, it uses few rays and then smooths the resulting reflection with AI learning algorithms..

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

      @@Zuluknob ua-cam.com/video/_DPRt3AcUEY/v-deo.html

  • @user-wh9iw1wm9z
    @user-wh9iw1wm9z 5 років тому +25

    This person taught NVIDIA how to walk

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

    May take 8 years to cross my screen but im glad it did.... impressive work

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

    This video just made me realize how scary awesome contemporary computing is. 😧😧

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

      if there is no rape then it aint manly enough

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

    wow.. never heard about this video.. suddenly youtube suggest this in 2019

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

    So happy to find this channel, literally just turned my computer off 5 minutes. You have given me motivation to get back on and put more work in. This is brilliant

  • @Jonathanloov
    @Jonathanloov 9 років тому +114

    *Seeing 4k resolution*
    YES
    *Using it*
    When will it stop loading?!?!

    • @JFrap
      @JFrap 9 років тому +3

      Jonathan L Unless you have 50mps internet ( ͡° ͜ʖ ͡°)

    • @markpenrice6253
      @markpenrice6253 7 років тому +4

      Funny, I was thinking near the end "wow, if I could take this back in time to the 386 SX16 and 486 SX25 PCs at school, everyone would freak the hell out" (they all ran standard VGA at the time)
      ...but then I realised "there's no way this animation would compress enough to fit on their hard drives using any scheme that would depack quickly enough..."
      and then "ah! there were at least a few with external CDROM drives..."
      Only to be further foiled by the final realisation that they were single speed drives, reading at 150kb/sec. And a high-rez VGA screen consumes... 150kb.
      Prebuffering isn't really an option, even via the HDD, as they all had 4mb RAM, no disc larger than about 170mb, and DMA disc transfer (instead of CPU-murdering PIO), even for the SCSI CD drives, was still a couple years in the future...
      So yeah, it would have been a very nice 1fps slideshow :D

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

      @konakonaa ok. Turn it down to 144p. It looks better that way anyway....

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

      This was made in 2011 in 1440p and in 2019 we can't still see this in 1440p (the software is also from 80s)

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

      @@namesurname4666 Not 1440p, 144p! It actually does look better. See above comments.

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

    i like how most the comments are in english, then suddenly some comments in japanese.
    believe the first one (そろそろできました。すぐかんしょうします)translates to "almost done. nearly complete" and the last one (かんせいしました! program complete. さって、かんしょうします)seems a bit trickier, first part is i think "all done! program complete" i'm just not sure about the satte, kanshoushimasu. it seems to be "now then, all done" which leads me to think i've made a mistranslation * goes to check the googles*
    ok, i think i have been mistranslating kanshoushimasu as kanshou shimasu not kan shoushimasu. and taking kanshou to be 完勝 but i'm thinking the part i translated as "nearly complete" should be "i'll run it soon" and the part i translated as "now then, all done" should be "now then, let's see it"

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

    Make sure to watch in 144p if you hate pixels.

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

    This thing people here call artifacts is actually called dithering, it is used to create illusion of more colors, with less colors

    • @dr.palsonp.h.d815
      @dr.palsonp.h.d815 5 років тому

      could you expalain more?

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

      @@dr.palsonp.h.d815 literally google it.

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

      @@dr.palsonp.h.d815 He have only 16 colors, to make more colors his program arranges pixels that way so it creates illusion of more colors.

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

      wait... has it been so long since dithering was a normal way to generate additional colors that nobody knows what it is anymore?

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

      @@3of12 Yeah...
      That's scary :-)
      "What's a floppy drive?"

  • @Bisqwit
    @Bisqwit  11 років тому +4

    The compiler was Borland C++ 4.52. The IDE was an editor I created myself. The OS was DOSBox version 0.74.

    • @hobbified
      @hobbified 4 місяці тому

      and OpenMP? Is that for real?

    • @Bisqwit
      @Bisqwit  4 місяці тому

      @@hobbified The OpenMP directives are ignored by compilers that don’t support them.

  • @bedhead-tb4qg
    @bedhead-tb4qg 5 років тому +3

    love how i finally understand to read code.. i feel superhuman

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

    Got this video in recommended and I don't regret this.

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

    this dude figured out how to turn RTX on in the 80's

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

      This is not real time raytracing.

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

    At the end This. Is. So. Beautiful.
    Mixed with the midi soundtrack. I really feel something special. Such a great mix of old and new technology.

  • @imkow
    @imkow 8 років тому +15

    those 3d graphics are amazing.. i wish i know the mathematics behind the drawing......you even have reflection of lights. when i was using borland c++, all i could draw is circles, boxes, or .bmp pictures at best.

    • @Bisqwit
      @Bisqwit  8 років тому +19

      +imkow It is mathematics heavy, yes. For each pixel in the image, a vector is calculated representing the ray that is cast from the eye through that pixel in the image plane. Then a collision is calculated between the ray and each object in the scene. (Google-search: ray-sphere collision) If there are collisions, the nearest one is taken. The surface normal is calculated at the point of collision. The ray and the normal are used together to calculate the reflected ray, which is then recursively used for calculating reflections. Additionally, from the point of collision, a ray is cast into each light source. If the ray does not hit anything, then the surface point that was hit is lit by the light, and this is added to the result, multiplied by the cosine between the ray and the surface normal. This is a condensed explanation off the top of my head. More details in this source code and in other materials readily available online.

    • @imkow
      @imkow 8 років тому +2

      +Bisqwit Thank you Mister so so much ! that's very helpful. it's gonna take me days or months to digest those words...these knowledge alone are enough for opening a college in some university.. every part of procedures you just described is interesting and tricky enough(to be made into a series of tutorial videos, :D)...To mimic from this , I'm gonna try to realize a basic primitive reflection of lights on a graphics API called JavaFX, in a sample program just to test those freaking math......

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

      Do you want to know how to do this?
      Here you go! Thank me later! :-)
      thebookofshaders.com

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

    Well, I THOUGHT I was okay at writing in C. Guess I know nothing, now.

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

    *goes back in time to 1991 to chuck 16 3.5mm floppy disks with this on it at some programer's head*

  • @senatoraz
    @senatoraz 8 років тому +4

    Unbelievable - oh my god. That is amazing!

  • @sonofhendrix
    @sonofhendrix 10 років тому +36

    But you're mortal, HOWWWWWW???????

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

    This popped up in my recommendation feed not too long ago.
    How did I not find this video back when it was released?!
    This is stunning, gorgeous, and just... wow. You did a very very fine job!

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

      Back then I had like 188 subscribers. UA-cam does not promote channels that small unless their videos are already turning out very popular.

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

      @@Bisqwit Ah. Either way, I was still shown something amazing, I just can't stop watching it now. It's a truly amazing piece of work you have done.

  • @TheGreatJuju
    @TheGreatJuju 8 років тому +10

    This is some pretty fucking rad stuff for !!!! I deeply admire you.

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

    Funny that decreasing the quality to 144p makes the video look better in quality.
    Alright then.

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

      Holy shit you are right 😂

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

      well its called antialiasing

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

      That is anti aliasing tech.

    • @alexa.davronov1537
      @alexa.davronov1537 5 років тому +9

      @@kurostyx9124 It's called blurring.

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

      Do you think I know what a JPEG is?

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

    That is some incredible dithering, really beautiful. Smoother than most.

  • @movAX13h
    @movAX13h 9 років тому +24

    Well,... nice but the educational part is reduced to code comments. If you ever wondered why people thought you were typing so fast (seen that in one of your vids): It's the clock in the top-right corner.

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

      movAX13h So, is he typing really fast or what? I'm still confused.

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

      tool assisted video

  • @anisometropie
    @anisometropie 7 років тому +13

    This channel makes me happy to be experiencing life

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

    The more I think about this video, the more things I'm impressed with. The code, the release date, the result. Insane! Amazing job!

  • @abreu20011
    @abreu20011 8 років тому +6

    You are the man.... Amazing!

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

    This channel needs more subs!

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

    This... This is amazing!!!
    And also very, very trippy.

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

    Heck, even the music sounds like it's from the 90s.

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

    4:3 Aspect Ratio is perfect on my iPad!

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

    I just can't get over that typing speed

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

    Tales of Phantasia, such a beautiful masterpiece

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

    UA-cam: Ray Tracing is going to be popular in many games, even in Minecraft. Let's prior tag "Ray Tracing" in my platform.
    User: But this video is 7 years old. o_O
    UA-cam: I don't care...

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

      Lets hope youtube lasts a century or two, then its gonna get really fucking strange!

  • @noname-sk6zk
    @noname-sk6zk 5 років тому +2

    I know it, this is what's gonna make DOS popular again.
    Also, wow, that raytracer looks _amazing!_

  • @sbcode
    @sbcode 8 років тому +9

    you are a genius

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

    For the first time, something actually looks good in 144p, not 1440p, but 144p!

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

      144P BOIIIZZZZZZZ

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

      Wrong it's 144i 😂

    • @白神遼岳
      @白神遼岳 10 місяців тому

      I think that probably because the image quality becomes rougher, the dithering noise becomes invisible, which makes the image quality appear to be better.

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

    This is amazing. Why is UA-cam recommending this in 2019?

  • @Domarius64
    @Domarius64 8 років тому +18

    I can see why you made this available in 4k etc. The compression really messes with the dithering effect at the lower resolutions...

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

    NVIDIA Hates Him! Ordinary guy figures out how to get RT for FREE with this one weird trick!
    :D :D :D

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

      Not ordinary thats for sure.

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

      Winston Deleon RT cores boost performance you can do ray tracing with gtx cards too...

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

      bruh RT always existed

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

      Raytracing existed for about 300 years.. rtrt however...

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

      @@tootaashraf1 for more than 20 years. 350 MHz + 64KB were enough for real time raytrace, just three words: Seven Heaven demo.

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

    I think what amazes me the most is how this is all done with only 16 colors and a shit ton of dithering

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

    Graphics have never gotten better than this

  • @adam7868
    @adam7868 8 років тому +22

    40 years back this would have not been possible

    • @georgeallen7487
      @georgeallen7487 8 років тому +12

      +A23p Studios It would just very slowly.

    • @codeinclined
      @codeinclined 8 років тому +21

      +george allen It'd take the length of this video to render one frame lol

    • @siotsoni9854
      @siotsoni9854 8 років тому +2

      Yeah, K&R C is from '78 (if I recall correctly). 40 years ago would've been '76, and C++ was created as a superset of C.

    • @markpenrice6253
      @markpenrice6253 7 років тому +1

      Nice one, Captain Obvious.
      Though that's only really true for home hardware. If you were extremely patient then something analogous could have been brewed up on industrial machines. After all, that's how the planetary sequences in 2001 were produced...

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

      @@markpenrice6253 what do you mean planetary sequences in 2001? As in the movie by Stanley Kubrick?

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

    My new go to video to see if my headphones are working properly

  • @marcelojaviertwt
    @marcelojaviertwt 9 років тому +4

    AMAZING, MAN!!!

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

    Switch to 144p for higher quality scenery.

  • @송민우-g1q
    @송민우-g1q 5 років тому

    He does have a steady hand. This is just a lot more than outstanding.

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

    Next
    "Write RayTracer for Terry A. Davis TEMPLE OS"

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

    As a college student working my way up my math classes I can't wait until I can apply all the math I've learned so far into programming

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

    This popped up while I was looking up stuff on SNES Doom source code. Very unrelated, but I'm here for it! Great video

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

    YT recommendations:
    2011: nope
    2012: nope
    2013: nope
    2014: nope
    2015: nope
    2016: nope
    2017: nope
    2018: nope
    2019: yeah sure whatever

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

    you are my hero

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

    I love these videos because they are timeless. If I don't watch the uploaded date I'd just believe that it's a new video.

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

    Nvidia : we launched a new feature in rtx called ray tracing!
    Bisqwit : im about to end this man whole career

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

      Well raytracing has existed for many many decades now. It's not a new concept. NVIDIA didn't create it.

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

      I think we're forgetting the word "real-time"