Extracting frustum planes from modelview-projection matrix

Extracting viewing frustum planes from the modelview-projection matrix

In this post I’m going to explain how to extract the parameters of each frustum plane in the local space of the object with a certain modelview-projection matrix. Knowing the frustum planes may be useful in some cases. The first one that comes to my mind is to perform frustum culling, which I will explain soon in a separated post.

Continue reading

Bézier curves

Bézier curves are widely used in computer graphics to generate animation paths, smooth interpolations between values, modeling of shapes and so on. Below, a general way to compute Bézier curves of arbitrary degree is shown in Casteljau’s algorithm, and after that, the explicit equations for solving Bézier curves of degree 1, 2 and 3 are given.
Continue reading