Mapdev:splatdetail: Difference between revisions

From Spring
Jump to navigationJump to search
Flozi (talk | contribs)
m 1cat
Flozi (talk | contribs)
m →Detail Image: make this a xtaglink
Line 86: Line 86:
| Any, recommended powers of two, will be stretched over the terrain.
| Any, recommended powers of two, will be stretched over the terrain.
|}
|}
Each Channel represents a seperate greyscale image. The ground colour is multiplied by the pixel values of the channel. The intensity of the effect is also controlled per channel using the <code>splattexmults</code> variables, low numbers = less effect.  
Each Channel represents a seperate greyscale image. The ground colour is multiplied by the pixel values of the channel. The intensity of the effect is also controlled per channel using the {{xtaglink|mapinfo.lua|texMults}} variables, low numbers = less effect.  
<center>
<center>
{| class="wikitable"
{| class="wikitable"
Line 94: Line 94:
! Individual Detail Textures !! Combined Result
! Individual Detail Textures !! Combined Result
|}</center>
|}</center>


= Forum Discussion =
= Forum Discussion =

Revision as of 13:36, 16 February 2014

Details

FIXME: Needs description here

Caution
requires clients to have GLSL-spec hardware
Example
Default Detail Map Splat Detail Maps
* Click on images for higher res

Specification

mapinfo.lua

local mapinfo = {
   ...
   resources = {
      ...
      splatDistrTex = "splatDistributionTex.tga",
      splatDetailTex = "splatDetailTex.tga",
      ...
   },
   ...
   splats = {
      texScales = {1.0, 1.0, 1.0, 1.0},
      texMults = {1.0, 1.0, 1.0, 1.0},
   },
   ...
}

texScales

measuring stick
texScales

texMults

Distribution Image

File Location ./maps/
File Format PNG, TGA
Colour Depth 8bpp
Channels RGBA
Resolution Any, recommended powers of two, will be stretched over the terrain.

The RGBA Channels are individual greyscale distribution maps which define which detail textures to splat onto the ground. The intensity of the splatted textures is multipled by the pixel values for the corresponding channels.

Example
Detail Distribution maps Combined Result

Detail Image

File Location ./maps/
File Format PNG, TGA
Colour Depth 8bpp
Channels RGBA
Resolution Any, recommended powers of two, will be stretched over the terrain.

Each Channel represents a seperate greyscale image. The ground colour is multiplied by the pixel values of the channel. The intensity of the effect is also controlled per channel using the texMults variables, low numbers = less effect.

Example
Individual Detail Textures Combined Result

Forum Discussion