How I Added Textures to my Raycaster

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

КОМЕНТАРІ • 24

  • @EPICDUDE31
    @EPICDUDE31 Рік тому +30

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

  • @prouddesk6577
    @prouddesk6577 Рік тому +32

    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 10 місяців тому

      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 9 місяців тому

      @@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 7 місяців тому

      good one lol

    • @doomslayerthesentinel.6707
      @doomslayerthesentinel.6707 6 місяців тому +1

      Lmao

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

    3:46 It is indeed released under The Unlicence

  • @variegatus4674
    @variegatus4674 3 місяці тому

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

  • @marinvarivoda9646
    @marinvarivoda9646 6 місяців тому +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

  • @Tom-tv2yo
    @Tom-tv2yo Рік тому

    I build mine with python too only i was using sdl2

  • @MrLump
    @MrLump 5 місяців тому

    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 6 місяців тому

    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.

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

    Amazing

  • @Nisox
    @Nisox 8 місяців тому

    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,

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

    First!

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

    Obunga