Updated 23/1/2007
ZURRUTIK.COM

OpenGL demos
Copyright 2003-2007 Zurrutik. All rights reserved.

Terrain


We have a 3D terrain that we can explore like we were on a flight. Itīs like a very simple "flight simulator".

We can:
- Navigate through the scene as you do in "quake style" games
- Change camera's translation/rotation speed( aka change "mouse sensitivity" )
- Select the display mode between Smooth Shading/Flat Shading/Wireframe
- Turn on/off backface culling in order to see how it affects the overall performance





Lighting


This is a simple demonstration of OpenGLīs lighting capabilities.

We can pretty much change every single factor involved in lighting:

- Light translation and rotation
- Switch between directional and positional light
- Change material color, specular and shininess components
- Change light ambient, diffuse and specular components
- If positional light is selected, we can change its "lookAt" point, plus other parameters like attenuation
Collision


Just a simple demostration of collision detection in 3D. Thereīs a sphere, a line and a triangle, and we check for plane-line, triangle-line and triangle-sphere collisions

You can rotate the scene, as well as change the triangle location




MD2  Model


Loads 3 models in .md2 format and displays their animations.
NOTE: .md2 is the format used for models in Quake 2

The following functionality is provided:
- We can select one of the three available models
- We can select the animation to display for that model
- We can also change the interpolation step between model keyframes, changing the animation smoothness