Cubyz icon indicating copy to clipboard operation
Cubyz copied to clipboard

Dynamic Lights

Open ikabod-kee opened this issue 7 months ago • 1 comments

Allow entities, particles, and dropped items to emit light dynamically. This can possibly be done client-side (like Optifine) and at a lower tick-rate (like Terraria)

ikabod-kee avatar May 25 '25 21:05 ikabod-kee

Aside from the obvious optimization problems (and this really doesn't scale well), I don't know if this is even a good idea for gameplay, as it encourages just running around caves without ever placing torches.

Something like Terraria's glow sticks would be fun though, and since they do become static shortly after throwing, so there is a high probability we one have one of them moving at a given time, and not 10 or more moving players.

IntegratedQuantum avatar May 26 '25 15:05 IntegratedQuantum

Aside from the obvious optimization problems (and this really doesn't scale well), I don't know if this is even a good idea for gameplay, as it encourages just running around caves without ever placing torches.

Something like Terraria's glow sticks would be fun though, and since they do become static shortly after throwing, so there is a high probability we one have one of them moving at a given time, and not 10 or more moving players.

Okay, i know this is a very old discussion, but it's still open and im willing to give my 2 cents as a die hard dynamic lights fan: I don't really get the mentality behind it 'encouraging not placing torches'. because if anything i feel like it actually punishes that, you CAN run around not placing torches, but once you do, you're stuck in the cave, with no guide out. the torches are not only a light source, but also a directional guide, i'll usually use a dynamic light if i want to see what's up ahead without making myself vulnerable, i dont feel like i need to waste placing a torch to see if a path is even any good to go, and if it's good, THEN i place torches, one: to prevent any monster spawning (but i dont know how this affects this game specifically, since i dont know what this game is going to do with entities), and two: to actually light up more of the area without me having to hold out a torch and look, this especially helps with big caves because you can see more of the cave from far away, when you only have one light source in your hand, you are basically limited to what you are capable of seeing in your direction area, while placing torches allows you to have permanent light sources so you know how to get back AND know where you're going and allow you to see more of the cave at the same time.

i dont exactly know how lighting is handled in this game but maybe it doesnt even need to be exactly 'dynamic' but instead it just creates and invisible light source on the player, and is locked to the grid like a block? this is what some minecraft dynamic light datapacks do that dont require shaders or anything, and it seems to be alot more performant than shaders.

nekonesse avatar Oct 22 '25 04:10 nekonesse

It also could be cool for a mob that lights up or something :P

ikabod-kee avatar Oct 22 '25 18:10 ikabod-kee