r/opengl • • Mar 21 '25

Can I make an a simple game engine as a 14 YO

0 Upvotes

Hello!

I like low level stuff because it's very interesting to make everything by hand, and OpenGL is no exception, one thing is, I suck at complex logic, and math, especially linear algebra.

My best OpenGL project so far I followed learnopengl.com text rendering guide and tried to make sense of everything so I could expand on it, and I managed to make it work, but I failed miserably when I tried font atlasing.

Do you think I can still crack some videos about linear algebra & critical thinking and be able to make a simple engine that can atleast draw some complex stuff?


r/opengl • • Nov 01 '22

Look What i have made My first week with Opengl . I found the learning curve really interesting specially when i first have to create my first window. I was like ๐Ÿ™„ shiiit what is it ???? And then buffer, vertex, shaderssssss . WDF ๐Ÿคจ๐Ÿคจ๐Ÿคจ๐Ÿคจ๐Ÿคจ!!!!!@ . After severals tries i feel like ๐Ÿ˜Ž๐Ÿ˜Ž๐Ÿ˜Ž heehee this shit is awesome.

0 Upvotes

r/opengl • • Dec 13 '24

Why I use opengl 1.x

21 Upvotes
  • it's easy to learn

  • backwards compatibility is insane (if I compile for 32bit)

  • ain't reading allat glew and glad stuff

  • ain't reading allat glsl stuff


r/opengl • • Jan 09 '25

I dont understand vector usecases

0 Upvotes

{Noob question}I have seen many people mention vectors and their directions and using vector normals,but till now i dont understand why and how they are in opengl or graphic programming. also i am into making 2d games so can anyone please explain their usecase or relevance to me.


r/opengl • • May 30 '24

I don't understand how to work with CMakeLists, please help.

Post image
0 Upvotes

r/opengl • • Dec 08 '25

Porting an iOS/C++/OpenGLES to Windows, recommended approaches and a funny ChatGPT experience

0 Upvotes

So I just had a funny experience. I asked ChatGPT for recommendations on porting my OpenGLES3.0 game to Windows. What it recommended was using SDL2 so that I could continue using my OpenGL code. Then it recommended using Angle to continue using my ES3.0 code. It then procedeeded to help me to install Angle, only to find that its no longer possible to download the .lib files and .dlls. It then told me to build it from the repo, and after 1.5 hours trying to recreate the development environment to build Angle, it told me to give up and port my code to OpenGL core!

At this point, I realize I'm probably better off asking a few knowledgeable HUMANS what they think! Could they beat the Chat bot? My guess is hell yeah. LOL.

Anyway, what do you guys think? What approach would you take? I'm not interested in any game engines like Unity. I tried that approach. My game is simple openGL code and I want to keep it open GL. ChatGPT's SDL2 recommendation seems to make sense, but what would you guys do?


r/opengl • • Jan 24 '26

OpenGL - Graphics Engine in | RUST |

2 Upvotes

So Guys, again in the 2026 already started, and my very first Project is completed
and I am thankfull to me for having a patience and very first "" Graphics Engine "" made in ""RUST"". It's not a vibe coded but I admit that i took help from the ChatGPT for the concepts related to maths.

Github UrL : https://github.com/siddharth2440/GraphicsEngine-RUST-


r/opengl • • Jul 15 '22

Very new to OpenGL, spent the past 4 hours trying to create a cylinder. Still don't even know where to begin after reading countless articles/forums online

1 Upvotes

So my second assignment is to create a cylinder and this is after we were tasked with creating a cube using various triangles. For the first assignment, they gave us the code and it was literally hundreds of lines of code that I have never seen before in my life. I said there is no way I can do this from scratch. Well now i have to make a cylinder from scratch.... and wtf???

Most of the resources online use GLUT which cannot even be used with C++ (which is what i am using). So the only other way I see really is to draw a whole bunch of triangles which I cannot even begin to understand how to do. I also need to draw a donut (torus) so that method probably wouldn't work for that one... not sure what to do. Literally clueless. Ready to throw my laptop at the wall. Please any advice please


r/opengl • • Apr 19 '26

Solarsystem made with Fortran 2018 + OpenGL 4.1 with HDR, bloom, textured planets

0 Upvotes

r/opengl • • Apr 29 '25

Creating a game engine

1 Upvotes

Can you create a game engine without making a game or do the two go hand and hand?


r/opengl • • Nov 29 '25

Is it worth it to learn OpenGL

0 Upvotes

Why should I learn it?


r/opengl • • Dec 25 '20

Is it possible to ask opengl which is the biggest texture size possible I can create?

0 Upvotes

