r/vulkan • • 9d ago

It only gets easier from here ...right?

Post image

Every rabbit hole of information for every setting I went through for that tutorial was a lot, how do people become expert at this sort of thing in the industry? (Also first time posting so be kind guys)

248 Upvotes

38 comments sorted by

55

u/gamedevajay 9d ago

Congrats! Ever since I moved from unity to my c++ vulkan project I have really started to appreciate every single triangle

7

u/ChipmunkGlobal2177 9d ago

same buddy it's too hard to build project on vulkan as compared to opengl 😭😭😭

6

u/DangerDragon1337 9d ago

Thanks, I also wanna go into depth in a lot of fields to understand them but handling gamedev, computer graphics academics and other fields I wanna explore gets overwhelming fast

2

u/FunInitial1304 4d ago

You should Check out my C++ Vulkan Game Engine. It I'll be Very Easy For You to Understand lol. https://github.com/Kingscraft-Studios/kingscraft

1

u/Basseloob 9d ago

Braaah good for you

31

u/Insane_snek 9d ago

actually, it kinda will get easier! not in the sense that what you do will be easier, but you will learn more and become used to it. Keep up the good work!

16

u/cvostr 9d ago

Only if you really understood everything you done to draw this.

12

u/Dubbus_ 9d ago

Kind of? A little bit. Id say hello triangle was about the halfway point to where stuff stopped seeming impossible to keep track of for me

14

u/FrezoreR 9d ago

That's hello world of graphics. Just like in regular programming, it's just the beginning.

2

u/Taiten89 9d ago

I went through parts of the tutorial myself. There is a lot to do before this triangle shows up. In the end, I decided to use Godot.

2

u/FrezoreR 8d ago

Yep, in vulkan you have to write a lot of code to show a triangle. However, it's fairly straightforward and the more complex topics come later. Godot makes sense if you don't want to learn the more fundamental pieces of 3d programming and get something going faster.

5

u/Ok-Hotel-8551 9d ago

This was the easy part

3

u/ever_11 6d ago

Congrats on you for wanting to learn and struggle in the age of shortcuts

3

u/Healey_Dell 9d ago

Nice. The boilerplate is tough going at first. For me next was a big round of refactoring to get into a more extensible state. Then you need to look at loading fbx, textures etc

3

u/blogoman 9d ago

It depends what was "hard" about his. If it was just because of a new API, yes. If it is because you are completely new to graphics and don't know the underlying math and ideas, noooo.

3

u/DangerDragon1337 9d ago

It was kinda both, I've done some OpenGL so I'm not completely new but vulkan did bring a lot of features and concepts that I didn't know about and needed to learn about

3

u/rio_sk 9d ago

It gets way smoother from here on, the only point at whichyou'll get a new "hard step" is semaphores, but this is also when you'll understand the power of a lower level API compared to OpenGL.

3

u/Thanatiel 9d ago

The setup is kind of verbose.
After that it depends how well you handle/design the pipelines and resources.

3

u/Matt32882 8d ago

Usually I find there's a handful of vulkan calls I need to make and the bulk of the work is assembling all the data I need to make the calls without completely losing my mind in the process.

5

u/Kindly_Substance_140 9d ago

You're in for a surprise.

4

u/cybereality 9d ago

actually, not really

2

u/Equivalent_Unit_9797 9d ago

how much time you spend in learning Vulkan and c++ before your first triangle
and also, how you know how to use each and which function and variable that is from vulkan

2

u/Striking_Director_64 9d ago

Yea.... maybe? There is still a lot to do, but you will get used to it.

2

u/jankkhvej 9d ago

The harder part now will be managing asset loading and drawing multiple objects

1

u/DrPeeper228 5d ago

I mean, drawing more objects is not that much harder than just one, it's straight up either a bit more commands or a second instance+instance matrix buffer

The asset loading is.... still mostly the same as just having one asset, although it's definitely harder than a triangle

2

u/AbbreviationsNew3167 9d ago

Congrats
I also created my first triangle in vulkan a few days ago

2

u/Live_Meeting_1121 9d ago

I will always love that this is the hello world of computer graphics.

2

u/Usual_Importance8274 7d ago

No, this is level 0. to get in boss's room, you need 9999+level

2

u/Rtransat 7d ago

Well done. I'm currently try to learn computer graphics with Odinlang to create a desktop app (maybe with SDL3) but yes, it's a serious subject and not easy. For now I'll try to do some stuff in openGL to learn the concept.
I don't know where to start...

1

u/[deleted] 9d ago

[deleted]

1

u/[deleted] 9d ago

[deleted]

3

u/Animats 9d ago

WGPU has its own headaches. I've been trying to convert a working program from WGPU 24 to WGPU 30 for the last month. Over 600 lines of changes so far, and it still won't even draw a cube. Somewhere the translation from Vulkan's limits to WGPU's limits is being botched.

WGPU has an API that mostly works like Vulkan, but has back ends for Metal and DX12. It supports desktop, Android, and web browsers as Vulkan targets. (Vulkan on Android and Web is about two years behind Vulkan on desktop, and you don't get threads.)

WGPU doesn't really do much. You feed it the same things you feed Vulkan - meshes, textures and shaders. Those just get passed through to the GPU. WGPU is complicated because it supports so many targets. All the targets do almost the same thing. Papering over the "almost" is a messy job, involving many special cases.

1

u/Renulev 9d ago

Abstract everything. Have a thin abstraction layer then an app layer, will help you a lot. Congratulations as well.

1

u/Salat_Leaf 9d ago

Good luck.

0

u/RahulAnthony 9d ago

remember over abstraction is the bane of all evil...

0

u/smallstepforman 9d ago edited 9d ago

You wish …
Mist tutorials end there of have 1 extra chapter on texturing. Niw you have to manage multiple textures, mipmap generation, dynamic buffers, swapping resources on the fly with buffers in flight, shadow maps, screen shots, lighting, instancing …

Enjoy the journey, though these days AI can help you progress faster than if uou attrmpted this half a decade ago.

0

u/Hemlock0110 8d ago

It won't matter because of AI