In university I took a course on rendering and graphics programming centering on fundamentals such as vertex layouts, illumination techniques, and texture mapping.
Multiple Light SourcesOne of the requirements for the end product was the ability to utilize multiple dynamic lights, including point lights and spotlights. | |
![]() | Heightmap Model GenerationThe API has functionality create a terrain model from a heightmap TGA and some other parameters such as max height and xz size. It simply works by iterating over an image's pixels and assigning scaled vertices based on the RGB values (in my case the red channel). The normals are calculated as the average of a set of 6 cross products create by incident faces. |
Distance FogOne of the most well-known features in graphics is distance fog. It's used whether for performance reasons or atmosphere or even both. | ![]() |
MirrorOne of the exercise in the class was utilizing stenciling to create mirror effect. The effect basically renders the scene twice and uses the stencil to ensure that the mirrored "world" is only rendered in the mirror itself. |