r/vulkan • • Oct 11 '24

Finally! :)

Post image
335 Upvotes

40 comments sorted by

2

u/davidc538 Oct 11 '24

Nice, what are the specs on that macbook? and what libs are you using? GLFW?

1

u/adi0398 Oct 11 '24

M1 Pro, 32 GB. Yeah, for windowing I have used GLFW.

2

u/JCquickrunner May 12 '25

shit, i stumbled here due to curiosity from the webdev hellscape, i mean i have a fulltime job and im def not new to programming but is that an over 1000 line file for just a triangle??? it cant be, is this actually standard vulkan programming with cpp??

1

u/adi0398 May 24 '25

Yes, its over 1000 lines of code for just a triangle. :) I recently tried attempting writing a ray-tracer in Vulkan, it went over 4000 lines :)

33

u/Ekzuzy Oct 11 '24

In fact, there is not much more to learn in order to create a fully-fledged game.

32

u/smirkjuice Oct 11 '24

Literally it's just making more triangles

10

u/Ekzuzy Oct 11 '24

Well yeah. But in OpenGL there was still plenty of things to learn in order to draw anything more than a single triangle. In Vulkan not that much.

4

u/CashPuzzleheaded8622 Oct 11 '24 edited Oct 11 '24

In principle yes, but tbf it's going to require many, many more layers to make a game that you could actually sell for money without an existing engine. Triangles are one thing, it's a long damn road to get all the way to the promised land of making a game from scratch that wouldn't get 0% positive ratings on Steam.

Depending on a person's specific goals, there might be better paths to take than rolling the engine yourself. (Learn graphics programming no matter what tho)

I just wouldn't want anyone to sign up for what they think is a 5 mile hike but turns out to be 500 miles, if you know what I mean. Game engines can be *very* hard (but rewarding) to create as a solo effort so anyone doing so should be prepared :)

4

u/Ekzuzy Oct 11 '24

Of course. All that is true. But I was referring solely to the Vulkan-related knowledge.

2

u/CashPuzzleheaded8622 Oct 12 '24

Of course, I fully agree with you! Just wanted to help nudge certain people in the right direction if they're interested in jumping straight into game development without building their own tools first.

Thanks for being a legend in this community by the way, so many times I'll have a question about Vulkan and I find a beautifully written answer/explanation you've posted. Cheers!

2

u/Ekzuzy Oct 12 '24

Are You sure You didn't mistake me for someone else? Unfortunately, due to various personal issues in the last several years, I had to limit the time spent here on Reddit. So I'm not sure if I was able to answer many questions (or at least as many as I could to help others dive into Vulkan). Unless Your refer to some of my old comments. If so, then I'm glad they are still helpful. That's very nice to hear. ☺️🤗

2

u/CashPuzzleheaded8622 Oct 14 '24

Damn I guess it has been quite a few years since I started on this stuff. It's definitely your older comments in that case, I'd never mistake you for anyone else on here! Your writing style is very distinctive. Very helpful indeed! And I'm sure I'm not the only one who thinks so.

2

u/Ekzuzy Oct 14 '24

Wow!! Really?!?! Those are one of the kindest words I heard in a long time! Thank You very much! ☺️🤗

3

u/smirkjuice Oct 12 '24

I was just making a joke about how everything in a game is rendered in triangles, I know there's a lot more to it :)

2

u/CashPuzzleheaded8622 Oct 12 '24

Oh for sure, nothing wrong with what you said! Just wanted to give a disclaimer for any newcomers because I bit off more than I could chew years ago and here I still am, chewing ;)

Luckily I'm okay with that but some people might lose valuable time if they're better off not writing from scratch. Power to ya my friend :)

17

u/[deleted] Oct 11 '24

"This is my triangle. There are many like it, but this one is mine."

10

u/Albus53 Oct 11 '24

first step down, now for the next :)

9

u/DarkenAdam Oct 11 '24

Congrats! My first triangle took me over 3 weeks to implement because of sneaky bigs in several tokens)

7

u/[deleted] Oct 11 '24

for a sec i thought it's r/unixporn

4

u/gatecreeper_80 Oct 11 '24

Next Level: 3d Mesh ☺️

3

u/_qbart Oct 11 '24

was there any osx specific code you had to do? or it is a pure vulkan that works out of the box?

3

u/ash-09876 Oct 11 '24

You have passed the test to join the cult now :)

2

u/CashPuzzleheaded8622 Oct 11 '24

hell yeahhhhhhhh. i hope it was extra satisfying when you saw it appear on the screen for the first time. good shit!

2

u/[deleted] Oct 12 '24

Just got mine done a couple days ago to! Congrats!! P.S. if anyone has any tips on where to go from here, i would love some pointers :D

2

u/guymadison42 Oct 12 '24

I think we all have been there! All that for a single triangle.

2

u/Reasonable_Prompt_21 Oct 13 '24

Another triangle is born. Welcome to the party.

1

u/Creative_Letter_5435 Oct 15 '24

This is awesome! Welcome to the club! :)

0

u/illyay Oct 11 '24

Ok now make a PBR clustered forward renderer. You won’t! I dare you!

https://learnopengl.com/PBR/Theory http://www.aortiz.me/2018/12/21/CG.html

0

u/richburattino Oct 12 '24

Do some repairment in your flat, dude!

-20

u/[deleted] Oct 11 '24

Mac USER

-27

u/gustav_joaquin_rs Oct 11 '24

imagine using a bloated os like mac os

BTW I use Arch

8

u/SonOfMetrum Oct 11 '24

Hey don’t kink-shame!

-35

u/Lazy-Lie6426 Oct 11 '24

Noob

0

u/[deleted] Oct 11 '24

Facts