[MC-4647] World turns completely black when having night vision, and being in the void or having blindness Created: 14/Dec/12  Updated: 17/Sep/21  Resolved: 12/Jul/21

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Snapshot 12w50b, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w01b, Snapshot 13w02a, Snapshot 13w02b, Snapshot 13w09a, Snapshot 13w09b, Snapshot 13w09c, Minecraft 1.5.2, Minecraft 1.6.1, Minecraft 1.6.2, Minecraft 1.7.1, Minecraft 1.7.2, Minecraft 1.7.4, Minecraft 14w07a, Minecraft 1.7.10, Minecraft 14w31a, Minecraft 14w33c, Minecraft 14w34a, Minecraft 14w34b, Minecraft 14w34c, Minecraft 14w34d, Minecraft 1.8-pre1, Minecraft 1.8, Minecraft 1.8.1-pre3, Minecraft 1.8.1, Minecraft 1.8.2-pre1, Minecraft 1.8.3, Minecraft 1.8.4, Minecraft 1.8.9, Minecraft 1.9 Pre-Release 1, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, Minecraft 16w35a, Minecraft 16w38a, Minecraft 16w42a, Minecraft 16w43a, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 17w18a, Minecraft 1.12 Pre-Release 2, Minecraft 1.12 Pre-Release 3, Minecraft 1.12 Pre-Release 5, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b, Minecraft 17w46a, Minecraft 17w47a, Minecraft 17w47b, Minecraft 17w48a, Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w02a, Minecraft 18w03b, Minecraft 18w05a, Minecraft 18w06a, Minecraft 18w07a, Minecraft 18w07c, Minecraft 18w08a, Minecraft 18w08b, Minecraft 18w11a, Minecraft 18w14a, Minecraft 18w14b, Minecraft 18w15a, Minecraft 18w16a, Minecraft 18w20c, Minecraft 18w21a, Minecraft 1.13-pre5, Minecraft 1.13, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w11a, Minecraft 1.14 Pre-Release 5, Minecraft 1.14.3, 1.14.4, 19w45b, 19w46b, 1.15 Pre-release 3, 1.15, 1.15.1, 1.15.1 Pre-release 1, 1.15.2, 20w06a, 20w07a, 20w13b, 20w17a, 1.16 Pre-release 1, 1.16.1, 20w29a, 20w30a, 1.16.2 Pre-release 2, 1.16.3, 20w46a, 20w51a, 21w03a, 1.16.5, 21w06a, 21w07a, 21w08b, 21w10a, 21w11a, 21w13a
Fix Version/s: Minecraft 17w06a

Type: Bug
Reporter: [Mod] Sonicwave Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 49
Labels: blindness, fog, nightvision, rendering, underwater-visibility, void, world
Environment:

Affects possibly all non-NVIDIA graphics cards


Attachments: PNG File 2014-12-06_23.21.05.png     PNG File 2014-12-06_23.21.08.png     PNG File 2014-12-06_23.21.10.png     PNG File 2017-03-01_21.59.09.png     File 2020-11-14 15-57-18.mp4     PNG File 2020-12-05_00.09.12.png     PNG File Capture.PNG     PNG File HUD is no longer visible.PNG     File World becoming invisible in void with night vision (17w06a).mp4     PNG File image-2020-07-01-00-20-33-723.png    
Issue Links:
Duplicate
is duplicated by MC-9466 It's dark under lava with nightvision... Resolved
is duplicated by MC-10898 Night vision potion effect under bedr... Resolved
is duplicated by MC-17787 Disappearing World Resolved
is duplicated by MC-48484 Everything is black with Night Vision... Resolved
is duplicated by MC-48578 Total blackout when using night visio... Resolved
is duplicated by MC-64520 Blind when using night vision and in ... Resolved
is duplicated by MC-77836 Blindness when under bedrock with nig... Resolved
is duplicated by MC-96160 Lag of Night Vision Potion. Resolved
is duplicated by MC-106569 Can't see entities below bedrock Resolved
is duplicated by MC-165517 Under overworld everything is dark wi... Resolved
is duplicated by MC-167732 when you have night vision nausea and... Resolved
is duplicated by MC-168758 In 1.15.1, when you are blinded and g... Resolved
is duplicated by MC-169114 Nightvision in the void removes all s... Resolved
is duplicated by MC-170804 The void is completely black when hav... Resolved
is duplicated by MC-171298 Falling into the Void with Night Visi... Resolved
is duplicated by MC-172540 When camera goes under Y=0 while havi... Resolved
is duplicated by MC-177447 Night Vision Glitch Resolved
is duplicated by MC-195083 When you are using effects Night Visi... Resolved
is duplicated by MC-201577 Blindness + Night vision give inconsi... Resolved
is duplicated by MC-205569 Night vision doesn't work in the void Resolved
is duplicated by MC-210477 bug with night vision effect under be... Resolved
is duplicated by MC-212155 Dark words which are tricky/impossibl... Resolved
is duplicated by MC-212199 world lighting / blindness issue Resolved
is duplicated by MC-214811 Bedrock Ceiling Becomes invisible und... Resolved
is duplicated by MC-214850 Night vision causes blindness while y... Resolved
is duplicated by MC-214890 When going to y level under -64 the g... Resolved
is duplicated by MC-215029 You glitch whilst falling in the void... Resolved
is duplicated by MC-215055 no bedrock texture under level -65 Resolved
is duplicated by MC-215148 Night vision in the void has a weird ... Resolved
is duplicated by MC-215919 Unable to see anything below y=64 Resolved
is duplicated by MC-216031 When under bedrock level in the void,... Resolved
is duplicated by MC-216258 Screen goes completely black with nig... Resolved
is duplicated by MC-216283 GUI problem when using Night Vision b... Resolved
is duplicated by MC-217766 Void + Night Vision = black Resolved
is duplicated by MC-218761 Incorrect rendering of the blindness ... Resolved
is duplicated by MC-222046 Creating a map, blindness effect is c... Resolved
Relates
relates to MC-120772 Blindness removes the tint/overlay of... Resolved
relates to MC-165208 Text and other UI elements are comple... Resolved
relates to MC-167763 Blindness does not work underwater fo... Resolved
relates to MC-218599 Void is bugged out with night vision Resolved
relates to MC-10480 Blindness + Night-vision Effects Crea... Resolved
CHK:
Confirmation Status: Confirmed
Category:
Rendering
Mojang Priority: Normal

 Description   

The bug

If the player is under the effects of both Blindness and Night Vision at the same time, the world becomes completely black. HUD things like hand, debug info and inventory, as well as the sky, are still visible. This also occurs if you have Blindness while underwater, or Night Vision while at a negative Y level.

How to reproduce

  1. Navigate to the Void (Y level < 0) or give yourself Blindness with /effect @p blindness
  2. Give yourself the night vision effect with /effect @p night_vision
    Notice the screen becomes completely black, effectively hiding the world.
  3. Alternatively, give yourself Blindness while underwater.

Affected graphics cards

Possibly all non-NVIDIA ones

OpenGL: AMD Radeon HD 6800 Series GL version 4.5.13417 Compatibility Profile Context 15.301.1901.0, ATI Technologies Inc.
GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.
Using VBOs: Yes
AMD Radeon HD 8250
4.3.12618 Compatibility Profile Context 13.251.0.0

Code analysis

Code analysis by quadraxis can be found in this comment.



 Comments   
Comment by MMK21 [ 17/Sep/21 ]

@Haradion This report has already been resolved

Comment by Haradion [ 15/Sep/21 ]

also fixed in 21w37a - seems like it can be closed

Comment by Fabian Röling [ 12/Jul/21 ]

This does indeed seem to be fixed.

Comment by [Mod] Anthony Cicinelli [ 12/Jul/21 ]

I also cannot seem to reproduce in 1.17.1

Comment by syarumi [ 01/Jul/21 ]

Can't seem to reproduce this in 1.17.1 rc1 with Intel, can anyone check?

Comment by user-39d6c (Inactive) [ 26/Mar/21 ]

can confirm for 21w11a

Comment by TheNormalestPeep [ 26/Feb/21 ]

Can confirm with void and blindness in 21w08a and 21w08b

