This script is inspired by the Nvidia nature demo ( http://developer.nvidia.com/object/nature_scene.html ). It’s not a 1:1 copy, but very similar. All media have been taken from the original Nvidia demo. The main features are:
- dynamic sky with tinting
- static terrain with texture blending depending on terrain elevation
- water reflection via planar mirror and projective texturing
- water distortions
- moving grass
- fog on terrain and grass shaders
Performance is poor, but you can speed up by reducing GRASS_DISTANCE near the top of the script. Also try reducing fog density for brighter colors: “fog = Vec4( 0.16, 0.32, 0.36, 0.0001 ) # r, g, b, density” in line 118.
These have been my first steps with CG, and the shaders are far from perfect, and if someone knows ways to improve this demo please tell me.