Common materials
(3 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
+ | {{unfinished}} | ||
{{need screenshot}} | {{need screenshot}} | ||
− | + | Common materials are system textures with a special behavior assigned to them. | |
{| cellspacing=0 cellpadding=8 border=0 style="border-collapse: collapse" | {| cellspacing=0 cellpadding=8 border=0 style="border-collapse: collapse" | ||
− | | width=64 | [[File:common_caulk.jpg|64px]] | + | | width=64 valign=top | [[File:common_caulk.jpg|64px]] |
| '''common/caulk''' | | '''common/caulk''' | ||
− | A system material designed to 'caulk' or seal a map. In-game, it is a transparent solid texture. It is best applied to all surfaces which a player will be unable to see while in-game. | + | A system material designed to 'caulk' or seal a map. In-game, it is a transparent solid texture. It is best applied to all surfaces which a player will be unable to see while in-game. |
+ | |||
+ | Caulk will block [[VIS]], so it can seal you map from a void. | ||
+ | {{tip|When you build a [[BModel|brush entity]], mark all the brush sides that you will never see with caulk. Otherwise, the game draws every one of them. Also look around your map for brush faces that you suspect are being drawn, but are never seen: door pockets, bars, underneath bridges or very low railings and so on. It may sound like work, but attention to detail like this buys you both the appearance of greater geometric detail in the map AND faster game running speed.}} | ||
+ | |- | ||
+ | | valign=top | [[File:common_nodraw.jpg|64px]] | ||
+ | | '''common/nodraw''' | ||
+ | Non-solid, invisible texture. Just like caulk but additionally it do not block player movement and not making VIS splits. | ||
|- | |- | ||
− | | [[File:common_clip.jpg|64px]] | + | | valign=top | [[File:common_clip.jpg|64px]] |
| '''common/clip''' | | '''common/clip''' | ||
Invisible material which clips movement of players. Do not affects footsteps (footstep tracing skips clipsurfaces to get real material player standing on). | Invisible material which clips movement of players. Do not affects footsteps (footstep tracing skips clipsurfaces to get real material player standing on). | ||
Line 14: | Line 22: | ||
Player clip is often useful for "smoothing" out the geometry of the map, preventing the player from snagging on objects. | Player clip is often useful for "smoothing" out the geometry of the map, preventing the player from snagging on objects. | ||
|- | |- | ||
− | | [[File:common_monsterclip.jpg|64px]] | + | | valign=top | [[File:common_monsterclip.jpg|64px]] |
| '''common/monsterclip''' | | '''common/monsterclip''' | ||
Clip only NPC movement. | Clip only NPC movement. | ||
|- | |- | ||
− | | [[File:common_fullclip.jpg|64px]] | + | | valign=top | [[File:common_fullclip.jpg|64px]] |
| '''common/fullclip''' | | '''common/fullclip''' | ||
PlayerClip + MonsterClip. | PlayerClip + MonsterClip. | ||
|- | |- | ||
− | | [[File:common_origin.jpg|64px]] | + | | valign=top | [[File:common_origin.jpg|64px]] |
| '''common/origin''' | | '''common/origin''' | ||
Normally brush entities have no origin. Center of brush covered by this textures will set origin of it's parent [[BModel]]. This origin is used for movement (path spots) and rotation. | Normally brush entities have no origin. Center of brush covered by this textures will set origin of it's parent [[BModel]]. This origin is used for movement (path spots) and rotation. | ||
|- | |- | ||
− | | [[File:common_black.jpg|64px]] | + | | valign=top | [[File:common_black.jpg|64px]] |
| '''common/black''' | | '''common/black''' | ||
Black wall, hides any stuff behing it. Dont cast a shadow. | Black wall, hides any stuff behing it. Dont cast a shadow. | ||
|- | |- | ||
− | | [[File:common_areadisable.jpg|64px]] | + | | valign=top | [[File:common_areadisable.jpg|64px]] |
| '''common/areadisable''' | | '''common/areadisable''' | ||
Black wall on steroids, this also hides any transparent entities, marks, effects. | Black wall on steroids, this also hides any transparent entities, marks, effects. | ||
|- | |- | ||
− | | [[File:common_iwater.jpg|64px]] | + | | valign=top | [[File:common_iwater.jpg|64px]] |
| '''common/ilava''' | | '''common/ilava''' | ||
Invisible, sets brush contents to water. Also used on covering junction sides of water brushes (when making a long river). Water damages the player at slight rate. | Invisible, sets brush contents to water. Also used on covering junction sides of water brushes (when making a long river). Water damages the player at slight rate. | ||
|- | |- | ||
− | | [[File:common_islime.jpg|64px]] | + | | valign=top | [[File:common_islime.jpg|64px]] |
| '''common/islime''' | | '''common/islime''' | ||
Invisible, sets brush contents to swamp. Swamp slows down player and damages at slight rate when he moves. | Invisible, sets brush contents to swamp. Swamp slows down player and damages at slight rate when he moves. | ||
|- | |- | ||
− | | [[File:common_ilava.jpg|64px]] | + | | valign=top | [[File:common_ilava.jpg|64px]] |
| '''common/ilava''' | | '''common/ilava''' | ||
Invisible, sets brush contents to lava. Also used on covering junction sides of lava brushes. Lava damages player at hight rate (even in mist form), very dangerous to walk on. | Invisible, sets brush contents to lava. Also used on covering junction sides of lava brushes. Lava damages player at hight rate (even in mist form), very dangerous to walk on. | ||
|- | |- | ||
− | | [[File:common_lightgrid.jpg|64px]] | + | | valign=top | [[File:common_lightgrid.jpg|64px]] |
| '''common/lightgrid''' | | '''common/lightgrid''' | ||
World brush with this texture will make boundaries of [[lightgrid | entity static lighting]]. There is no other use. | World brush with this texture will make boundaries of [[lightgrid | entity static lighting]]. There is no other use. | ||
|} | |} | ||
− | |||
{{hidden begin | Rarely used common materials}} | {{hidden begin | Rarely used common materials}} | ||
Line 57: | Line 64: | ||
{| cellspacing=0 cellpadding=8 border=0 style="border-collapse: collapse" | {| cellspacing=0 cellpadding=8 border=0 style="border-collapse: collapse" | ||
− | | width=64 | [[File:common_blackshadow.jpg|64px]] | + | | width=64 valign=top | [[File:common_blackshadow.jpg|64px]] |
| '''common/blackshadow''' | | '''common/blackshadow''' | ||
Black wall but casts shadows from static lights. | Black wall but casts shadows from static lights. | ||
|- | |- | ||
− | | [[File:common_lightblock.jpg|64px]] | + | | valign=top | [[File:common_lightblock.jpg|64px]] |
| '''common/lightblock''' | | '''common/lightblock''' | ||
Invisible surface that blocks lighting. | Invisible surface that blocks lighting. | ||
|- | |- | ||
− | | [[File:common_lighthull.jpg|64px]] | + | | valign=top | [[File:common_lighthull.jpg|64px]] |
| '''common/lighthull''' | | '''common/lighthull''' | ||
Same as lightblock but blocks lighting from inside. | Same as lightblock but blocks lighting from inside. | ||
|- | |- | ||
− | | [[File:common_hint.jpg|64px]] | + | | valign=top | [[File:common_hint.jpg|64px]] |
| '''common/hint''' | | '''common/hint''' | ||
Invisible material. Brush marked with this texture will create a portal in visibility tree. Rarely used on the places where general portal creation algorithm was failed to generate a proper vis portals, which caused a game slowdown. See [[Darkplaces_material_system#surfaceparm hint | surfaceparm hint]]. | Invisible material. Brush marked with this texture will create a portal in visibility tree. Rarely used on the places where general portal creation algorithm was failed to generate a proper vis portals, which caused a game slowdown. See [[Darkplaces_material_system#surfaceparm hint | surfaceparm hint]]. | ||
|- | |- | ||
− | | [[File:common_nodraw.jpg|64px]] | + | | valign=top | [[File:common_skip.jpg|64px]] |
+ | | '''common/skip''' | ||
+ | This special textures should be used only on hint brushes (see above for hint texture). Surfaces with this texture will not make VIS splits (so, they are just skipped). | ||
+ | |- | ||
+ | | valign=top | [[File:common_nodraw.jpg|64px]] | ||
| '''common/nodraw''' | | '''common/nodraw''' | ||
Caulk that doesnt block visibility data. | Caulk that doesnt block visibility data. | ||
|- | |- | ||
− | | [[File:common_dpshadow.jpg|64px]] | + | | valign=top | [[File:common_dpshadow.jpg|64px]] |
| '''common/dpshadow''' | | '''common/dpshadow''' | ||
Invisible wall that cast realtime shadows. Weird. | Invisible wall that cast realtime shadows. Weird. | ||
|- | |- | ||
− | | [[File:common_collision.jpg|64px]] | + | | valign=top | [[File:common_collision.jpg|64px]] |
| '''dpbihclip''' | | '''dpbihclip''' | ||
This invisible texture is inaccessible from texture window. It is ised on [[collision mesh | collision meshes]] to define [[BIH]] support with no reatime shadows. | This invisible texture is inaccessible from texture window. It is ised on [[collision mesh | collision meshes]] to define [[BIH]] support with no reatime shadows. | ||
|- | |- | ||
− | | [[File:common_collision.jpg|64px]] | + | | valign=top | [[File:common_collision.jpg|64px]] |
| '''dpbihplayerclip''' | | '''dpbihplayerclip''' | ||
[[BIH]] support + playerclip. | [[BIH]] support + playerclip. | ||
|- | |- | ||
− | | [[File:common_collision.jpg|64px]] | + | | valign=top | [[File:common_collision.jpg|64px]] |
| '''dpbihclipandshadow''' | | '''dpbihclipandshadow''' | ||
[[BIH]] support + cast realtime shadows. | [[BIH]] support + cast realtime shadows. | ||
|- | |- | ||
− | | [[File:common_collision.jpg|64px]] | + | | valign=top | [[File:common_collision.jpg|64px]] |
| '''collision''' | | '''collision''' | ||
This texture should be used with "collision" mesh only used by [[ODE]]. | This texture should be used with "collision" mesh only used by [[ODE]]. | ||
Line 105: | Line 116: | ||
{| cellspacing=0 cellpadding=8 border=0 style="border-collapse: collapse" | {| cellspacing=0 cellpadding=8 border=0 style="border-collapse: collapse" | ||
− | | width=64 | [[File:common_trigger.jpg|64px]] | + | | width=64 valign=top | [[File:common_trigger.jpg|64px]] |
| '''common/trigger''' | | '''common/trigger''' | ||
All triggers should be marked with this material. | All triggers should be marked with this material. | ||
|- | |- | ||
− | | [[File:common_roof.jpg|64px]] | + | | valign=top | [[File:common_roof.jpg|64px]] |
| '''common/roof''' | | '''common/roof''' | ||
Material to cover invisible rooftops on [[func_roof]]. | Material to cover invisible rooftops on [[func_roof]]. | ||
|- | |- | ||
− | | [[File:common_mark.jpg|64px]] | + | | valign=top | [[File:common_mark.jpg|64px]] |
| '''common/mark1''' ... '''common/mark9''' | | '''common/mark1''' ... '''common/mark9''' | ||
Visible materials with different color to mark various stuff, like light glares, zones. | Visible materials with different color to mark various stuff, like light glares, zones. | ||
Line 124: | Line 135: | ||
{| width=256 height=32 cellspacing=0 cellpadding=7 border=0 style="border-collapse: collapse" | {| width=256 height=32 cellspacing=0 cellpadding=7 border=0 style="border-collapse: collapse" | ||
| [[File:common_antiportal.jpg|64px]] | | [[File:common_antiportal.jpg|64px]] | ||
− | |||
| [[File:common_nodrop.jpg|64px]] | | [[File:common_nodrop.jpg|64px]] | ||
| [[File:common_shadow.jpg|64px]] | | [[File:common_shadow.jpg|64px]] | ||
|} | |} |
Latest revision as of 12:53, 9 August 2012
Common materials are system textures with a special behavior assigned to them.
common/caulk
A system material designed to 'caulk' or seal a map. In-game, it is a transparent solid texture. It is best applied to all surfaces which a player will be unable to see while in-game. Caulk will block VIS, so it can seal you map from a void. Tip: When you build a brush entity, mark all the brush sides that you will never see with caulk. Otherwise, the game draws every one of them. Also look around your map for brush faces that you suspect are being drawn, but are never seen: door pockets, bars, underneath bridges or very low railings and so on. It may sound like work, but attention to detail like this buys you both the appearance of greater geometric detail in the map AND faster game running speed.
| |
common/nodraw
Non-solid, invisible texture. Just like caulk but additionally it do not block player movement and not making VIS splits. | |
common/clip
Invisible material which clips movement of players. Do not affects footsteps (footstep tracing skips clipsurfaces to get real material player standing on). Player clip is often useful for "smoothing" out the geometry of the map, preventing the player from snagging on objects. | |
common/monsterclip
Clip only NPC movement. | |
common/fullclip
PlayerClip + MonsterClip. | |
common/origin
Normally brush entities have no origin. Center of brush covered by this textures will set origin of it's parent BModel. This origin is used for movement (path spots) and rotation. | |
common/black
Black wall, hides any stuff behing it. Dont cast a shadow. | |
common/areadisable
Black wall on steroids, this also hides any transparent entities, marks, effects. | |
common/ilava
Invisible, sets brush contents to water. Also used on covering junction sides of water brushes (when making a long river). Water damages the player at slight rate. | |
common/islime
Invisible, sets brush contents to swamp. Swamp slows down player and damages at slight rate when he moves. | |
common/ilava
Invisible, sets brush contents to lava. Also used on covering junction sides of lava brushes. Lava damages player at hight rate (even in mist form), very dangerous to walk on. | |
common/lightgrid
World brush with this texture will make boundaries of entity static lighting. There is no other use. |
This system materials used to create very special things.
common/blackshadow
Black wall but casts shadows from static lights. | |
common/lightblock
Invisible surface that blocks lighting. | |
common/lighthull
Same as lightblock but blocks lighting from inside. | |
common/hint
Invisible material. Brush marked with this texture will create a portal in visibility tree. Rarely used on the places where general portal creation algorithm was failed to generate a proper vis portals, which caused a game slowdown. See surfaceparm hint. | |
common/skip
This special textures should be used only on hint brushes (see above for hint texture). Surfaces with this texture will not make VIS splits (so, they are just skipped). | |
common/nodraw
Caulk that doesnt block visibility data. | |
common/dpshadow
Invisible wall that cast realtime shadows. Weird. | |
dpbihclip
This invisible texture is inaccessible from texture window. It is ised on collision meshes to define BIH support with no reatime shadows. | |
dpbihplayerclip
BIH support + playerclip. | |
dpbihclipandshadow
BIH support + cast realtime shadows. | |
collision
This texture should be used with "collision" mesh only used by ODE. |
[edit] Markers
This materials dont have any effects. Thay are just used to separate things.
common/trigger
All triggers should be marked with this material. | |
common/roof
Material to cover invisible rooftops on func_roof. | |
common/mark1 ... common/mark9
Visible materials with different color to mark various stuff, like light glares, zones. |
[edit] Unused
This materials are there, but have no functionality.