Comment by [Mod] violine1101 [ 17/Feb/21 ]

That's MC-165208.

Comment by W A W Glen [ 17/Feb/21 ]

In 21w07a all text and HUD goes black below -64.

Comment by Hipposgrumm [ 20/Jan/21 ]

In 20w51a, Night Vision + The Void turns the world black (basically a negative brightness sky).

Comment by Mateus Pereira Milbradt [ 05/Dec/20 ]

I use NVIDIA card so I can't reproduce

Comment by Martin Straka [ 14/Nov/20 ]

Still a problem in 20w46a. 2020-11-14 15-57-18.mp4

Comment by Marcono1234 [ 06/Aug/20 ]

Thanks Skelepound, I have reopened MC-167763 and confirmed it myself.

Comment by Skelepound [ 06/Aug/20 ]

I just tested it for myself, and it seems like you're right; being underwater seems to brighten the fog just like Night Vision does, leading to all terrain and text rendering completely black when under Blindness / in a custom biome with black fog / in the void (I didn't test the void though since you can't put water there)

I also found why I, and a few others in the comments, may have been a bit confused regarding which issues this report is tracking; MC-167763, a report tracking the unrelated 'weakened underwater blindness' bug (Easier to see when using a graphics card not affected by the Night Vision bug) was marked as a duplicate of this one, leading to this report about Night Vision / Underwater + Blindness / Void turning everything black containing a lot of comments about the other bug.

I'll update the comments I made earlier to reflect the new information. Also, I think MC-167763 should be reopened to avoid future confusion, as it is a different bug than MC-4647.

Comment by [Mod] Sonicwave [ 06/Aug/20 ]

Skelepound: The behavior while underwater is the same as with Night Vision (at least for me); having blindness while underwater turns the screen black.

Comment by Skelepound [ 05/Aug/20 ]

I've recently found that my computer has this bug, (Night Vision / Underwater + Blindness / Void turning everything black) but only when on its power saving mode. (Likely due to the graphics card not being used when saving power)

This, as well as the features in 20w28a allowing me to change the fog color for custom biomes, has allowed me to find some things that should help to fix this bug (As well as the one in MC-165208, which is why I'm putting this comment there too)

 

Basically, Night Vision (and being underwater) divides the fog color's RGB values (assuming they're 0 - 1) by the largest value out of R, G, or B; effectively making the fog color as bright as it can be. This works fine for most colors, but if the fog color is exactly (0, 0, 0) then the largest value in the color is 0, resulting in the color being (0 / 0, 0 / 0, 0 / 0). This calculation is why the glitch only happens on some graphics cards, as while some of them (I believe the NVIDIA ones) will set the fog color to (0, 0, 0) others may return a NaN value, resulting in (NaN, NaN, NaN). The NaN values echo through the shaders and rendering code, resulting in a ton of stuff rendering completely black.

The reason why the glitch occurs when in the void or under the Blindness effect is because both make your fog color completely black. The same effect can be achieved by making a custom biome where the fog color is 0, also showing this. A potential fix for the bug may be to add a special case in the fog rendering code to skip any fog brightening effects if the fog color is completely black.

 

 

 

Another thing I've noticed: This bug report appears to contain two mostly unrelated bugs, those being the Night Vision rendering bug and the weakened Blindness effect while underwater. As for the second bug, I believe it to be caused by both Blindness and water changing your fog distance; the slightly reduced fog distance of water appears to override the greatly reduced fog distance of the Blindness effect. I believe this too could be fixed if Mojang adds a special case to the code reducing the fog distance while underwater where if the fog distance is already less than the underwater fog distance then to not change the fog distance.

Comment by Dual Iron [ 01/Jul/20 ]

Minecraft 1.16.1

Blindness effect greatly weakens while underwater

NVIDIA GeForce GTX 1650 graphics card

Comment by Murray Robertson [ 19/Jun/20 ]

Confirmed on 1.15.2 and a NVIDIA graphics card (gtx 960)
for greatly weakened underwater blindness

Comment by Aldinyx [ 27/Mar/20 ]

I can reproduce the bug with my Radeon RX550 in version 1.15.2 and 20w13b.

Comment by BrodPlayzYT [ 25/Dec/19 ]

