How I Added Textures to my Raycaster

Поделиться
HTML-код
  • Опубликовано: 10 окт 2024
  • code: github.com/Gpo...
    This is part 2 of a video where I created a raycasting engine.
    Advanced programming projects (affiliated): app.codecrafte...
    My microphone (affiliated): tinyurl.com/2h...
    RUclips growth tool (affiliated): vidiq.com/l4fp...

Комментарии • 20

  • @EPICDUDE31
    @EPICDUDE31 Год назад +26

    The fact he put Rtx on the thumbnail but its only just raycasting is pretty funny

  • @prouddesk6577
    @prouddesk6577 Год назад +30

    1:48 by using C++

    • @legacywolf443
      @legacywolf443 Год назад +4

      I like C better, but I like the based idea of not using Python for anything that must be fast(er than calculating everything on paper)

    • @venoenix
      @venoenix 7 месяцев назад

      c++ is 12,500x faster the python in many cases and yes c is easier to learn but if you know how to code in c++ you can basically do anything@@legacywolf443

    • @colly6022
      @colly6022 6 месяцев назад

      @@legacywolf443 would you really gain much by using C instead? im pretty sure there are more optimisation options for C++ out there. like parallel processing libraries that work well with the standard library.

    • @EliasWolfy
      @EliasWolfy 4 месяца назад

      good one lol

    • @doomslayerthesentinel.6707
      @doomslayerthesentinel.6707 3 месяца назад +1

      Lmao

  • @variegatus4674
    @variegatus4674 13 дней назад

    Were you ever able to implement floor textures to this? ;p

  • @ljubisaknezevic9040
    @ljubisaknezevic9040 Год назад +2

    3:46 It is indeed released under The Unlicence

  • @marinvarivoda9646
    @marinvarivoda9646 3 месяца назад +1

    1:48 Dude, precomputing that 20*i really hurt my brain. In normal programming language, operations like integer multiplication should be like one cpu cycle, meaning basically free. This computation is much faster than fetching data from memory, so having a lookup table makes 0 sense. Since you are using python, it's not clear how this translates to instructions but the same principle applies

  • @Nisox
    @Nisox 6 месяцев назад

    While pygame is slow, this is actually more of a problem that there is a lot of looping when drawing a texture on to a wall. GPU is much more suited to a problem like that, because of a high parallelism that is happening. So writing a shader that does that would be much more effective,

  • @MrLump
    @MrLump 2 месяца назад

    Damn, my computer only uses templeOS, I’ll have to make my own god textures. (My pc broke and I stupidly put temple OS on my Wii)

  • @FATBOI_GX
    @FATBOI_GX 3 месяца назад

    Pygame uses the cpu to render graphics. What you want to do is use Py Opengl wrapper or a Vulcan wrapper for python to render graphics on the gpu. Even use a python compiler like numba to increase the FPS.

  • @Tom-tv2yo
    @Tom-tv2yo 9 месяцев назад

    I build mine with python too only i was using sdl2

  • @dijik123
    @dijik123 Год назад

    Amazing

  • @Wallee580
    @Wallee580 Год назад +1

    First!

  • @whydopeopledieinc9612
    @whydopeopledieinc9612 Год назад +3

    Obunga