Joey Bleau @jbleau.dev · Jul 5

i thought maybe today i could learn opengl and graphics programming from first principles, heres how far i got

708 likes 71 replies

?

Replies

joocifer · Jul 5

So I apologize, but was very curious about what you meant by the memory locations of functions, so I asked an LLM vs bothering you. I want to share Fable's response, because is it giving you shit with the 'sped through in 45 minutes' comment?!? ;)

joocifer · Jul 5

i don't know man, when i stare into that window long enough i see all the answers

@bijdehandje.bsky.social · Jul 5

Artsy!

@nicholasmonks.bsky.social · Jul 5

Wait. How did you get an OpenGL window?

Oolon Coluphid · Jul 5

No BSOD? Excellent work! A+.

Thieves Guild · Jul 5

This is also every naked picture of me on the internet.

Thibyx · Jul 5

The ALT is SENDING me 🤣🤣

Topher · Jul 5

If you’re so inclined, you could go the putpixel() route in whatever graphics library you most like and get really into 3D projection math. That’ll give you more of a 1993 Star Fox than a 1997 Star Fox. 🙂

@phyllishistorian.bsky.social · Jul 5

Ok, glad I'm not the only one...

Prayag’s Repost Dump (I MAKE ART) · Jul 5

…🥹 real ones know this is something worth celebrating 🙌🏼

ITSDOC · Jul 5

BWAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA, I actually clicked that.... BWAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA I can stop laughing at my stupidity. CONGRATS, you got me, AND I'M sure 1000s of others as well.

PressDownToOrb · Jul 5

YOU DID IT!!!!!

Chris T · Jul 5

I feel ya

Derpling · Jul 5

Seems about right from what I know about OpenGL 🤣

Simon Lawrence · Jul 5

Looking good so far, how many FPS is it pushing?

Nyebodnye · Jul 5

You couldn't compile this?

HA Grace · Jul 5

I could do that in 3 fewer lines

Tim Wiederhake · Jul 5

IMHO the best resources to learn OpenGL: ogldev.org and www.opengl-tutorial.org

Luke · Jul 5

I see you've made it to my skill level already. Congrats!

Gambit Games · Jul 5

Much further than most others I am sure. Keep going!

@revival1530.bsky.social · Jul 5

The only reason why I defaulted to being an enterprise dev and not a game dev is because of how the industry exploits passion for games. I didn't want to burn out so I chose the easier path but sometimes I ask myself: what if...

Zofdev · Jul 5

Correct! You have passed your OpenGL exam.

Keith Williams · Jul 5

This is why my housemate at university swore he’d never again touch OpenGL

@oldwriter.bsky.social · Jul 5

Good start. Keep going!

DVS · Jul 5

I took an OpenGL course in college and it was so daunting at first because I’m just not very artistic, but by the end I’d made my own custom Destiny ghost shell with animations! Feels so cool to do all that with pure code

Matt Jones · Jul 5

Oh my sweet summer child I love graphics programming, but you are in for a WILD ride

Musicalartist12 🏳️‍⚧️🦊 · Jul 5

This was mostly from first principles, i deleted the repo sadly.

Step 🐸 · Jul 5

To be fair that’s pretty far

Scoops · Jul 5

Nice. Time for a break. You earned it.

Zi · Jul 5

This actually makes me emotional, because that first 800x600 black OpenGL window was like a monumental achievement.

Jan Pauwels · Jul 5

Less is more

@changerous.bsky.social · Jul 5

Not even a fucking "Hello World"??

SpaceGoat · Jul 5

Setting up the camera matrix is always the trickiest part. :D

Laura Hermanns · Jul 5

Wait until you find out about the dozens of extensions for handling textures. And the spirit of extension chaos lives on in Vulkan, but more verbose 😄

A

@acutedistress.bsky.social · Jul 5

Pro tip: Don’t use black as a clear colour. Use pink or orange.

@moumix.bsky.social · Jul 5

Shoulda used ai!

A Good Citizen ✡️ · Jul 5

Fo sho

@illuminatusprime.bsky.social · Jul 5

It's open, and it says GL...Great job!

Chris Goldammer · Jul 6

It opened! You got further than most.

@nexxo.bsky.social · Jul 5

Still better than Windows 11.

Lonn Holiday · Jul 5

Yup

waiting74patiently · Jul 5

Good job, you got much further than I did!

● goodtek · Jul 6

yeah, graphics is rough at the start. no visible payoff, and the setup eats more time than getting the first screen on

Ioannis Karavas 🔜 Gamescom · Jul 5

I remember making a clock. Then I quit and went back to web dev.

John MacCuish · Jul 5

The intolerableness of all earthly effort.

noah · Jul 5

That is not nothing lmao. A (usable) window is non-trivial on windows

Welcome to the party pal! · Jul 5

There's a hello world in there somewhere.

Alice Roberts · Jul 5

Kudos! Is it running on Microsoft® Losedows™?

@scarcityoftime.bsky.social · Jul 5

Don't sell yourself short, I remember my first opengl window with great nostalgia, this was an achievement fr fr

Concerned Person · Jul 5

Seems like an excellent start to me. We have to get this far to move forward

T

TexasCowboy · Jul 5

well, you've accomplished: -main() -Handle registration -window frame creation -compile, linkage edit with relocatable loader -and function / api calls to a 3rd party library. Not bad for a start.

Silver Wings of Morning · Jul 5

Hello... Box?

Brent, 25th is overdue #25447 · Jul 5

it's a start

H I Sutton · Jul 5

It’s ok, it’s just the default night mode

@nightbat13131.bsky.social · Jul 5

Farther than I've gotten.

timmer for president 2026 (tim cotter) · Jul 6

been there. long before claude.

Bruce Bonsai Linton · Jul 5

You aren't alone. Fortunately I don't need it at my age. 😉

Cameron Darragh · Jul 5

What guides / tutorials do you use for this? I wouldn't know where to start

Joey Bleau · Jul 5

IN MY DEFENSE THIS WAS ONLY 45 MINUTES... but also what the hell do you MEAN i have to tediously manually lookup the memory locations to the gl functions one by one and reference them myself and oh my god someone made a library for this and I have to use their weird online customizer????

@jack-00.bsky.social · Jul 5

From where I stand, that's progress.

あまぎ · Jul 5

I'm doing something similar using SDL_gpu, but it took me a whole day to get to this screen.

chroma · Jul 5

Hell yeah brother!!! Things to check: * are the vertices behind your view position? * is your framebuffer configured and bound properly? * is the winding order of your triangles correct? (Disable culling) * you bind the vertex array object not the vertex buffer object. Good luck!

Psydle · Jul 5

While taking the course on OpenGL, our own professor couldn't get it to work from scratch in a 40 minute lecture. So I think you're doing quite well lol (He got it working the next lectures no problem, teapot and all)

@sirithpl.bsky.social · Jul 5

It doesn't crash to desktop, good job.

@emeres.bsky.social · Jul 5

Awesome. The animations and graphics are spot on man. Not sure I agree with the choice of black graphics on black background though.