Find Related products on Amazon

Shop on Amazon

OpenGL to WASM, learning from my mistakes

Published on: 2025-07-08 13:24:30

Introduction The last few weeks, OpenGL has caught my eye (frankly, it was a hiring challenge that nerd sniped me). I had 0 experience with OpenGL whatsover and thought that this might be a good time to give graphics a shot! If nothing I’ll at least revise the graphics concepts that I’ve long forgotten after my 6th Semester. However, I should mention that this post is not intended to be a learning guide for OpenGL or WASM, I have attached resources in the end for the same. This is supposed to be my journal of sorts regarding all the mistakes I did over the last 10 days. Challenge specifications Render 1 Million Spheres. Maintain dynamic lighting in the scene. Highlighting for each sphere. Maintaining 60 FPS. My approach The specs at which my poor M1 managed to render the spheres was this - Rendered 10k spheres with instances method. Single light source to emulate phong lighting with proper attenuation techniques. 4 unique texture support (you can add as many as you want). Th ... Read full article.