ASCII 3D RENDERING [C++]

Поділитися
Вставка
  • Опубліковано 9 січ 2025

КОМЕНТАРІ • 38

  • @skwiglyman2052
    @skwiglyman2052 2 роки тому +20

    This is beyond cool

  • @aeideevie6237
    @aeideevie6237 2 роки тому +10

    This looks soo awesome that it feels impossible
    Great work

  • @incomplete628
    @incomplete628 Рік тому +4

    I like the look of the custom Gnome desktop. Cool code btw!

  • @plashplash-fg6hd
    @plashplash-fg6hd 2 роки тому +3

    This is really impressive.

  • @akaidenki5526
    @akaidenki5526 Рік тому +2

    Did you use libCACA or your own renderer ? really cool btw.

  • @Mezziuu21
    @Mezziuu21 Місяць тому

    Pressure pretty prefer awesome

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

    this is amazing!!!

  • @purple.requiem
    @purple.requiem 2 роки тому +7

    Did you use ray tracing or mathematical computations to render the scene?

    • @suika635
      @suika635  2 роки тому +6

      Yes, I used ray marching (not tracing).
      If you'd like to read the code, please find it in this video's comment section; I replied to someone who wanted the code before.

  • @kairu_b
    @kairu_b Рік тому +1

    Hypnotizing

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

    Amazing!

  • @nicolasn12
    @nicolasn12 4 місяці тому +1

    *C U B E*

  • @lucapacucci285
    @lucapacucci285 Рік тому +1

    wait this isn't the ps2 startup

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

    I can't believe that is ASCII

  • @NoName-tj8dm
    @NoName-tj8dm 2 роки тому

    This remind me of tesseract in Interstellar

  • @mariocamspam72
    @mariocamspam72 3 роки тому +5

    How does it not flicker?

    • @suika635
      @suika635  3 роки тому +7

      It overwrites instead of clearing the entire screen.

    • @purple.requiem
      @purple.requiem 2 роки тому

      @@suika635 pls teach me

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

    Yo where that github url at though..?

  • @timetoplay4614
    @timetoplay4614 3 роки тому +1

    Hey can you give the source code for this?

    • @suika635
      @suika635  3 роки тому +3

      I'm sorry but it seems that I've lost this file 😔
      I guess it's about 200 lines of code.
      It consists of 2 parts: raymarching and converting calculated color to a character based on its density.
      Generated characters are stored in a string, which makes it possible to print thousands of characters without flickering.
      Additionally, you should move the cursor to (0, 0) and then overwrite instead of clearing the whole screen.

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

      @@suika635 Can you please provide the code for at least one cube rendering? I need this for my university project. Plz😭

    • @suika635
      @suika635  3 роки тому +3

      @@timetoplay4614 OK, I'll rewrite it when I'm at home

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

      @@suika635 Thank you so much ❤️‍🩹

    • @suika635
      @suika635  3 роки тому +4

      @@timetoplay4614 drive.google.com/file/d/1yAAMlRpcSe-jnLigRRUJr8UNsZ1rfi3t/view?usp=sharing
      This example program is single-threaded unlike the one in the video because I don't want it to be too complicated.
      If you would like to make it run faster with higher resolution, you can split the iteration part and assign each calculation to a thread.

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

    Repo link please. This is awesome btw.

    • @suika635
      @suika635  Рік тому +1

      Hi, I must apologize that I could not find the original file because it's been a long time since I uploaded the video.
      I rewrote the code partially, so I hope this is good enough to show you the main idea of the program:
      github.com/Suikaaah/ConsoleRayMarcher
      Also, you can make repetitive patterns with mod function.
      (There are a lot of websites which explain about it; You might want to check them out!)

    • @kinershah464
      @kinershah464 Рік тому +1

      @@suika635 no issues and thanks for sharing the link 👍

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

    How?

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

      Btw is C# capable of this

    • @suika635
      @suika635  4 роки тому +4

      @@th3ta Yes, it is. But the performance may decline compared to C++.
      By the way, you can make it by implementing ray marching.
      Declare a vector whose initial point is an eye(camera) and terminal point is a pixel. Lengthen it until it hits an object and then get color of the intersection. Do the same thing for all pixels and it will work.

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

      @@suika635 Thx. You've done great work

  • @Marcel.66
    @Marcel.66 4 роки тому

    yeah, what else.