User Tools

Site Tools


gamedev:textureproperties:transparency

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:transparency [2012/11/30 22:26] dragonlordgamedev:textureproperties:transparency [2019/05/24 23:43] (current) – ↷ Links adapted because of a move operation dragonlord
Line 1: Line 1:
 +{{tag>graphic skin texture transparency}}
 <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]] >> **transparency**+[[:start|Start Page]] >> [[:gamedev|Game Development with the Drag[en]gine]] >> [[gamedev:skinproperties|Skin Texture Properties]] >> [[gamedev:texturepropertylist|Texture Property Database]] >> **transparency**
 </WRAP> </WRAP>
  
-====== Summary ====== +====== Skin Texture Property: transparency ====== 
-|Texture Property Name|transparency|+ 
 +Defines the full or masked transparency
 |Excepted Data Source|1 component image| |Excepted Data Source|1 component image|
 |Data Range|0 to 1| |Data Range|0 to 1|
 |Default Value|1| |Default Value|1|
-|Graphic Module|Defines the full or masked transparency+|Affected Modules|Graphic| 
-|Physics Module|No effect| +|Linked Properties|[[gamedev:textureproperties:transparency_type|transparency.type]]|
-|Audio Module|No effect|+
  
-====== Graphic Module ======+====== Description ======
  
-The **transparency** texture property defines the degree of transparency of a material. Transparent materials allow to see through with varying strength. This texture property defines either a fully transparent material or a masked material (or holed material). Use the **[[gamedev:textureproperties:transparency.type|transparency_type]]** texture property to define what kind of transparent material this is.+The **transparency** texture property defines the degree of transparency of a material. Transparent materials allow to see through with varying strength. This texture property defines either a fully transparent material or a masked material (or holed material). Use the **[[gamedev:textureproperties:transparency_type|transparency.type]]** texture property to define what kind of transparent material this is.
  
 Fully transparent materials are required for semi-transparent objects like dark glass or for example a colored glass window. In this case a pixel covered by the material requires a blending operation between the pixel behind the object and the pixel on the object itself. This produces realistic and nice looking transparent objects but is in general more demanding on the hardware than rendering a fully opaque object. This kind of material should only be used if a correct transparent look is important for an object. In all other cases it is better to use masked transparency instead. Fully transparent materials are required for semi-transparent objects like dark glass or for example a colored glass window. In this case a pixel covered by the material requires a blending operation between the pixel behind the object and the pixel on the object itself. This produces realistic and nice looking transparent objects but is in general more demanding on the hardware than rendering a fully opaque object. This kind of material should only be used if a correct transparent look is important for an object. In all other cases it is better to use masked transparency instead.
Line 23: Line 25:
  
 The default value for this texture property is 1 hence fully opaque no matter if fully transparent or masked transparent. The default value for this texture property is 1 hence fully opaque no matter if fully transparent or masked transparent.
- 
-====== Physics Module ====== 
-This texture property does not effect Physics Modules. 
- 
-====== Audio Module ====== 
-This texture property does not effect Audio Modules. 
  
 ====== Examples ====== ====== Examples ======
-( TODOexample image )+ 
 +<WRAP center 100%> 
 +<WRAP center box 420px> 
 +{{ :gamedev:textureproperties:transparency.png |Transparent glass material}} 
 +<WRAP centeralign>Transparent glass material. Example of a fully transparent material. This glass uses 4% transparency hence 0.04 for the transparency texture property.</WRAP> 
 +</WRAP> 
 +</WRAP>
gamedev/textureproperties/transparency.1354314393.txt.gz · Last modified: 2012/11/30 22:26 by dragonlord