Writing a G-code Interpreter

G-Code. Lasers. C.
I’m currently working on a control system for a laser galvanometer (galvo) that I want to use in a stereolithography (SLA) resin printer. I don’t want to write a custom slicer, as I feel like model slicing can be incredibly complicated and existing free software (Cura, Slic3r, etc.
Read more...

Understanding Camera Look-At.

Graphics. Matrices. OpenGL.
Often times, we want to position the camera in our scene at a particular point, such as the head of the character in a first-person shooter or the cockpit of a plane in a flight simulator.
Read more...

Deriving the View Matrix

Graphics. Matrices. OpenGL.
In computer graphics, the view matrix is used to transform points from world space into camera space. Below is an explanation of how to derive this matrix.
Read more...

Unbind Your Vertex Array Objects.

OpenGL. C.
When I first started learning about OpenGL, I always made sure to unbind each resource as soon as I was done using it. Over time I became more lenient with unbinding, as in many cases leaving resources bound is okay and leads to fewer API calls.
Read more...