User Tools

Site Tools


gamedev:textureproperties:color_gamma

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:color_gamma [2012/12/01 18:33] dragonlordgamedev:textureproperties:color_gamma [2019/05/24 23:43] (current) – ↷ Links adapted because of a move operation dragonlord
Line 1: Line 1:
 +{{tag>graphic skin texture color}}
 <WRAP youarehere> <WRAP youarehere>
-[[:start|Start Page]] >> [[gamedev:main|Game Development with the Drag[en]gine]] >> [[gamedev:skinproperties|Skin Texture Properties]] >> [[gamedev:texturepropertylist|Texture Property Database]] >> **color.gamma**+[[:start|Start Page]] >> [[:gamedev|Game Development with the Drag[en]gine]] >> [[gamedev:skinproperties|Skin Texture Properties]] >> [[gamedev:texturepropertylist|Texture Property Database]] >> **color.gamma**
 </WRAP> </WRAP>
  
-<WRAP boxheader> +====== Skin Texture Property: color.gamma ====== 
-====== Summary ====== + 
-</WRAP> +Defines the gamma correction for the color and color_alpha texture property
-<WRAP boxcontent> +
-|Texture Property Name|color.gamma| +
-|Description|Defines the gamma correction for the color and color_alpha texture property|+
 |Excepted Data Source|1 component value| |Excepted Data Source|1 component value|
 |Data Range|larger than 0| |Data Range|larger than 0|
 |Default Value|2.2| |Default Value|2.2|
-|Affected Module|Graphic|+|Affected Modules|Graphic|
 |Linked Properties|[[gamedev:textureproperties:color|color]], [[gamedev:textureproperties:color_alpha|color_alpha]]| |Linked Properties|[[gamedev:textureproperties:color|color]], [[gamedev:textureproperties:color_alpha|color_alpha]]|
-</WRAP> 
  
 ====== Description ====== ====== Description ======
 +
 The **color.gamma** texture property is linked to the **[[gamedev:textureproperties:color|color]]** and **[[gamedev:textureproperties:color_alpha|color_alpha]]** texture property. it defines the gamma correction applied to the **[[gamedev:textureproperties:color|color]]** and **[[gamedev:textureproperties:color_alpha|color_alpha]]** texture property. Monitors using the sRGB color space have roughly a gamma of 2.2 . Images autored on monitors thus usually have also an sRGB color space and thus also a gamma of 2.2 . To allow Graphic Modules to render in linear color space the gamma has to be known that the images assigned to the **[[gamedev:textureproperties:color|color]]** and **[[gamedev:textureproperties:color_alpha|color_alpha]]** texture property use. In most cases you do not have to touch this texture property. If you use though linear space images or high definition range images then you have to set the gamma to 1 to avoid gamma correction. Other situations might exist if an image has a different gamma correction to better use the 8-bit resolution. This might be of use for very bright or dark images. The **color.gamma** texture property is linked to the **[[gamedev:textureproperties:color|color]]** and **[[gamedev:textureproperties:color_alpha|color_alpha]]** texture property. it defines the gamma correction applied to the **[[gamedev:textureproperties:color|color]]** and **[[gamedev:textureproperties:color_alpha|color_alpha]]** texture property. Monitors using the sRGB color space have roughly a gamma of 2.2 . Images autored on monitors thus usually have also an sRGB color space and thus also a gamma of 2.2 . To allow Graphic Modules to render in linear color space the gamma has to be known that the images assigned to the **[[gamedev:textureproperties:color|color]]** and **[[gamedev:textureproperties:color_alpha|color_alpha]]** texture property use. In most cases you do not have to touch this texture property. If you use though linear space images or high definition range images then you have to set the gamma to 1 to avoid gamma correction. Other situations might exist if an image has a different gamma correction to better use the 8-bit resolution. This might be of use for very bright or dark images.
  
Line 24: Line 23:
  
 ====== Examples ====== ====== Examples ======
 +
 ( TODO: example image ) ( TODO: example image )
gamedev/textureproperties/color_gamma.1354386820.txt.gz · Last modified: 2012/12/01 18:33 by dragonlord