Recreating DOOM in Python. Ep2 - Binary Space Partitioning

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 พ.ย. 2024

ความคิดเห็น • 85

  • @wildwest1832
    @wildwest1832 ปีที่แล้ว +45

    The BSP tree was an ingenious idea that really doom wouldnt exist without. Cool to see all this implemented, and explained well even if it is a lot to digest.

    • @mattbrewerton6884
      @mattbrewerton6884 ปีที่แล้ว +2

      Before BSP, Romero broke the engine completely by simply making a square stairs going down into itself (like the start of E1M1). It got stuck in an infinite loop of stairs.

    • @darkzeroprojects4245
      @darkzeroprojects4245 ปีที่แล้ว

      Much as I appreciate it, I'd prefer to use quake or valves bsp for levels if chose to make similar engine.

    • @DBGabriele
      @DBGabriele ปีที่แล้ว

      actually there other ways to do that (for instance portal + Tree), but this was an excellent way to do that w/o the extra work of the map designers

  • @acatisfinetoo3018
    @acatisfinetoo3018 10 หลายเดือนก่อน +4

    This is absolutely amazing...never thought i'd see such an in-depth video explaining how the doom engine works in such detail.

  • @robinlaser5794
    @robinlaser5794 ปีที่แล้ว +8

    Was waiting for this! Great work

  • @rexraptorsaur
    @rexraptorsaur ปีที่แล้ว +4

    9:37 fascinating and beautiful…thanks for yet another remarkable coding session today!

  • @dashsights4258
    @dashsights4258 ปีที่แล้ว +3

    I am really thankful to you men.this series a integral moment to develop my system level skills with clever data structures and algorithms applied from scratch.

  • @fmesseder
    @fmesseder ปีที่แล้ว +3

    I’m learning so much with your code. Can’t wait for the next part.

  • @reltsnie
    @reltsnie ปีที่แล้ว +2

    fantastic series so far, look forward to watching them all

  • @Luxylux
    @Luxylux ปีที่แล้ว +14

    Coder Space is the kind of guy who gives you GPS coordinates when you ask him for the closest bakery :D
    I'm kidding, I could listen to u doing maths all day long. That's magic, thank u.
    Next topic : Quake engine LOL good luck, carmack lost his mind doing it, he could not sleep at night, based on what Abrash wrote in his 3d book ;)

  • @2dapoint424
    @2dapoint424 ปีที่แล้ว +1

    I punched myself twice to check if I dreaming r not!! Wow, so quick in video release!! Love you for this!!

    • @danisob3633
      @danisob3633 ปีที่แล้ว +1

      punch yourself a couple more times. i need more vids.

  • @Stopinvadingmyhardware
    @Stopinvadingmyhardware ปีที่แล้ว

    That’s just awesome. I had no idea how that worked.

  • @3notdeadyet651
    @3notdeadyet651 ปีที่แล้ว

    Up to the five minute mark, my mind was keeping up. Thanks to your explanation, I was able to stay "Interested".

  • @kimeg7294
    @kimeg7294 10 หลายเดือนก่อน

    Brilliant algorithmic approaches are always fun to practice. Nowadays, everything is just a thick layer of wrappers on top of other random wrappers that depend on other random wrappers. I'm looking forward to watch the collapse of the spaghetti system in its entirety when things get deprecated and out of sync here and there. Nobody wants to fix that crap AND realistically it's too big of a mess to clean up within a reasonable amount of time anyway.

  • @madkhix7612
    @madkhix7612 ปีที่แล้ว +1

    You are freaking amazing dude. Thanks for the video.

  • @Farmpy
    @Farmpy ปีที่แล้ว +1

    I always love when this guy uploads, I just wish he would get more views

  • @ChrisHalden007
    @ChrisHalden007 ปีที่แล้ว

    Excellent. Really enjoyed. Thanks

  • @imalaia8033
    @imalaia8033 ปีที่แล้ว +3

    This guy does things that no sane person would do in python. It's amazing. Although it would be better if he didn't use the tts

  • @pepasjc
    @pepasjc ปีที่แล้ว

    Great video! Looking forward to the next

  • @cartoonyheader1646
    @cartoonyheader1646 ปีที่แล้ว

    It motivates me to unravel this language more, thanks for this

  • @rexraptorsaur
    @rexraptorsaur ปีที่แล้ว +1

    8:53 wow…I told myself “wouldn’t it be funny if I typed 1 instead of i? Next time, I got a weird incomplete rendering of the map because I did in fact type 1 instead of i 😶

  • @Yupppi
    @Yupppi 10 หลายเดือนก่อน

    30 years of progress in hardware has resulted in us being able to write something that was only possible with brilliant engineering in C to be able to be written in Python.

  • @marko-gj1uj
    @marko-gj1uj ปีที่แล้ว

    This is motivating me into studying coding

  • @pyxelbuh
    @pyxelbuh ปีที่แล้ว

    here's a quick note if you don't know already, dooms logic runs at 35 FPS, and frames are called "gametics" in code

  • @Aeduo
    @Aeduo ปีที่แล้ว +3

    Very digestible video about BSP. Wonder how it works in stuff like half life 2. I guess expanded to fully 3D space.

    • @f.artemenkov
      @f.artemenkov ปีที่แล้ว +2

      As I know, BSP in HL2 is used just as additional acceleration structure, not for determining the drawing order.

  • @mtalhakhalid1679
    @mtalhakhalid1679 ปีที่แล้ว

    hahahah binary search tree for doom super fun and intresting

  • @MrBrax
    @MrBrax ปีที่แล้ว +40

    Is this just text to speech?

    • @mirabilis
      @mirabilis ปีที่แล้ว +6

      Yes

    • @Decoder0007
      @Decoder0007 ปีที่แล้ว +12

      No it’s Coder Space

    • @Wojtek_1777
      @Wojtek_1777 10 หลายเดือนก่อน

      No i think he just sped up his voice

    • @Wojtek_1777
      @Wojtek_1777 10 หลายเดือนก่อน

      Put it on .75

    • @taskmanager_1021
      @taskmanager_1021 10 หลายเดือนก่อน

      I think it is, but it doesn't make the video bad

  • @kc_krypto
    @kc_krypto 9 หลายเดือนก่อน

    lol, I nearly thought that was Master of Puppets XD

  • @damus6665
    @damus6665 ปีที่แล้ว

    Incredibile thank you!

  • @CharlesVanNoland
    @CharlesVanNoland 4 หลายเดือนก่อน

    This video is narrated by a synthetic voice, for those that didn't notice - not necessarily an AI generated voice, but definitely a generated/synthesized voice.

  • @Jkauppa
    @Jkauppa ปีที่แล้ว

    try breadth first search closest grid cells first plane ray casting, its just a dot product between the normalized plane (a,b,c|d) and sphere center (x,y,z|1), even if you do each plane ray separately (not plane ray angle limits to speed things up)

    • @Jkauppa
      @Jkauppa ปีที่แล้ว

      the grid square cells (2d/3d) are automatic binary space partition effect

    • @Jkauppa
      @Jkauppa ปีที่แล้ว

      its also real time, not off-line like doom bsp

    • @Jkauppa
      @Jkauppa ปีที่แล้ว

      dealing with each plane ray separately is equivalent to DDA in a square cell grid

    • @Jkauppa
      @Jkauppa ปีที่แล้ว

      just place each wall/object to be a member of any number of cells, to be intersected in real time by the plane ray dot product (each object/wall has a radius of the boundary volume sphere)

    • @Jkauppa
      @Jkauppa ปีที่แล้ว

      this whole algorithm implements the bsp algorithm but different logic, same end result

  • @MusicalArmageddon
    @MusicalArmageddon ปีที่แล้ว +1

    Narrated by an AI text-to-speech voice.

  • @intron9
    @intron9 9 หลายเดือนก่อน

    At 2:20 I think the line #24 has the opposite condition written

  • @OtotoZZZ
    @OtotoZZZ 13 วันที่ผ่านมา

    my map is mirrored and rotated 180 degrees when I run the game and I do not know how to fix it

  • @joshbarros1995
    @joshbarros1995 ปีที่แล้ว

    This is an amazing playlist, I'm coding along and loving it!!!
    I have 2 questions:
    1) Can I easily adapt the python code what we are developing here to work with Heretic and Hexen?
    2) Can I create more levels using Slade or Doom Builder and have it to work on this custom doom engine?

    • @CoderSpaceChannel
      @CoderSpaceChannel  ปีที่แล้ว +1

      this has only been tested with wad files from DOOM 1 and 2

    • @joshbarros1995
      @joshbarros1995 ปีที่แล้ว

      @@CoderSpaceChannel hmmm, I'm gonna test Heretic WAD by end of this month

  • @baslifico
    @baslifico ปีที่แล้ว +4

    Why the speech synth?

    • @Wojtek_1777
      @Wojtek_1777 8 หลายเดือนก่อน

      Fallout 4 reference

  • @cipher3966
    @cipher3966 ปีที่แล้ว

    I hope this series ends with Wolfenstein's "Yeah!!!". No one has made a more satisfying game ending

  • @bonean0118
    @bonean0118 ปีที่แล้ว

    How have you changed the name of your windows C drive?? Love your vids

  • @gameworld5147
    @gameworld5147 ปีที่แล้ว +1

    Can you make a complete python course for beginners to master, I would be very thankful, as well as full pygame tutorial

    • @wildwest1832
      @wildwest1832 ปีที่แล้ว +1

      I definitely get kind of lost on python the language. Its kind of weird vs something like C

  • @samuelmay5670
    @samuelmay5670 ปีที่แล้ว

    Great video! Happy pi day.

  • @Owofbfbajfbsnsn
    @Owofbfbajfbsnsn ปีที่แล้ว +1

    Can I do the voiceover for your next script?

  • @SkyFly19853
    @SkyFly19853 ปีที่แล้ว

    Python can overcome these limitations.

  • @RukDaWho
    @RukDaWho ปีที่แล้ว +1

    Seems the root node is different in my wad, from bfg edition. Can anyone else verify or can someone put the node values from demo wad to verify? It denotes the same vertical it seems so maybe the changed due to longer line def visibility?

    • @CoderSpaceChannel
      @CoderSpaceChannel  ปีที่แล้ว +2

      indeed, the partition line of the root node in the paid version is different from the shareware

  • @boxhead-zk7sn
    @boxhead-zk7sn 9 หลายเดือนก่อน

    It to fast for me to keep up and if i pause it to write i lose track of what your saying

  • @kplays_6000
    @kplays_6000 ปีที่แล้ว

    If you were to move the player up outside of the node it's currently in, is it normal that the player no longer lies inside a bounding box? I'm using the wad from The Ultimate DOOM on Steam

  • @Merlin-gl7zp
    @Merlin-gl7zp ปีที่แล้ว

    How do you record/generate those code writing shots? I suspect that you dont just write code that fast live while recording. Or you rewrite it after just for the shot?

    • @CoderSpaceChannel
      @CoderSpaceChannel  ปีที่แล้ว

      it's a tricky technique

    • @Aeduo
      @Aeduo ปีที่แล้ว +3

      Maybe they record themselves backspacing the code then have the video play backwards :D

  • @johneygd
    @johneygd ปีที่แล้ว

    Huh,are you telling me that if the snes didn’t had a slow cpu that john carmec never would,ve discovered bsp and thus never used the bsp engine in pc doom???
    I tout that pc doom uses a raycasting engine,
    BUT if this is true then we can say that nintendo did had it’s far far far influance in doom by lettin carmec decide to use bsp in doom ibstead rather then raycasting,all because of the slow snes cpu in wich carmec wanted to port wolf3D to ?
    So if nintendo would,ve opted for a 10mhz cpu inside the snes,carmec may would,ve used a raycasting engine in both snes wolf3D and pc doom???
    If pc wolf3D uses a raycasting engine then imagine how much faster a bsp version of it for the pc will be,right??

  • @iwavcYT
    @iwavcYT ปีที่แล้ว

    Do you want to shoot a video tutorial on Pacman?

  • @kaizogaming9855
    @kaizogaming9855 ปีที่แล้ว

    👍

  • @the.zolars
    @the.zolars ปีที่แล้ว

    Stand alone coder, ты? да ну

  • @arercon
    @arercon 5 หลายเดือนก่อน

    Are you always stopping and typing or do you just access the google drive folder?

  • @semihask6560
    @semihask6560 11 หลายเดือนก่อน

    Does this count as a source port?

  • @rzl1234
    @rzl1234 ปีที่แล้ว +4

    sounds like AI speech

    • @Wojtek_1777
      @Wojtek_1777 8 หลายเดือนก่อน

      Because it is sherlock holmes

    • @Wojtek_1777
      @Wojtek_1777 8 หลายเดือนก่อน

      Or its because he sped up the footage

  • @intron9
    @intron9 9 หลายเดือนก่อน

    Python super fanatics when they look at your "BSP node" class and finds no __iter__() or __next__() : 😫
    (just a silly meme, if it isn't going to help, it's just better to avoid adding more stuff)

  • @Edgar-uh5zj
    @Edgar-uh5zj 9 หลายเดือนก่อน

    wat

  • @gmcmaster1985
    @gmcmaster1985 ปีที่แล้ว

    I enjoy this, but the text to speech is obvious and pretty bad

  • @deckard5pegasus673
    @deckard5pegasus673 6 ชั่วโมงที่ผ่านมา

    OMFG trying to listen to a video with music blasting in the background is so irritating

  • @kale.online
    @kale.online ปีที่แล้ว

    Wannabe panen

  • @ogfakii9187
    @ogfakii9187 ปีที่แล้ว

    You’re amazing

  • @casualseraph709
    @casualseraph709 ปีที่แล้ว

    wah-finstein

  • @guilherme5094
    @guilherme5094 ปีที่แล้ว

    👍