Texture splatting demo

This demo was added to my demo collection in 2017 to celebrate the new demo page system, moving to a more convenient page editing solution.


Splatting (that is multitexturing with a blend map) is a special case of multi-texturing, where a special “map” texture is used to specify which texture should be used in each part of the object. The most straight-forward way to achieve this is to use the RGB channels, and up to three textures, but it is quite possible to handle more.


In this demo, I use the following RGB map:


map_ejalfa

which maps onto a small terrain like this:

splattingmap

which then controls the blending of three textures like this:

splatting

Note tha areas that are not pure R, G or B!


All demos in one archive, now updated to C++:


texture-splatting-demos-cpp.zip






Old versions:


Basic version, using RGB:


splat_rgb.tar.gz


Extended to 4 colors, using black:


splat_rgbk.tar.gz


Extended to 5 colors, using alpha:


splat_with_alpha.tar.gz


Finally, the crazy 8 channel version - which has some problems at the edges which makes it harder to design with but it works under some limitations.


splat_8.tar.gz


Updated 2022. Later, 2024, see above.

This page is maintained by Ingemar Ragnemalm.