Confired 1.15.1

Comment by TheBoy358 [ 15/Nov/19 ]

Confirmed in 19w46b.
 

Comment by TheBoy358 [ 08/Nov/19 ]

Confirmed in 19w45b and 1.14.4

Comment by noTEing1563 [ 01/Jul/19 ]

Confirmed for 1.14,1.14.1 ,1.14.2 and 1.14.3.

Comment by Hayden Wong [ 15/Dec/18 ]

Affects 18w50a

Comment by Connor Steppie [ 18/May/18 ]

Affects 18w20c

Comment by Connor Steppie [ 19/Apr/18 ]

Affects 18w16a

Comment by Connor Steppie [ 21/Feb/18 ]

Affects 18w08a

Comment by Connor Steppie [ 16/Feb/18 ]

Affects 18w07c

Comment by Connor Steppie [ 09/Feb/18 ]

Confirmed on 18w06a

Comment by husky2490 [ 21/Sep/17 ]

I believe it also works if you use potions

Comment by [Mod] Sonicwave [ 05/May/17 ]

Ok thanks.

Comment by [Mod] Michael Wobst [ 05/May/17 ]

ericz1, MC-10480 is already marked to be reviewed.

Comment by [Mod] Sonicwave [ 04/May/17 ]

miwob Thanks for the reassignment. Would it be possible to get MC-10480 reopened or have the devs look at it again, since it seems to have the same behavior as this bug?

Comment by [Mod] Michael Wobst [ 03/May/17 ]

Ticket is yours now, ericz1

Comment by [Mod] Sonicwave [ 03/May/17 ]

Confirmed in 17w18a

Comment by [Mod] Sonicwave [ 28/Apr/17 ]

MC-10480 appears to be caused by the same issue, although that was resolved as intended for some reason. Both seem to only occur on non-NVIDIA graphics cards as described in this report.

Comment by Fabian Röling [ 01/Mar/17 ]

Not AMD specific, had it with Intel, too.

Comment by [Mod] Urielsalis [ 01/Mar/17 ]

In 17w06a with nighvision hand is not visible, without it it is visible, hud included.
GTX 1060, Windows 10 in case it matters

Edit: http://imgur.com/a/rI9ve

If you put nighvision then drink milk, effect correctly updates to being black. If you go out and then down again it will not be black again

Comment by user-f2760 (Inactive) [ 01/Mar/17 ]

Appears to be fixed in 17w06a.

Comment by Fabian Röling [ 28/Sep/16 ]

enderblaze No, if you close yourself in with e.g. quartz blocks, you can still see something although there is no light. And even if it was normal, the sudden change of brightness at a certain height definitely isn't.

Comment by user33 [ 23/Sep/16 ]

Confirmed for 16w38a

Comment by Immaterialise [ 17/Feb/16 ]

Confirmed for 1.9-pre1. The beacon beam and glowing effect caused by spectral arrows are still visible.

Comment by Ryan Spangler [ 22/Dec/15 ]

This happens to me without a night-vision potion.

Comment by husky2490 [ 18/May/15 ]

Confirmed in 1.8.4

Comment by Christie N [ 21/Apr/15 ]

The way night vision interacts with fog leads me to believe that the bug is caused by the "void box" around the player, which is black. The void box is the black area around the player that hides the skybox while in the void.

Comment by [Mod] Sonicwave [ 26/Dec/14 ]

Confirmed for 1.8.2-pre1.

Comment by husky2490 [ 07/Dec/14 ]

I can confirm this happening in 1.8.1

Comment by Ben McDonald [ 22/Aug/14 ]

Can confirm in 1.8 Pre release 1

Comment by Dustin Lane [ 14/Feb/14 ]

Yes, Galaxy_2Alex, this is still an issue

Comment by Manuel Gwosdz [ 27/Oct/13 ]

Confirmed in 1.7.2 and on Windows (8).

Comment by Roadsguy [ 15/Jul/13 ]

Yes, it is. I get the bug in 1.6.2.

Comment by [Mod] CubeTheThird [ 14/Dec/12 ]

Can confirm.

Generated at Sun Jan 12 12:05:16 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.