Are you wondering how to check some real HOpenGL applications? Here you'll find some interesting examples. Enjoy!
(Please notice that the files contained in this site are intended to be used under a Windows platform. Come back in the future to check for some Unix stuff!)
The DLLs:
First of all, you'll need to download some DLL files in order to run the HOpenGL examples. I've divided them in three packs. Here you have them:
The Examples:
Since you've downloaded the DLLs, download the binaries of some examples:
- Haskell Space Donuts (689 KB) - This is a simple game I've created. It is a HOpenGL version of the game "Space Donuts", from the DirectX library. Press ENTER (or RETURN) to start playing and to initialize your spaceship. Press the SPACEBAR to shot, the ARROW KEYS to move/rotate the spaceship and END to brake it. Get source code here, or check out some screenshots!
- Tex4color (63 KB) - This examples shows some texture mapping (from a bitmap) into 4 cubes. Press Q and W to rotate the cubes in different directions, or E to make them stop rotating. Use the ARROW KEYS to move the camera around, and HOME/END to zoom in and zoom out respectively. Get source code here, or check out some screenshots!
- Haskell Doom (192 KB) - This project is not completed yet, but take a look at it. It simulates a 3D ambient. Use the MOUSE to move the camera around and the ARROW KEYS to move yourself around the room. PAGE UP and PAGE DOWN makes you "fly upwards" and "fly downwards" respectively. The textures were taken from the Half-Life game, by Sierra(C). Get source code here, or check out some screenshots!
- Light Example (55 KB) - This example is very useful if you want to understand light/material components. A white light source is placed outside the screen, at position
(1.0,1.0,1.0)
, and a sphere is placed in the middle of the screen. Once you run this example, a black screen will appear, but here you have a list of things you can do when you press the following keys (Get source code here, or check out some screenshots!):
- Q - Increases the red specular component of the material of the sphere.
- W - Decreases the red specular component of the material of the sphere.
- E - Increases the green specular component of the material of the sphere.
- R - Decreases the green specular component of the material of the sphere.
- T - Increases the blue specular component of the material of the sphere.
- Y - Decreases the blue specular component of the material of the sphere.
- U - Increases the alpha specular component of the material of the sphere.
- I - Decreases the alpha specular component of the material of the sphere.
- A - Increases the red diffuse component of the material of the sphere.
- S - Decreases the red diffuse component of the material of the sphere.
- D - Increases the green diffuse component of the material of the sphere.
- F - Decreases the green diffuse component of the material of the sphere.
- G - Increases the blue diffuse component of the material of the sphere.
- H - Decreases the blue diffuse component of the material of the sphere.
- J - Increases the alpha diffuse component of the material of the sphere.
- K - Decreases the alpha diffuse component of the material of the sphere.
- 1 - Increases the red ambient component of the material of the sphere.
- 2 - Decreases the red ambient component of the material of the sphere.
- 3 - Increases the green ambient component of the material of the sphere.
- 4 - Decreases the green ambient component of the material of the sphere.
- 5 - Increases the blue ambient component of the material of the sphere.
- 6 - Decreases the blue ambient component of the material of the sphere.
- 7 - Increases the alpha ambient component of the material of the sphere.
- 8 - Decreases the alpha ambient component of the material of the sphere.
- F1 - Increases the red emission component of the material of the sphere.
- F2 - Decreases the red emission component of the material of the sphere.
- F3 - Increases the green emission component of the material of the sphere.
- F4 - Decreases the green emission component of the material of the sphere.
- F5 - Increases the blue emission component of the material of the sphere.
- F6 - Decreases the blue emission component of the material of the sphere.
- F7 - Increases the alpha emission component of the material of the sphere.
- F8 - Decreases the alpha emission component of the material of the sphere.
- Z - Increases the shininess component of the material of the sphere.
- X - Decreases the shininess component of the material of the sphere.
Credits:
All examples above were created by me. That's all by now, but I hope I can keep updating this page frequently. If you have any interesting HOpenGL example and would like it to be placed here, e-mail me!