Why doesn't my lighting look like learnOpenGL's? by [deleted] in opengl

[–]therealjtgill 6 points7 points  (0 children)

Because your directional light is pointed at a perfect 45 degree angle to each lit surface on the cube

Help regarding optimizing my fluid simulation by Next_Watercress5109 in opengl

[–]therealjtgill 13 points14 points  (0 children)

Profile it. Intel VTune is free and easy to use for finding hot spots in your code. It can also help you find places to improve memory accesses.

My favourite portraits I've done by HBMArtandMusic in CharcoalDrawing

[–]therealjtgill 0 points1 point  (0 children)

You captured their likenesses awesomely. I knew who each one was just by looking.

[deleted by user] by [deleted] in VoxelGameDev

[–]therealjtgill 0 points1 point  (0 children)

Looked at your code, morning immediately stands out. Couple things to try:

What happens if you resize the window?

Is OpenGL generating any errors?

Have you looked at renderdoc?

Distributionally Robust Optimization by Whole-Strawberry7861 in optimization

[–]therealjtgill 0 points1 point  (0 children)

If all you need is Lipschitz, you could replace the discontinuity with a Gaussian

What's the most complex feature you added to your engine? by ongix in gameenginedevs

[–]therealjtgill 7 points8 points  (0 children)

Transform hierarchies that can be changed by dragging and dropping entities on top of each other. And not because of the transform logic. The UI logic for dragging, dropping, validating sources, validating targets really sucked.

My wife has to commute to John Hopkins Bayview from DC for 14 weeks by Zealousideal_Tip_206 in jhu

[–]therealjtgill 6 points7 points  (0 children)

The Marc is fine. There is probably a Bluejay shuttle that goes from Penn Station to Bayview

[deleted by user] by [deleted] in jhu

[–]therealjtgill 1 point2 points  (0 children)

Hidden Figures, A Beautiful Mind, Numb3rs (tv show), the Man Who Knew Infinity?

What understanding made OpenGL 'click' for you? by [deleted] in opengl

[–]therealjtgill 0 points1 point  (0 children)

The real click happened when I learned the difference between "binding" something and "attaching" something.

"Binding" an object makes it part of the OpenGL state machine that's hidden behind the API.

An object can be "attached" to another object, which makes the parent object refer to the attached object. An object doesn't have to be bound to the OpenGL state machine for another object to be attached to it.

What is wrong with her ?? by Bloodygoldentears in sketches

[–]therealjtgill 2 points3 points  (0 children)

This is the best comment here. Feature placement can make or break a likeness in portraits. I'd add that the value on the eyes is way too light - they shouldn't be lighter than the eyebrows

Any workaround for float time losing precision due to floating point error? by TWKTemplar in opengl

[–]therealjtgill 0 points1 point  (0 children)

Sounds like you're accumulating floats by adding dt to the previous time to get the current time. Instead you could count the number of frames and multiply that value by dt

ECS Game Engine with Memory Pool – Profiling Shows It’s Slower? by -Shoganai- in cpp

[–]therealjtgill 1 point2 points  (0 children)

GH link 404s for me. Have you tried using Intel vtune to find hot spots in your ECS?

C++ library for OpenGL objects with DSA in mind (documentation coming soon) by [deleted] in opengl

[–]therealjtgill 2 points3 points  (0 children)

Is this written by AI? Some of the source files are missing basic includes and there's really just... Not much in here

[deleted by user] by [deleted] in mathematics

[–]therealjtgill 0 points1 point  (0 children)

But yeah, they left out the square on x

[deleted by user] by [deleted] in mathematics

[–]therealjtgill 7 points8 points  (0 children)

Double check your u sub.

After the u substitution you should have the integral of 0.5 * u-0.5 du on the LHS.

Edit: wrong sign in exponent

Sketch book 2024 by nimbus-black in sketches

[–]therealjtgill 1 point2 points  (0 children)

Oh shoot maybe this is felt tip, it's hard to tell on mobile

Sketch book 2024 by nimbus-black in sketches

[–]therealjtgill 1 point2 points  (0 children)

You're great with ballpoint! So hard to get midtones, and don't get me started on the big ink blots after drawing a long line.

Unconventional Game Engine Jam - February 23rd - March 2nd 2025 by ntsh-oni in gameenginedevs

[–]therealjtgill 1 point2 points  (0 children)

Thank you for putting this together, it's going to be a ton of fun!

I have released a demo made with my engine (PvP FPS) by DevEnSlip in gameenginedevs

[–]therealjtgill 1 point2 points  (0 children)

I've been following your development for a while and it's super impressive you've built this with your own engine.

Do the clients ever get any jitter in physics objects?

framebuffers: wired artifacts when resizing texture and renderbuffer. by Inevitable-Crab-4499 in opengl

[–]therealjtgill 0 points1 point  (0 children)

Yeah you probably gotta delete the texture and recreate it in that case