Minecraft Wiki
Advertisement
Lightexample

Iluminación

Light

Once capas de brillo

En Minecraft, la luz afecta la visibilidad, la generación de mobs, el crecimiento de los árboles, y también si las flores y los champiñones siguen plantados. La luz puede ser emitida por el Sol, las antorchas, el fuego, la lava, los hornos, entre otros objetos.

Historia

Desde Classic hasta la Beta 1.7

Desde el inicio de su desarrollo, el juego ha visto diferentes formas de iluminanción. El tipo de iluminación usado en Classic es simple, y sólo se encarga de comprobar si los bloques están expuestos al Sol o no. En la etapa Indev fue más complejo y considera la cercanía entre un bloque, la fuente de iluminación solar más cercana y la fuente de iluminación artificial más cercana. El modelo de la versión Alpha es una mejora del anterior, calculando la luz solar y la luz artificial por separado, y además utilizando una escala de intensidad lumínica diferente. En la Beta 1.3, se mejoró el sistema añadiendo iluminación suave

Beta 1.8 - Nuevo motor de iluminación

Archivo:Light normal.PNG

Espectro de luz a partir de la Beta 1.8. Desde arriba hacia abajo y de izquiera a derecha: oscuridad, luz de luna, luz solar, luz de antorcha

Con la actualización Beta 1.8, fue implementado un nuevo sistema de iluminación. El nuevo motor incluyó cambios y mejoras, entre los que se destacan:

  • La iluminación en un área se determina por la fuente de iluminación que ilumina el/los bloques: por ejemplo, la luz de luna le da un tinte azulado, las antorchas y la lava le dan un tinte rojizo.
  • Los cambios en la iluminación son instantáneos, y pueden ser graduales a medida que pasan las horas del día.
  • Utilizando la iluminación instantánea, las fuentes de luz artificial parpadearán; sin embargo, este efecto es puramente cosmético y no afecta la jugabilidad.
  • El atardecer es mucho más intenso y realista que en versiones anteriores.
  • Las fuentes de iluminación (ya sea la solar o las artificiales) son menos efectivas en lo profundo. Por ejemplo, al nivel de la roca madre una antorcha dejará de ser visible a 11 bloques de distancia, un efecto parecido al de configurar la distancia de renderizado a Tiny (Pequeña).

Iluminación suave

SmoothAnimSmal

Diferencia entre la iluminación normal y la suave

La iluminación suave (conocida técnicamente como oclusión de ambiente) es una característica del motor de iluminación añadido en laBeta 1.3, con la ayuda de MrMessiah.[1] Este tipo de iluminación está configurado por defecto como "On" (activado), y puede ser activado o desactivado desde la opción Video options del menú Options (opciones de juego).

The engine blends lighting to add semi-realistic shadows and glowing from light sources. It can give the illusion of an overall darker appearance. Before Beta 1.3, the feature could only be obtained by modifying the game with the help of MrMessiah's BetterLight mod.[2]

Known Bugs

  • There are lighting bugs on ice and portal when Smooth Lighting is turned on, since the transparency is made by the game, not the textures.
  • The lighting on both still and flowing liquids are not smoothed when Smooth Lighting is on.
  • If turned off it will sometimes cause a bug where stairs will turn black.
  • Smooth lighting doesn't seem to have an effect on paintings.

Gallery

Effects of light

  • Hostile mobs, excluding slimes, zombie pigmen and ghasts, require a light level of 7 or less to spawn.
    • The Halloween Update version 1.2.0 allowed monsters to spawn in higher light levels at lower depths, using the formula 16 - (Layer ÷ 8). At level 8 and below, mobs could spawn even in sunlight. Notch reverted mob spawning to the original method in version 1.2.1, saying, "it was far too annoying. I have plans on what to do with this."
  • Planted Flowers and Saplings will stay in the ground at light level 8 or higher. They will also stay in the ground if there are no blocks between them and the sky, regardless of light level.
  • Mushrooms only survive at light level 12 or less.
  • Snow and ice will melt at light level 12 or higher, and won't form at light levels above 10. Sunlight is ignored.
  • Trees will grow if the light in the block above a sapling is 9 or higher.
  • Crops will only grow in light level 9 or higher.
  • Grass will only spread in light level 4 or higher.
  • Ambience is triggered by chambers at least 3x3 that are entirely at light level 8 or lower.

Light and Non-Opaque Blocks

Ice-water-light-anim

How ice affects light. Click through to see it animated between ice and water.

Transparent blocks do not affect the light spread, unlike solid ones which will stop the light from being transmitted any further. This includes glass, water, ice, portal interiors, and so forth. See Opacity for a full list.

Certain blocks will only allow light to pass through diffusely. These are water and ice, which reduce light by an additional 2 levels per block, and leaves, which diffuse sunlight but only reduce light by the normal 1 level per block.

Light-emitting blocks

The following values are the brightness of the block itself. The light emitted decreases by one for each square of distance from the light source. Glass does not diminish the light that passes through it, but water or ice reduces light that passes through it by 3 (2 for passing through +1 for normal block decrease). In Minecraft's source code, the luminescences are defined using the floating point values in the third column. In a weird quirk, these floating point numbers are fractions of 16, but are multiplied by 15 to get the integer light value. This means that both 0/16 and 1/16 (0.0 and 0.0625) correspond to the integer light value 0.

Block Light Level Brightness Data Value
(Luz del Sol) 15 100% 1.0F
Fuego 15 100% 1.0F
Jack-O-Lantern 15 100% 1.0F
Lava 15 100% 1.0F
Glowstone 15 100% 1.0F
Cofre Bloqueado 15 100% 1.0F
Antorcha 14 80% 0.9375F
Horno encendido 13 64% 0.875F
(Luz del Sol lloviendo o nevando) 12 51.2% 0.8125F
Portal 11 40.96% 0.75F
Redstone ore, cuando es tocado 9 26.21% 0.625F
Redstone repeater, cuando está activo 9 26.21% 0.5F
Antorcha de Redstone 7 16.78% 0.5F
(Luz de Luna) 4 8.58% 0.3125F
Hongo Marrón 1 4.40% 0.125F
Archivo:2011-06-17 19.21.19.png

Lighting "total blackness" bug in Beta 1.6.6.

  • There is a bug during terrain generation causing lighting to not be calculated, usually in the areas right off of direct sunlight. These areas will end up having a darkness of 1 when they shouldn't, and because of that, enemy mobs can spawn when they normally shouldn't. When this glitch is encountered, a quick fix is to update the area by placing a light-emitting block next to the area. (This bug occurred prior to the 1.8 patch. The new lighting engine update fixed this bug and chunk updates are absent with light level changes.)
  • There is a bug in 1.8 which causes light levels to remain higher than they should be over water.
  • In 1.8.1, there is a bug with the light. During daytime everything is normal. But during nightime all lights are dimmed to the moons level of light. This includes all torches and lava etc.

References

Advertisement