ebooksgratis.com

See also ebooksgratis.com: no banners, no cookies, totally FREE.

CLASSICISTRANIERI HOME PAGE - YOUTUBE CHANNEL
Privacy Policy Cookie Policy Terms and Conditions
Lightmap - Wikipedia, the free encyclopedia

Lightmap

From Wikipedia, the free encyclopedia

A lightmap is a 3D engine light data structure which contains the brightness of surfaces in a video game. Lightmaps are precomputed and used for static objects. Quake was the first computer game to use lightmaps to speed rendering while preventing floors from looking distorted. Before lightmaps were invented, 3D engines used Gouraud shading for the floors and walls which caused shimmering. The most common methods of lightmapping are to either precompute vertex lighting by using distance from each vertex to a light, or by using multitexturing to apply a second texture which contains the lumel data.

Contents

[edit] Limitations

Lightmaps are scaled using luxels. The smaller the luxels, the higher the resolution (and visual quality), at the price of performance. For example, a lightmap scale of 4 luxels per world unit would give a lower quality than a scale of 16 luxels per world unit. It's important for level designers to make a compromise between performance and quality. If a low luxel per world unit scale is set too frequently then the game may use up too much system resources and affect the performance negatively. Luxel size can also be limited by the amount of disk storage space or download time (for the map) or texture memory (for the 3D engine itself) available, although some games attempt to pack multiple lightmaps together to help circumvent these limitations.

[edit] Creation of lightmaps

When creating lightmaps, any lighting model may be used, since the lighting is entirely precomputed and real-time performance is not always a necessity. Traditionally, radiosity is used, but on occasion games have been known to use a more direct lighting model. In all cases, soft shadows for static geometry are possible if simple occlusion tests (such as basic ray-tracing) are used to determine which luxels are visible to the light. However, the actual softness of the shadows is determined by how the engine interpolates the lumel data across a surface, and can result in a pixelated look if the luxels are too large. See texture filtering.

Lightmaps can also be calculated in real-time[1] for good quality colored lighting effects that are not prone to the defects of Gouraud shading, although shadow creation must still be done using another method such as stencil shadow volumes or shadow mapping, as real-time ray-tracing is still too slow to perform on modern hardware in most 3D engines.

[edit] See also

[edit] References

  1. ^ Dynamic Lightmaps in OpenGL. Retrieved Dec. 09, 2006.



aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - en - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu -