Determinant Predicates

When re-reading Real-Time Collision Detection by Christer Ericson i came across a section called Determinant Predicates in Chapter 3 A Math and Geometry Primer. I thought it was interesting that from just filling a matrix with data such a points in space and finding the determinate of that matrix you could do geometrical tests. Although the tests are not the most efficient ways for solving the problems outlined here i just wanted to make an implementation in C++ to test it myself.

Continue reading “Determinant Predicates”

OpenGL Skybox Rendering

If you have ever played any polished game where there is specular reflections of the game world, it was probably implemented with environment maps.  An environment map can be implemented as a 6 textures mapped to the inner surface of a cube at infinity distance centered on the object being rendered.

Continue reading “OpenGL Skybox Rendering”

The Seperating Axis Theorem.

The separating axis theorem is one of the most useful things to know when programming collision detection. The separating axis shows that if you project the extents of the convex object in the direction of the axis and they do not overlap, then they do not intersect. If they do overlap and the objects are convex then the objects intersect.

Continue reading “The Seperating Axis Theorem.”