r/GraphicsProgramming • • 1d ago

Video After many days of learning, finally.

Enable HLS to view with audio, or disable this notification

After many days of learning and scratching my head around, I was finally able to render a triangle on a screen. I am using Vulkan 1.4 for this. Although I learned this from a youtube channel called constref, but this is a very valuable lesson for me, even if it is a first step to Vulkan.

153 Upvotes

21 comments sorted by

7

u/thatmagicalcat 21h ago

welcome to the club

0

u/Chungunu 21h ago

Thank you :)

4

u/gamedevajay 20h ago

Congrats! That's the "Hello world!" Of graphics programming

2

u/Chungunu 20h ago

Thank you :)

3

u/Naive-Ad-7107 10h ago

Hello to you too!

4

u/Useful_Mode1799 16h ago

That’s cool, congrats! I have experience developing an animated balance display (similar to a slot machine) for Android using Vulkan. It was fun, especially adapting it for different types of GPUs

2

u/Chungunu 14h ago

Wow, that's pretty cool.

1

u/StrangeADT 7h ago

Now build and run it in release mode. I was wondering what was taking so long...

1

u/Chungunu 6h ago edited 0m ago

Actually the shaders are compiling via shaderc API at runtime, so it was taking time. Maybe I should cache SPIR-V shaders next time. I don't know whether it will be right or wrong to cache those things.

1

u/Single-Blackberry866 22h ago

Do you think struggle helps learning? Or it merely helps remembering?

4

u/Chungunu 22h ago

I think so.

-13

u/Macaroon-Guilty 23h ago

Does it make sense to learn that given that llms can do that in a few seconds?

9

u/Chungunu 23h ago

I think learning makes sense, I know LLMs can do those things, but one should still know the basics of graphics rendering. Knowing stuff will make you atleast 10x better than those who are just copy pasting code from AI. I am not AI hater, infact I love it when it explains complex concepts to me. But when it comes to writing core stuff, one should not be handicapped. If you disagree with me, that is okay.

2

u/SnappySausage 22h ago edited 21h ago

Does it make sense to respond? An LLM could have done that for you.

edit: Don't people get I'm making fun of the "just use an LLM" take?

3

u/Chungunu 22h ago

I am not saying one should not use LLMs, but one should have core knowledge when making any rendering application. You can use LLMs for problem solving, making boring things such as GUI editor using Dear ImGui etc.

2

u/SnappySausage 21h ago

I was making fun of the fact the guy was telling you to use AI instead of actually learning something (or doing it for fun).

1

u/Chungunu 21h ago

It's okay. Sometimes I don't understand the jokes.

-1

u/Macaroon-Guilty 20h ago

Just for the record, I asked an open question. Not suggesting anything to anyone

1

u/Perfect-Bit1808 21h ago

Does it make sense to know how to write a comment given LLMs can do that for you in a second?

1

u/Mroz_Game 20h ago

You can also git clone the hello triangle repo, takes even less.

Or you can use bootstrappers and frameworks.

The triangle was never the goal lol, what do you think having this triangle exe is worth to anyone. Nothing, except the knowledge gained in the process.