Texture splatting
From Wikipedia, the free encyclopedia
This article does not cite any references or sources. (September 2007) Please help improve this article by adding citations to reliable sources. Unverifiable material may be challenged and removed. |
In computer graphics, texture splatting is a method for combining different textures. The method works by applying an alphamap to the higher levels, revealing the layers underneath where the alphamap is partially or completely transparent. The term was coined by Charles Bloom.[citation needed]
[edit] Optimizations
Since texture splatting is commonly used for terrain rendering in computer games, various optimizations are required. Because the underlying principle is for each texture to have its own alpha channel, large amounts of memory can easily be consumed. As a solution to this problem, multiple alpha maps can be combined into one texture using the red channel for one map, the blue for another, and so on. This effectively uses a single texture to supply alpha maps for four real-color textures.
Terrains can also be split into chunks where each chunk can have its own textures. Say there is a certain texture on one part of the terrain that doesn’t appear anywhere else on it: it would be a waste of memory and processing time if the alpha map extended over the whole terrain if only 10% of it was actually required. If the terrain is split into chunks then the alpha map can also be split up according to the chunks and so now instead of 90% of that specific map being wasted only 20% may be.