ShadowCaster
ShadowCaster is an utility I made for learning purpose. Its aim is to compute shadows and texture for a specified heightmap, using various algorithms.
These are the features of ShadowCaster:
- Five shadow generation techniques
- Two texture generation techniques
- Four blending techniques (used to blend the shadowmap with the colormap)
- You can set the position of the light emitter in any point of the map
- Customizable shadow decay(length) and darkness
- OpenGL 3D Viewer (needs a LOT of optimizations!!)
- Limited to 256x256 maps :(
![ShadowCaster Screenshot](images/shadowcaster1_small.jpg)
An old version of ShadowCaster
![ShadowCaster Screenshot](images/shadowcaster2_small.jpg)
The sample Heightmap with the embossed shadow algorithm and the 2nd texture algorithm.
![ShadowCaster Screenshot](images/shadowcaster3_small.jpg)
The previous map viewn in 3D
![ShadowCaster Screenshot](images/shadowcaster4_small.jpg)
The sample Heightmap with the Cos function shadow algorithm and the 2nd texture algorithm.
![ShadowCaster Screenshot](images/shadowcaster5_small.jpg)
The previous map viewn in 3D
![ShadowCaster Screenshot](images/shadowcaster8_small.jpg)
Custom map: a mountain :)
![ShadowCaster Screenshot](images/shadowcaster6_small.jpg)
The Mountain custom Map viewn in 3D
![ShadowCaster Screenshot](images/shadowcaster7_small.jpg)
The Mountain custom Map viewn in 3D closeup: note the detail texture and the smooth shading applied
ShadowCaster uses
![OpenGL](images/ogl.png)