f-o-jd
f-o-jd
  • 13
  • 940
Coding 2D Raytracing with Reflection in C++ (Part 7: Reflections with SDL_Rect)
This video is just the continuation of the previous one, where I'm coding reflections on SDL_Rect objects!
Now that all this is done, I'm not sure if I will ever find the motivation to implement the Obstacle class to add reflections with other types of shapes lol
0:00 Plan for the video
2:34 Changing arguments of CalculateReflection
5:12 Changing return type of CalculateReflection
5:34 Adresses and stuff...
7:44 Reflections with obstacles
48:42 Bringing the LightSource back
มุมมอง: 13

วีดีโอ

Coding 2D Raytracing with Reflection in C++ (Part 6: Reflections)
มุมมอง 289 ชั่วโมงที่ผ่านมา
In this video I wrote a method to draw a ray's reflections and a method to calculate the necessary information to draw them! I'm happy with the way it turned out, but I think I will soon have to do some cleaning up again lmao. Next up is doing the same but for obstacles! 0:00 Visualizing the problem 3:45 Adding nb_reflections attribute 5:27 Visualizing the problem again 8:42 DrawReflections 37:...
Coding 2D Raytracing with Reflection in C++ (Part 5.2: Being undecided!)
มุมมอง 2512 ชั่วโมงที่ผ่านมา
Since I haven't really planned out the entire project I spent a good amount of time thinking about how I'm going to define the Obstacle class, but then I realized it would be more interesting to start thinking about reflections instead! Next video will be about implementing reflection with the window borders, and the next next one should be about implementing reflection with SDL_Rect objects! 0...
Coding 2D Raytracing with Reflection in C++ (Part 5.1: Scrolling event) (sorry for bad quality!l)
มุมมอง 5121 ชั่วโมงที่ผ่านมา
I'm back at my parents' house for a few days so I don't have my main computer, but I really wanted to advance on the program so I cloned the repo on my macbook and implemented mouse wheel events real quick lol. SDL2: wiki.libsdl.org/SDL2/FrontPage 0:00 Trying to understand the structure of MouseWheelEvent 1:13 Adding a setter and getter for the radius in LightSource 2:49 Attempt at using the mo...
Coding 2D Raytracing with Reflection in C++ (Part 4: Refactorization and modularization)
มุมมอง 8221 ชั่วโมงที่ผ่านมา
Alright so in this video I basically just refactored the entire code to make it more readable and maintainable (I think?). I also did a lil bit of modularization so my profs would be proud of me. Not the most interesting part of the project but necessary from time to time. Next up is making it so that the radius of a LightSource object can be changed with the mouse wheel, removing the small hai...
Coding 2D Raytracing with Reflection in C++ (Part 3: Uniformly spaced rays and collision detection)
มุมมอง 7321 ชั่วโมงที่ผ่านมา
REMINDER FOLKS: NOTHING IN THIS EVER-CHANGING WORLD IS CONSTANT (viva tautologies) In this video I added rays to the LightSource class (otherwise it wouldn't really a light source...) and added collision detection with obstacles with the shape of rectangles! Next video will be about CLEANING UP THE CODE (very important), and then fixing the hair issue on the LightSource when it's a circle, and ...
Coding 2D Raytracing with Reflection in C++ (Part 2: Characterizing rays and rendering them)
มุมมอง 81วันที่ผ่านมา
In this video I created a Ray class that can draw a ray in any direction! I took some time before recording to think about how to approach this and I hope I did a decent job at explaining my solution. Next up will be giving a LightSource object a fixed amount of Ray objects and distributing them equally along the border of the LightSource :) And then creating obstacles in the window and handlin...
Coding 2D Raytracing with Reflection in C++ (Part 1: Modeling the problem and setting up the basics)
มุมมอง 44วันที่ผ่านมา
In this first part I create the window and a movable source of light (though it doesn't emit any light yet...). In the next session I'll try to write a class for the rays, and add a fixed amount of them to the source of light. I began learning SDL2 4 days ago and this video went pretty smoothly because I mainly just repeated the window setup process and disk drawing process that I had already d...
Coding osu! mania in C++ (part 2)
มุมมอง 15วันที่ผ่านมา
This time I created falling notes in the four columns. Next step will be to check for the hit timing! I DON'T KNOW WHERE I'M GOING BUT IT'S OKAY I'LL FIGURE IT OUT. I will also do some research on generic programming because it might come in handy here.
Coding osu! mania in C++ (part 1)
มุมมอง 15วันที่ผ่านมา
Wasted about 20 minutes drawing rectangles the wrong way but player's tiles ended up working as I wanted! Next up will be drawing the falling tiles and implementing the timing mechanic. SDL2: wiki.libsdl.org/SDL2/FrontPage
Gold Scarab Talisman location Elden Ring
มุมมอง 216 หลายเดือนก่อน
How to Easily get the Gold Scarab Talisman in Elden Ring
Learn to jitter click in less than 3 minutes
มุมมอง 1211 หลายเดือนก่อน
Click test: www.mcrpg.com/kohi-click-test/
Unboxing and setting up the CTL-4100 (Intuos S) for osu!
มุมมอง 488ปีที่แล้ว
TabletDriver page: github.com/OpenTabletDriver/OpenTabletDriver Tablet Amazon link: www.amazon.com/Wacom-Drawing-Software-Included-CTL4100/dp/B079HL9YSF Blue Zenith: th-cam.com/video/vatcanQQJvQ/w-d-xo.html My osu! profile: osu.ppy.sh/users/10731068 Map played at the end: osu.ppy.sh/beatmapsets/638950#osu/1355247

ความคิดเห็น

  • @fojd26
    @fojd26 9 วันที่ผ่านมา

    In the next video I’ll take a bit of time to clean up the code, because I kind of rushed things towards the end lmao

  • @fojd26
    @fojd26 10 วันที่ผ่านมา

    The reason I insisted on writing an algorithm to get the exact coordinates of the point of collision with the edges of the window is because at some point I will want to add reflection, and for this I will need the coordinates of the point where the ray collides with a surface.

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

    Are you playing dragging or hovering?

    • @fojd26
      @fojd26 12 วันที่ผ่านมา

      Hovering because I don't have a tablet cover and I don't want to damage the surface too much

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

    My pad is a little old, my mother bought it, and I don't remember when. We cannot find the cord that came with it, so I found a random one around my house. After I downloaded the driver and reset my laptop- no instructions came onto my screen, if that's how it works. Is this normal and I'm just missing something, or do I need a specific cord?? I'd really like to get it to work so I can draw, but I'm getting really frustrated.

    • @fojd26
      @fojd26 12 วันที่ผ่านมา

      Hey I know I'm replying late but did you manage to fix the issue

    • @Starz_Mercury
      @Starz_Mercury 11 วันที่ผ่านมา

      @@fojd26 Yes, I did!! It's still a bit of a ahssle to figure out how to use it properly, but it works 😊😊

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

    Can u tell me what software is the best for osu plz? cuz i bought this tablet now and in osu it's just sitting in the top left corner

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

      Might have to do with one of your settings in the game, I think it's called TabletOS or something along the lines of it

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

      I had to turn something off in the open tablet driver

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

      @@Nia_HX Oh alright, glad you could fix the issue