minicraft-plus-revived icon indicating copy to clipboard operation
minicraft-plus-revived copied to clipboard

[BUG] When an object has a big light radius and the player moves away, the light radius behaves strangely.

Open TheBigEye opened this issue 3 years ago • 4 comments

Describe the bug 1 - If an object (such as a flashlight for example) has a very large light radius, when the player moves away, said light radius (still visible) stops rendering, most likely this is due to the game's rendering system.

2 - If an object or entity has a radius of light that is too large, when moving away from said object: first, the dither is not rendered, and second, it changes the terrain from light to dark immediately when leaving the lighting radius

Note: this also happens with mobs and tiles (in short, everything that emits light)

To Reproduce Steps to reproduce the behavior:

  1. Place a gold lantern (or something that has a large illumination radius).
  2. Get away from the object a bit.
  3. You will notice that the light radius stops rendering immediately before moving completely away from the object.

Expected behavior When moving away from the object or entity that emits the light radius and the light radius being 100% not visible, it should not render

Screenshots dung

Desktop (please complete the following information):

  • OS: Windows, Linux and more likely on MacOS
  • Version: 2.1.0-dev2 (also happens in previous versions)

Additional context Apparently the game by not rendering the object (at some point) also stops rendering the light radius.

TheBigEye avatar Jan 10 '22 17:01 TheBigEye

This occurs with every entity that is big enough. It just so happens that big lights trigger this behavior as well.

lino-levan avatar Jan 11 '22 15:01 lino-levan

I think this is caused from unloading that area, I think there is a loading radius where the player is and upon moving unloads.

Litorom avatar Jan 15 '22 00:01 Litorom

if it is related to the unloading of lighting objects, then you can increase the radius of unloading lighting objects.

Domaman202 avatar Feb 16 '22 01:02 Domaman202

for example, it is possible to not look for an object so that its light is seen in the player's render.

Domaman202 avatar Feb 16 '22 01:02 Domaman202