r/GraphicsProgramming • u/Ok-Conversation-1430 • Jun 25 '25
we are all like this, aren't we?
6
u/Runneth_Over_Studio Jun 25 '25
Just got my first triangle last night. Feeling great about it. Open reddit and see this immediately.
1
2
149
u/Heuristics Jun 25 '25
I'm 5 years in, still far from drawing a triangle.
The part of the asset manager that interfaces with the file system is nearing completion though.
15
7
u/Dangerous_Tangelo_74 Jun 25 '25
Why can i relate so much to this comment? While i can render arbitrary objects i am far from having anything and i am in since 2016....
2
u/EatingBeansAgain Jun 25 '25
Are you creating a GUI?
4
u/Heuristics Jun 26 '25
eventually.
this is what I was calling an asset manager: https://github.com/ChristofferGreen/PathSpace
It's just a data structure to store data in a multithreaded way, where you can add executions (lambdas) that also can create data into the data structure.
That will eventually be the asset manager as well as the scenegraph and it will be able to hold widgets like buttons or text editors that a renderer can... render.
54
u/PersonalityIll9476 Jun 25 '25
What's funny about this is that it captures the common misconception that a game engine is a renderer. How many "engines" on GitHub have no physics, no collision detection, no sound, have hard coded scenes, no event system, no entities or states...
And if you try to point that out, sometimes people literally don't believe you. Like...of course it's a game engine, it's rendering Sponza ain't it?
13
u/Wenter_alpha Jun 25 '25
I know where youāre getting at but a game engine is just a piece of software you use to make a game. If your game doesnāt need physics, collisions, a complex scene graph etc then the engine most certainly does not need to implement them, not all engines have to be giant mainline general purpose game engines that can āmake everythingā, one of the advantages of making your own engine is that you can cut a lot of the unnecessary fluff (but yes a lot of āgame enginesā out there are just glorified mesh renderers)
16
u/PersonalityIll9476 Jun 25 '25
All you're saying is that you only need to implement features that your game requires. That doesn't change the fact that every game requires more than a renderer.
9
u/RefrigeratorKey8549 Jun 25 '25
I got a graphics triangle in a day, then spent the next two weeks writing a framework so I never had to write an OpenGL function again.
8
u/l0l Jun 25 '25
Wrote my own software renderer. That first triangle felt so good! I wish I could recapture that feeling.
4
u/JustNewAroundThere Jun 25 '25
I have more than that :)) https://www.youtube.com/embed/OlzLRJDYYVk
3
Jun 25 '25
same, but this is like a year old at this point, i havent had much 3D updates but the latest engine version is close to completion which has a bunch of new features which will have a new video for it coming soon
3
4
u/Tableuraz Jun 25 '25
After 3 years of work I'm experimenting around with sparse textures, seeing the scene "materialize" is pretty satisfying to me š
3
3
u/LordRybec Jun 26 '25
I can go faster, but I've done it so many times. I taught an undergrad game dev course for several years, and every semester I would code up a fairly basic engine in Python, unscripted, in class, over the course of 3 or 4 class periods. I used png graphics, and it was pure 2D, but writing to code to draw an interpolated triangle like is pretty easy. (I also started writing real-time video games when I was 12, so I had a significant amount of prior experience as well.)
That said, I've also done my share projects that remind me of the example! Experience can help, but all it really does in game development is push the back the point where things slow down. I can write a basic game engine that can handle tile graphics, take keyboard and mouse input, and do some basic character animation in maybe 12 hours (four 3 hour class periods). It's still not a complete game though, and I tend to get stuck at menus and other places where input focus becomes important.
Anyhow, my students were expected to write a full (but fairly simple) game of their own design in half a semester. (The first half we designed board games, to learn and demonstrate general principles of game design.) So my in class demos were mainly to give the students a strong enough head start that they could finish in time. Otherwise they totally would have had nothing more than an interpolated triangle by the end of the semester!
But yeah, game dev is hard. Even with experience it's hard. I'm amazed at self taught programmers managing to pump out a whole video game, solo, in their early 20s, in less than 5 years.
And now I want to pull up Python and write up a simple shader using Pygame to draw that triangle. (I did take a 3D graphics course in college, where we wrote up a basic 3D renderer. The interpolated triangle was an early assignment, and honestly, it was pretty fun!)
3
u/Acceptable_Bit_8142 Jun 27 '25
The funny part is I wanna start making a game engine in c but Iām a beginner at it
2
u/corysama Jun 26 '25
This was real life for PS2 devs. The VU1 was a harsh mistress.
Or, for anyone working on a full art pipeline https://rampantgames.com/blog/?p=7745
1
1
u/deebeefunky Jun 26 '25
First I started with Raylib, then I tried drawing to a bitmap manually, then SDL2, then openGL, now I am on Vulkan and things are finally beginning to take shape.
I have triangles, rectangles, images, vertex and fragment shaders, labels, buttons and textfields. Thereās still a lot of work to be done though.
Iām glad you posted this, itās encouraging to see that Iām not the only one.
1
1
u/SnurflePuffinz Jun 27 '25
Part of me feels the pedantic technical focus is hurting me. I'm studying a graphics implementation with the Canvas API and pure js, i was like oh, i should learn WebGL / WebGPU now. i feel like this is a colossal waste of time and potential - from my perspective. I just want to start producing games asap.
19
Jun 25 '25
[removed] ā view removed comment
3
3
u/CondiMesmer Jun 25 '25
my first game was pretty much a basic game loop with the game being ASCII characters in command prompt
2
u/ICBanMI Jun 25 '25
Every game engine eventually does rendering a single triangle (if they support 3d), but not every single triangle will blossom into a game. :P
47
u/susosusosuso Jun 25 '25
I remember when rendering a triangle with OpenGL was less than 10 lines of code