Minecraft Wiki
м (→‎References: clean up, replaced: {{Environment}} → {{Cередовище}})
м (→‎Smooth lighting: clean up, replaced: [[Wikipedia: → [[wikipedia:en:)
Рядок 63: Рядок 63:
 
== Smooth lighting ==
 
== Smooth lighting ==
   
Smooth lighting (which includes [[Wikipedia:Ambient occlusion|ambient occlusion]] as well as interpolating lighting across block faces) is the lighting engine added in [[Version history/Beta#1.3|Beta 1.3]], with the help of MrMessiah.<ref>http://notch.tumblr.com/post/3446675806/minecraft-beta-1-3</ref> This lighting engine is set on by default, and can be enabled or disabled by accessing Video Options from the [[Options]] menu.
+
Smooth lighting (which includes [[wikipedia:en:Ambient occlusion|ambient occlusion]] as well as interpolating lighting across block faces) is the lighting engine added in [[Version history/Beta#1.3|Beta 1.3]], with the help of MrMessiah.<ref>http://notch.tumblr.com/post/3446675806/minecraft-beta-1-3</ref> This lighting engine is set on by default, and can be enabled or disabled by accessing Video Options from the [[Options]] menu.
   
 
The engine blends lighting to add semi-realistic shadows and glowing from light sources. It darkens inside corners, resulting in small spaces appearing much darker. Before Beta 1.3, the feature could only be obtained by modifying the game with the help of MrMessiah's [http://www.minecraftforum.net/viewtopic.php?f=25&t=55700 BetterLight mod].
 
The engine blends lighting to add semi-realistic shadows and glowing from light sources. It darkens inside corners, resulting in small spaces appearing much darker. Before Beta 1.3, the feature could only be obtained by modifying the game with the help of MrMessiah's [http://www.minecraftforum.net/viewtopic.php?f=25&t=55700 BetterLight mod].

Версія за 13:34, 3 травня 2018

SmoothAnimSmal

Різниця між ввімкненим та вимкненим зглажуванням освітлення.

Освітлення в грі Minecraft впливає на видимість, спавн мобів, ріст дерев, квітів та грибів. Освітлення проводиться за допомогою сонця, факелів, вогню, лави, увімкнених печей, замкнених скринь, порталів в Пекло, а також деяких інших об'єктів.

Історія

Модель освітлення версії Classic дуже проста. Вона лише перевіряє, чи падають сонячні промені на блок. Модель версії Indev більш комплексна. Вона обчислює відстань блока від найближчого джерела світла. Модель версії Alpha більш удосконалена, ніж у версії Indev, там обчислюється сонячне світло та світло від блоків, використовується шкала інтенсивності світла. Ранні оновлення Beta покращили модель версії Alpha, було додано зглажування,а в пізніх версіях Beta, весь механізм освітлення був переписаний для покращення ефективності, деталізації, гладкості переходу між рівнями освіщення.

Classic

Файл:Classiclight.png

Світло в Classic

В версії Classic, “сонячне світло” випромінюється з верхнього краю карти та падає на будь-який блок під ним. Воно проходить через прозорі блоки і світить на блоки під ними. Блоки, на які світло не падає, знаходяться в тіні.

Indev/Infdev

В Indev та Infdev є 16 рівнів світла, максимум - 15, це освітлення від сонця, а мінімум - 0, повна темрява. Була лінійна шкала світла, де 15 - 100% (Шаблон:Frac), а , наприклад, 13 - 86.67% (Шаблон:Frac).

Кожен блок, що випромінює світло, має свій рівень освітлення, яке зменшується на 1 при віддалені від джерела. Якщо в сусіднього блока більше значення освітлення, то менше значення відкидується. Вдень рівень освітлення максимальний - 15. Ввечері рівень освітлення поступово зменшується до 4 - місячне освітлення. Блок, на який падає сонячне світло буде максимально світлим на будь-якій висоті.

Minecraft - Pocket Edition на данний момент використовує незглажене освітлення.

Alpha - Beta 1.2_02

Освітлення з версії Alpha до Beta 1.3 працює так само, як і в версії Indev та Infdev, крім того, що тут інша нелінійна шкала.

Сонячне світло дає максимальний рівень освітлення 15. Кожне нове значення, менше ніж попереднє, світить Each value below this is 80% as bright as the one above it. For example, 14 is 80% as bright as sunlight, and 13 is 64% bright. This means that Level 0 still has 0.8¹⁵·100% = 3.5% of the maximum brightness.

Sunlight in Alpha has its own light array and a behind-the-scenes optimization to make dawn and dusk smoother: the amount of light from the sky is pre-calculated and saved along with the blocks, because it never needs to change except when blocks are added or removed. During dusk, nighttime, and dawn, a "darkness" value is subtracted from the sky to create the effects of different times of day.

In the Nether, light decreases by 10% each level, rather than the normal 20%. This means it will never be totally dark in the Nether. The minimum light value is 20.59%, providing a permanent dim ambience equivalent to normal world's level 8.

Beta 1.3 - Beta 1.7.3

Lighting from Beta 1.3 to 1.7.3 works the same as how it was in Alpha, but is greater optimized to allow smooth lighting.

Beta 1.8 - 1.3.2

Файл:Light normal.PNG

Beta 1.8 pre-release light spectrum during day. The X axis represents exposure to block light sources (e.g.: torches) while the Y axis represents exposure to sunlight

Файл:Light night.PNG

Beta 1.8 pre-release light spectrum during night. The Y axis is colored slightly blue and represents the total exposure to moonlight

In Beta 1.8, a new lighting engine was implemented. The new engine has added and changed the following:

  • The lighting of an area is influenced by the type of light source that is lighting the block: moonlight gives a blue tint, torches and lava give a reddish tint, and complete darkness and sunlight are the same as before.
  • Changes in lighting are now instant, and can be gradual as changes in the time of day and the state of rainfall now smoothly change the lighting value rather than individually updating the lighting of chunks one by one.
  • Using the new instant lighting, non-sunlight lighting now subtly flickers, although this feature is purely cosmetic and has no effect on gameplay.
  • Sunset is much more intense and realistic than before, and its intensity dims if the player turns away from it.
  • At extreme depths, black fog closes in. At the bedrock level, a torch can no longer be seen from 11 squares distance. This effect is inhibited by proximity to open sky (i.e. the degree to which the place where you are standing would be lit by sunlight), whether or not the sun is currently up.
  • When inside the void, lighting operates similar to Classic, where objects in the void will remain at a constant brightness, regardless of how far they travel away from a light source, provided that they remain directly underneath an opening into the void. The brightness of the particular "column" of space is based on the current light level at level 0, the bottom bedrock layer. This applies to all entities, as well as particles.
  • Additionally, sitting in the void underneath a shaft which allows sunlight directly into it will remove the void fog, regardless to whether is it daytime or not.

12w39a and after

Шаблон:Stub

Starting with 12w39a, Dinnerbone fixed lighting bugs involving slabs, stairs, and black patches,[1] and began overhauling the lighting systems such as changing the lighting of blocks to allow for directional lighting.[2][3] Some minor issues still occur with smooth lighting and stairs.

Due to severe bugs involving world generation, Dinnerbone has reverted these changes and says he will work on it for 1.5.[4] Although worldgen issues were temporarily fixed,[5] he has decided not to include these changes yet.[6]

Smooth lighting

Smooth lighting (which includes ambient occlusion as well as interpolating lighting across block faces) is the lighting engine added in Beta 1.3, with the help of MrMessiah.[8] This lighting engine is set on by default, and can be enabled or disabled by accessing Video Options from the Options menu.

The engine blends lighting to add semi-realistic shadows and glowing from light sources. It darkens inside corners, resulting in small spaces appearing much darker. Before Beta 1.3, the feature could only be obtained by modifying the game with the help of MrMessiah's BetterLight mod.

Bugs

  • There are lighting bugs on ice and portals when Smooth Lighting is turned on, since the transparency is made by the game, not the textures.
  • The shading on both still and flowing liquids is not smoothed when Smooth Lighting is on.
  • Smooth lighting doesn't seem to have an effect on paintings. This may be because they are entities.
  • Glass, if placed directly on another surface, will cast a shadow.
  • Smooth lighting doesn't affect players and items when moving from block to block.
  • On rare occasions light can render in areas with no light emitting objects whatsoever. This possibly happens when older Minecraft version worlds are loaded into newer versions.
  • Sometimes when finding a generated structure with torches (or another light source) the torches will be visible in darkness but not give off any light

Effects of light

  • Hostile mobs, excluding slimes, silverfish, and Nether mobs, require a light level of 7 or less to spawn.
    • The Halloween Update version Alpha 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 Alpha 1.2.1, saying, "it was way too annoying. I have plans on what to do with this."
  • Blaze require light level 11 or less to spawn.
  • Silverfish spawn in light level 11 or lower, except on top of stone blocks, where they can spawn at any light level. They also cannot spawn within a 5 block distance of any player. These restrictions only apply when spawning from a monster spawner, and not from a Silverfish block.
  • Flowers only survive in light level 8 or higher. Flowers in light level lower than 8 will drop as an item unless they are exposed to direct moonlight.
  • Mushrooms only survive at light level 12 or less. Mushrooms in light level higher than 12 will only stay planted if they are on a mycelium block.
  • 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. Saplings in light level lower than 9 will uproot unless they are exposed to direct moonlight.
  • Crops will only grow in light level 9 or higher. Crops in light level of lower than 9 will uproot unless they are exposed to direct moonlight.
  • Grass will only spread from grass blocks in light level 4 or higher to dirt blocks in light level 9 or higher.
  • Ambience is triggered by chambers at least 3x3 that are entirely at light level 8 or lower.
  • Spiders and Cave Spiders will only become hostile at light level 11 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.

Half slabs are listed as a transparent block in the opacity list, however they do not conduct light. If placed adjacent to a light emitting block, the exposed face of the half will be lit at the proper level, but light will be blocked from travelling any further.

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

LightEmittingBlocks

Comparison of the different light levels that blocks emit.

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.

Icon Block Light Level
(Sunlight) 15
Beacon Block Beacon
End Portal End Portal (block)
Fire Fire
Glowstone Glowstone
Файл:Jack-O-Lantern.png Jack 'o' Lantern Face
Lava Lava
Файл:Locked Chest.png Locked Chest
Файл:Redstone Lamp (Active).png Redstone Lamp, when active
Torch Torch 14
Файл:Furnace (Active).png Furnace front, when active 13
Файл:Jack-O-Lantern.png Jack 'o' Lantern Side

(Sunlight, when raining or snowing) 12
Файл:Portal.png Nether Portal (block) 11
(Sunlight, when thundering) 10
Redstone Ore Redstone Ore, when touched 9
Файл:Redstone (Repeater, Active).png Redstone Repeater, when active
Ender Chest Ender Chest 7
Файл:Redstone (Torch, Active).png Redstone Torch, when active
(Moonlight) 4
Brewing Stand Brewing Stand 1
Brown Mushroom Brown Mushroom
Dragon Egg Dragon Egg
End Portal Frame End Portal Frame

Light-filtering blocks

The following values are the amount each block decreases the light value. The light emitted decreases by one for each square of distance from the light source, more depending on the block it passes through. 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).

Icon Block Decrease
Piston Piston Base 6
Water Water 4
Ice Ice
Cobblestone Slab Slab 2
Cobblestone Stairs Stairs
Chest Chest 1

Trivia

  • Hostile mobs can spawn in areas where there should be light, but there isn't. This is because the game thinks there is a light level of 0.
  • Smooth Lighting is not apparent on the top of water or on paintings.
  • A 21 x 21 square of opaque material is enough to spawn mobs in the shadow underneath.

Gallery

References

  1. Dinnerbonetweet:250952827608915969
  2. а б Dinnerbonetweet:250904989885661184
  3. http://www.reddit.com/r/Minecraft/comments/10g4mi/dinnerbone_at_this_point_i_think_its_almost/
  4. Dinnerbonetweet:251719813704069120
  5. Dinnerbonetweet:252679131261710336
  6. Dinnerbonetweet:253772962530996224
  7. Dinnerbonetweet:250907917665042432
  8. http://notch.tumblr.com/post/3446675806/minecraft-beta-1-3

Шаблон:Cередовище