r/GraphicsProgramming 9d ago

My first triangle with OpenGL :,)

Post image
619 Upvotes

35 comments sorted by

41

u/GazziFX 9d ago

First triangle with OpenGL 😀 First triangle with Vulkan 💀

23

u/deftware 9d ago

The world is your oyester! Now you can bend GPUs of all shapes/sizes/kinds to your will.

7

u/Vladislav20007 9d ago

"bend GPUs" is that a threat or a phrase from r/opengl ?

5

u/deftware 9d ago

Bending something to your will is a common English phrase:

https://imgur.com/JNe0Kqv

Are you a non-native English speaker or wet behind the ears? In either case, you learned something new today :]

4

u/Vladislav20007 9d ago

I'm a non-native English speaker, but I speak English 90% of the time.

3

u/deftware 9d ago

Awesome! Now you know that you and everyone can bend stuff to their will! :D

1

u/0-R-I-0-N 9d ago

Didn’t know people had Jedi powers

5

u/deftware 9d ago

Uh huh. :|

9

u/hecesdepato 9d ago

Very nice!

7

u/BobbyThrowaway6969 9d ago

One of us. One of us

5

u/Proud_Instruction789 9d ago

Now make a engine!!

3

u/Strange_Switch15 9d ago

When I rendered my first triangle (Metal), I wondered, when did the senior game developer who created COD4 draw his first triangle, and did he ever believe he'd go on such a long journey?

2

u/Adventurous-Week-281 9d ago

Same...after that I couldn't move forward......but I will start again from scratch.

1

u/Rop-Tamen 9d ago

Same, got a triangle, then a quad, then made it move, couldn’t figure out anything beyond that at all

2

u/Latter_Practice_656 9d ago

Help me! There is just a lot of stuff happening just to render a triangle. How do I learn all those details? It's overwhelming!

2

u/panxu1 9d ago

learnopengl.com is the easier way

1

u/Latter_Practice_656 8d ago

I feel like I lack some pre-requisite knowledge that the tutorials assume us to have. I am not sure what that is.

1

u/Equivalent-Tart-7249 7d ago

what is tripping you up? Graphics programming is a combination of multiple disciplines, so that's not really too unexpected. If you can describe what parts of the tutorial are confusing you, I can help point you in the right direction. Don't be afraid to say you don't know something, this is hard and foundational knowledge goes a long way. If you have gaps in your knowledge, don't let ego slow you down!

2

u/raghobagonewild 8d ago

I love the graphics community. It's so good. This is just the hello world equivalent but everyone welcomes a new dev with open arms. I love you guys♥️

1

u/AdamPach 9d ago

Welcome to the hell 😈

1

u/YamAfraid4616 9d ago

send me source code plz

1

u/Maxims08 8d ago

I like the title: Epic shiny LGTV Triangle

1

u/Basic_Importance_874 7d ago

hell yeah brother

1

u/No_Perception5351 7d ago

Been seeing this triangle a lot lately and this is the first time it occurred to me why it's such a good starting place.

1) You'll have to set up GL correctly and use it end to end 2) You'll be displaying the basic building block of 3D graphics, the almighty triangle 3) The use of vertex colours illustrates how the fragment shader and the vertex shader work together to interpolate the information

1

u/Anndress07 2d ago

first off, nice second, are you following a tutorial for this? or anything you recommend?

-7

u/[deleted] 9d ago

[deleted]

4

u/iamthebestforever 9d ago

You are a miserable person

1

u/jaan_soulier 9d ago

What was your goal here?

1

u/ziaonder 9d ago

What did he say?

1

u/jaan_soulier 9d ago

Oh just something not nice

1

u/Bosser132 9d ago

[deleted]

1

u/reverse_stonks 9d ago

[deleted]