Page 1 of 1

[Low priority][Graphical] Shadows darken "glowing" objects (eg rail signals)

Posted: Thu Sep 10, 2020 4:35 am
by Reika
Notice how the selected rail chain signal looks darkened by the shadow falling across it, despite it ostensibly being a lighted object.
Image

Re: [Low priority][Graphical] Shadows darken "glowing" objects (eg rail signals)

Posted: Fri Sep 11, 2020 5:30 am
by Rseding91
Thanks for the report however that's just how it works when it's all just sprites: a lot of shadows are just gray transparent textures and when you render one over top of another it darkens it giving the shadow effect. There's no real light engine at play in the game - just sprites on sprites.

Re: [Low priority][Graphical] Shadows darken "glowing" objects (eg rail signals)

Posted: Sat Sep 12, 2020 9:20 am
by Reika
Rseding91 wrote:
Fri Sep 11, 2020 5:30 am
Thanks for the report however that's just how it works when it's all just sprites: a lot of shadows are just gray transparent textures and when you render one over top of another it darkens it giving the shadow effect. There's no real light engine at play in the game - just sprites on sprites.
I know, but render layers are a thing, so you could ensure "glowing" objects come on top of shadows.

Re: [Low priority][Graphical] Shadows darken "glowing" objects (eg rail signals)

Posted: Sat Sep 12, 2020 11:30 am
by orzelek
Reika wrote:
Sat Sep 12, 2020 9:20 am
Rseding91 wrote:
Fri Sep 11, 2020 5:30 am
Thanks for the report however that's just how it works when it's all just sprites: a lot of shadows are just gray transparent textures and when you render one over top of another it darkens it giving the shadow effect. There's no real light engine at play in the game - just sprites on sprites.
I know, but render layers are a thing, so you could ensure "glowing" objects come on top of shadows.
I think that for semi proper solution lights layer would need to be used to lighten shadows when they are rendered.
Applying light after shadow is placed will give visible dimming there.

Re: [Low priority][Graphical] Shadows darken "glowing" objects (eg rail signals)

Posted: Sun Sep 13, 2020 4:09 am
by Reika
orzelek wrote:
Sat Sep 12, 2020 11:30 am
Reika wrote:
Sat Sep 12, 2020 9:20 am
Rseding91 wrote:
Fri Sep 11, 2020 5:30 am
Thanks for the report however that's just how it works when it's all just sprites: a lot of shadows are just gray transparent textures and when you render one over top of another it darkens it giving the shadow effect. There's no real light engine at play in the game - just sprites on sprites.
I know, but render layers are a thing, so you could ensure "glowing" objects come on top of shadows.
I think that for semi proper solution lights layer would need to be used to lighten shadows when they are rendered.
Applying light after shadow is placed will give visible dimming there.
This is about the sprite itself, not whatever light the entity emits.

Re: [Low priority][Graphical] Shadows darken "glowing" objects (eg rail signals)

Posted: Sun Sep 13, 2020 11:43 am
by orzelek
Reika wrote:
Sun Sep 13, 2020 4:09 am
orzelek wrote:
Sat Sep 12, 2020 11:30 am
Reika wrote:
Sat Sep 12, 2020 9:20 am
Rseding91 wrote:
Fri Sep 11, 2020 5:30 am
Thanks for the report however that's just how it works when it's all just sprites: a lot of shadows are just gray transparent textures and when you render one over top of another it darkens it giving the shadow effect. There's no real light engine at play in the game - just sprites on sprites.
I know, but render layers are a thing, so you could ensure "glowing" objects come on top of shadows.
I think that for semi proper solution lights layer would need to be used to lighten shadows when they are rendered.
Applying light after shadow is placed will give visible dimming there.
This is about the sprite itself, not whatever light the entity emits.
I was hoping that when rendering shadows you have lightmap ready - so if rendering shadow of any entity it could be suppresed in places where there is a light on lightmap.