Page 1 of 1

[bug][0.4.*] Slab lightning problem

PostPosted: Sun Nov 01, 2015 14:14
by Fixerol
I've noticed that whole block and slab block have different lightning on them, look at the screenshot (this problem is evident on default and custom slabs), whole blocks are closer, slabs are farther. Also, probably the same problem with stairs.
Image
MT 0.4.13, 64 bit msvc, Win 7 64bit, i3-2120, ATI HD6870

Re: [0.4.*] Slab lightning problem

PostPosted: Sun Nov 01, 2015 14:26
by PilzAdam
I remember that there were problems with this a while ago. The light is applied before the mesh is rotated.

Re: [0.4.*] Slab lightning problem

PostPosted: Wed Nov 04, 2015 17:05
by Sokomine
Nodeboxes/meshes always looked diffrent in that regard compared to full blocks. It can be used for nice effects and allows for indirect lighting. Just place a light source somewhere and put a slab or something like that in front/on top. It can create very nice patterns and effects.

Re: [0.4.*] Slab lightning problem

PostPosted: Mon Nov 09, 2015 16:44
by Fixerol
Added a poll for people with this bug, to specify their setup, vote! Developers need that info

Re: [bug][0.4.*] Slab lightning problem

PostPosted: Mon Nov 09, 2015 17:08
by Ferk
I'd have guessed this wouldn't have much to do with what drivers you have, since Minetest doesn't use dynamic lighting or any fancy hardware lightining features from the graphic card. The poll wouldn't be very useful.

Btw, last time I checked there was simply no smooth lighting implemented for nodeboxes. Isn't this also the case for slabs and stairs? I'm surprised there's a lighting gradient.

Re: [bug][0.4.*] Slab lightning problem

PostPosted: Wed Nov 11, 2015 22:06
by Don
I am working on a mod that checks for lighting. If lighting is 15 then particles are spawned. It works fine except if I am standing on a nodebox. The lighting on a slab is too low to spawn a particle.

Re: [bug][0.4.*] Slab lightning problem

PostPosted: Thu Feb 18, 2016 15:56
by Fixerol
Added github issue here: https://github.com/minetest/minetest/issues/3735... and it is duplicate of another issue posted long ago.

Re: [bug][0.4.*] Slab lightning problem

PostPosted: Thu Feb 18, 2016 17:12
by kaadmy
@Fixerol: afaik this issue has noting to do with the driver, it's the way Minetest currently calculates lighting, and if you disable smooth lighting, everything looks the same as the slab "bug".

Edit: And of course this bug is only in MT 0.4.*, <0.4 didn't have nodeboxes...