This is a retexturing of the example map Canyon using new blendmap and lighting commands. This file is not packaged properly due to it containing files that have no place in a simple map package. It is provided as an example and a prompt for feedback. It is not considered a playable map, but developer experimentation.
Contents:
canyon2.ogz
canyon2.cfg
canyon2.jpg - files for example map
lightmap.cpp
blend.cpp - modified source files from SVN, December 2011 (I think)
sauerbraten-test.exe - Cube 2 compiled for win32 with new commands.
heightmap.blend - blender file used to render heightmap from level geometry
canyon2.txt - this text file
To extract the blendmap from the example map, load the map and use exportblendmap at the console. It should export the blendmap much like a screenshot.
New settings and commands:
sunlightspread - size of the sunlight disc in degrees - larger values make for softer lighting.
sunlightiterate - number of samples to take for each sunlight beam. This slows lightmap calculation quite a bit. 10 seems to provide decent quality.
exportblendmap - exports a 8-bit greyscale png of the current blendmap to Sauer's base directory.
importblendmap - imports a 8-bit greyscale png from Sauer's base directory. The image must be the proper size for the map scale of the current map. I recommend making a blendmap in the normal way, exporting it, and using that as a template for an image to import.