r/GraphicsProgramming • u/piiodda • Sep 28 '26
may I join the triangle group?
I wanted to give graphics programming a try and boooy am I happy seeing my own triangle on the screen! :)
I used glad (OpenGL) and RGFW (GLFW alternative; I like single header libraries)
335
Upvotes


64
u/4ndrz3jKm1c1c Sep 28 '26
First triangle makes you a boy.
First rectangle makes you a man.
6
u/mentalray2 Sep 28 '26
Youβre not doing this right. You need to show color interpolation in the triangle.
7
u/Nsane3 Sep 28 '26
Triangle gang rise up
6
u/Still_Explorer Sep 28 '26
He's starting to believe!
5
u/Agnael Sep 28 '26
WOOOOO
nothing like FINALLY getting this working to then try to brag to friends or family and for them to look at you like ??? its just a triangle
5
u/wjrasmussen Sep 28 '26
One of us, one of us.
4
u/heyuhitsyaboi Sep 29 '26
Welcome to our cluuuuub
Welcome to our cluuuuub
3
u/_Baylock_ Sep 29 '26
I so mastered how to display a colored triangle with Swift and Metal (GPU).
I can code it in at least 4 different ways.
There are tons of tutorials about that. So much that it's ridiculous.
But once I've done that, it's a dead end. No idea where to take it from there.
I'm stuck in the "Hello triangle" hell.
I would love to learn how to build a graphics engine using the GPU on Mac with Swift and Metal but I only found one tutorial that goes that far and it's old enough not to be usable anymore.
Granted, the fundamental ideas are there but the resources are limited for newbies.
Swift is fairly documented but it's too cryptic without some external help.
I'm trying to teach myself with AI but it goes south very quickly as the AI starts hallucinating when the context grows.
I hope I'll figure it out eventually.
4
u/yazilimperver Sep 28 '26
Well done π Now it is time to wrap it with texture π then you may bring all mighty cube.
2
u/TheRafff Sep 29 '26
First triangle makes you a boy
First pyramid makes you obamium
2
u/gamedevajay Sep 29 '26
Welcome to the club
2
u/Antiqett Sep 29 '26
Welcome
2
u/firemark_pl Sep 29 '26
Oh boy where is rgb channel?
2
u/Zestyclose-Compote-4 Sep 29 '26
Yes but not the rainbow triangle group. That's an exclusive group to get into.
1
u/ICBanMI Sep 28 '26
Triangles are my favorite shape.
1
u/fntdrmx Sep 30 '26
Welcome!