Shadow Map

The scene is filled with 3D objects featuring ambient and diffuse lighting. The objects cast shadows on each other based on the light using shadow maps. The user may move the light source around.

You might be interested in …

Multi-Resolution 3D View

3D terrain visualization program which loads a terrain map file containing unsigned chars. The terrain switches to a half resolution version based on the distance from the viewer. The boundaries between the full and half resolution terrain are “stitched” so that no “holes” are visible in the terrain. The user may navigate through the scene […]

Read More

Bump Mapped Swimming Fish

The scene contains a bump-mapped floor and a bump-mapped swimming fish. The fish is a cylinder which has been warped using a vertex program. The “wriggles” of the fish body are simulated using a sin wave which starts from the fish midline towards the tail. This animation is controlled using an interface which allows the […]

Read More

Procedural Textures

The terrain was created using the same method as the “Procedurally Generated Terrain” project. The procedural texture is based on a noise algorithm. The trees are a texture-mapped image of a tree onto a rectangle. The alpha channels of the tree are transparent. The trees have billboarding apply so that the tree rectangles turn to […]

Read More