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 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!


Basic version, using RGB:


splat_rgb.zip


Extended to 4 colors, using black:


splat_rgbk.zip


Extended to 5 colors, using alpha:


splat_with_alpha.zip


This page is maintained by Ingemar Ragnemalm.