All Topics  
Lightmap

 

   Email Print
   Bookmark   Link






 

Lightmap



 
 
A lightmap is a 3D engine light data structure
Data structure

A data structure in computer science is a way of storing data in a computer so that it can be used efficiently. It is an organization of mathematical and logical concepts of data....
 which contains the brightness of surfaces in a video game. Lightmaps are precomputed and used for static objects. Quake
Quake

Quake is a first-person shooter computer game that was released by id Software on June 22, 1996. It was the first game in the popular Quake of computer and video games....
 was the first computer game to use lightmaps to speed render
Render

To Render or To be rendering may refer to:*In the visual arts,** Artistic rendering, the process by which a work of art is created* In computer science,...
ing while preventing floors from looking distorted. Before lightmaps were invented, 3D engines used Gouraud shading
Gouraud shading

Gouraud shading,named after Henri Gouraud , is a method used in computer graphics to simulate the differing effects of light and colour across the surface of an object....
 for the floors and walls which caused shimmering. The most common methods of lightmapping are to either precompute vertex
Vertex (geometry)

In geometry, a vertex is a special kind of point which describes the corners or intersections of geometric shapes. Vertices are commonly used in computer graphics to define the corners of surfaces in 3d models, where each such point is given as a vector....
 lighting by using distance from each vertex to a light, or by using multitexturing to apply a second texture which contains the lumel data.

tmaps are scaled using lumels (lumination elements).






Discussion
Ask a question about 'Lightmap'
Start a new discussion about 'Lightmap'
Answer questions from other users
Full Discussion Forum



Encyclopedia


A lightmap is a 3D engine light data structure
Data structure

A data structure in computer science is a way of storing data in a computer so that it can be used efficiently. It is an organization of mathematical and logical concepts of data....
 which contains the brightness of surfaces in a video game. Lightmaps are precomputed and used for static objects. Quake
Quake

Quake is a first-person shooter computer game that was released by id Software on June 22, 1996. It was the first game in the popular Quake of computer and video games....
 was the first computer game to use lightmaps to speed render
Render

To Render or To be rendering may refer to:*In the visual arts,** Artistic rendering, the process by which a work of art is created* In computer science,...
ing while preventing floors from looking distorted. Before lightmaps were invented, 3D engines used Gouraud shading
Gouraud shading

Gouraud shading,named after Henri Gouraud , is a method used in computer graphics to simulate the differing effects of light and colour across the surface of an object....
 for the floors and walls which caused shimmering. The most common methods of lightmapping are to either precompute vertex
Vertex (geometry)

In geometry, a vertex is a special kind of point which describes the corners or intersections of geometric shapes. Vertices are commonly used in computer graphics to define the corners of surfaces in 3d models, where each such point is given as a vector....
 lighting by using distance from each vertex to a light, or by using multitexturing to apply a second texture which contains the lumel data.

Limitations

Lightmaps are scaled using lumels (lumination elements). The smaller the lumels, the higher the resolution
Image resolution

Image resolution describes the detail an holds. The term applies equally to digital images, film images, and other types of images. Higher resolution means more image detail....
 (and visual quality), at the price of performance. For example, a lightmap scale of 4 lumels per world unit would give a lower quality than a scale of 16 lumels per world unit. It's important for level design
Level design

Level design or game mapping is the creation of level s—locales, stages, or missions—for a video game . This is commonly done using level design tools, special software usually developed just for the purpose of building levels, however some games feature built-in level editing tools....
ers to make a compromise between performance and quality. If a high lumel per world unit scale is set too frequently then the game may use up too much system resources and affect the performance negatively. Lumel 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.

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
Radiosity

Radiosity is a global illumination algorithm used in 3D computer graphics rendering . Radiosity is an application of the finite element method to solving the rendering equation for scenes with purely diffuse surfaces....
 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 lumels 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 lumels are too large. See texture filtering
Texture filtering

In computer graphics, texture filtering is the method used to determine the texture color for a Texture mapping pixel, using the colors of nearby Texel s ....
.

Lightmaps can also be calculated in real-time 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
Shadow mapping

Shadow mapping or projective shadowing is a process by which shadow are added to 3D computer graphics. This concept was introduced by Lance Williams in 1978, in a paper entitled "Casting curved shadows on curved surfaces"....
, as real-time ray-tracing is still too slow to perform on modern hardware in most 3D engines.

See also

  • Shader
    Shader

    A shader in the field of computer graphics is a set of software instructions, which is used primarily to calculate Rendering effects on graphics hardware with a high degree of flexibility....