I wanna cache batches of a very big tilemap into textures, and I will like to know how I can ask opengl what is the biggest texture I can create.

Is this possible?


r/opengl • • Mar 06 '24

Opengl beginner friendly resource.

0 Upvotes

I just know c++ and i want to learn opengl but some resources which is use are advance compare to what i know. Is there any opengl resources which are beginner friendly.


r/opengl • • May 03 '24

Does anyone have any good resources for creating a physics engine in OpenGL C++?

0 Upvotes

I've been unable to find anything related to this topic. But do yall have any good resources on making a physics engine or integrating any existing ones in OpenGL in C++?


r/opengl • • Jan 07 '25

Finally, a good free & secure AI assistant for OpenGL!

0 Upvotes

Because I don't feel like handing my money and data over to OpenAI, I've been trying to use more open-weight AI models for coding (Code Llama, Star Coder, etc). Unfortunately, none of them have been very good at OpenGL or shaders... until now. Just a couple of months old, Qwen2.5-Coder does great with OpenGL+GLSL, and can go deep into implementation in a variety of different languages (even outperforms GPT-4 in most benchmarks).

I thought this would be of interest to the folks here, although the guys at LocalLLaMA have been lauding it for months. I can see it being extremely helpful for learning OpenGL, but also for working up concepts and boilerplate.

My setup is a MacBook Pro M1 Max w/32GB memory, running LM Studio and Qwen2.5-Coder-32B-Instruct-4bit (MLX). It uses about 20GB of memory w/ 4096 context.

With this, I can get about 11t/s generation speed - not as fast as the commercial tools, but definitely usable (would be better on a newer laptop). I've been able to have conversations about OpenGL software design/tradeoffs, and the model responds in natural language with code examples in both C++ and GLSL. The system prompt can be something as simple as "You are an AI assistant that specializes in OpenGL ES 3.0 shader programming with GLSL.", but can obviously be expanded with your project specifics.

Anyway, I think it's worth checking out - 100% free, and your data never goes anywhere. Share and enjoy!


r/opengl • • Jan 09 '22

I'm 14 and this is the Game Engine that I made in 1 week

22 Upvotes

The engine has support for 3d rendering, UI rendering, Directional lighting, Ambient lighting, Mesh loading, Entity Component System, AABB collision detection, Skybox rendering, Preformance monitor, and much more.

Here is the 1 million textured cubes instancing test. It runs at an average 50 fps, with min 99% frames at about 7 fps.

(The post got removed from r/gamedev so I'm posting it here)


r/opengl • • Jul 15 '25

is there something i have to apt instal if there seems to be no glu

Post image
0 Upvotes

r/opengl • • Aug 23 '25

Is it possible to make a simulation game in OpenGL akin to SpaceEngine or Celestia?

0 Upvotes

Hello wonderful people, in the past few days I have been wondering if it is possible in any way to make a game that's similar to Space Engine (made by Vladimir Romanyuk) or Celestia, and to make surfaces on planets, procedurally generated stars, planets, renders, etc. I'm a beginner programmer, and I don't know where to start. Any help would be appreciated!

I'd also like if any experienced OpenGL programmer would add me on Discord so we can discuss more about this topic to aid and guide me into creating a simple space exploration game: 666lordx666

Thank you a lot!!!


r/opengl • • Dec 20 '19

arctan2 doesn't like my

0 Upvotes

Code:

      glm::vec3 vect = glm::normalize(glm::vec3(cameraPos.x, 0.0f, cameraPos.z) - box2.Position);
      box2.Rotation = atan2(vect.x, sqrt((vect.x * vect.x) + (vect.y * vect.y)));

error: blah blah blah ...mismatched types 'const glm::vec<3, T, glm::packed_highp>' and 'float'

similar error occurs when using vec3s, with the type for the vec3s being 'glm::vec3&'


r/opengl • • Jul 06 '25

Can i show a GLFW project here?

1 Upvotes

Ive been working on a glfw + nuklear game development library and i wanted to ask if i can show it off here since glfw is related to opengl. Can i?


r/opengl • • Jul 10 '21

OpenGL Input Handling

Thumbnail
youtu.be
4 Upvotes

r/opengl • • Oct 04 '25

how do i make it not load so slow

0 Upvotes

i know its a big model a lot of triangles but can i make it not freeze the program ?


r/opengl • • Jun 15 '21

how do I fix this error? "the code execution cannot proceed because (opengl.dll) and (GLU.dll) was not found.

0 Upvotes

any help would be great.


r/opengl • • Jan 13 '23

How 3d models like sphere can be rendered?

0 Upvotes

I mean, it will have lot of polygons because of rounding, so it will cause lags, how?