User Tools

Site Tools


gamedev:textureproperties:height_offset

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
gamedev:textureproperties:height_offset [2019/05/09 08:41] – removed dragonlordgamedev:textureproperties:height_offset [2019/05/24 23:43] (current) – ↷ Links adapted because of a move operation dragonlord
Line 1: Line 1:
 +{{tag>graphic skin texture heightmap}}
 +<WRAP youarehere>
 +[[:start|Start Page]] >> [[:gamedev|Game Development with the Drag[en]gine]] >> [[gamedev:skinproperties|Skin Texture Properties]] >> [[gamedev:texturepropertylist|Texture Property Database]] >> **height.offset**
 +</WRAP>
  
 +====== Skin Texture Property: height.offset ======
 +
 +Defines the relative offset for the height texture property.
 +
 +|Excepted Data Source|1 component value|
 +|Data Range|any value|
 +|Default Value|0|
 +|Affected Modules|Graphic|
 +|Linked Properties|[[gamedev:textureproperties:height|height]], [[gamedev:textureproperties:height_scale|height.scale]]|
 +
 +====== Description ======
 +
 +The **height.offset** texture property is linked to the [[gamedev:textureproperties:height|height]] texture property. Defines the relative offset of the height values.
 +
 +Positive values move the height values away from the surface while negative values move them into the surface. This can be used for height maps only denting into or only bumping out of the surface to maximize the texture resolution. The effective offset added to the height is the height.offset multiplied by the height.scale. The height.offset can thus be considered the percentage shift of the height texture property values. The typical range is from -0.5 (height of 1 is surface level and 0 the total bottom) to 0.5 (height of 0 is surface level and 1 the total uphill). For generating normal maps this is not required.
 +
 +The source is typically a single component value representing the offset of the height values relative to the height scaling.
 +
 +The default value for this texture property is 0.
 +
 +====== Examples ======
 +
 +( TODO: example image )
gamedev/textureproperties/height_offset.txt · Last modified: 2019/05/24 23:43 by dragonlord