[0.11.17] Shadow Angle Inconsistency

We are aware of them, but they have low priority. We have more important things to do. They go here in order not to take space in the main bug thread list.
Post Reply
Zeblote
Filter Inserter
Filter Inserter
Posts: 972
Joined: Fri Oct 31, 2014 11:55 am
Contact:

[0.11.17] Shadow Angle Inconsistency

Post by Zeblote » Sat Feb 28, 2015 9:11 pm

This is a minor problem, but after noticing it I absolutely cannot unsee it.

Look at the random buildings (steam engine, pole) and you'll see that the sun comes somewhere from the left.

Image

However, the player shadow is straight down.

Image




Next, let's look at cable shadows:

We view the cable from the side, so we see the hanging curve. However, the sun comes from the left (it shines along the cable) so the curve should not be visible on the ground.

Image

Judging from the pole shadows the sun comes from the left (and very slightly to the bottom as the pole shadow goes up slightly), the red line is how I imagine the cable shadow should actually be.

The same applies for vertical cables. We look along the cable so we cannot see the hanging curve, but the sun shines from the side so it should be visible on the ground:

Image

The cable shadow is also drawn at the wrong position, cables are hanging over the middle pole so the shadow should also be in the middle:

Image

I hope this makes sense, I'm not sure how to explain it otherwise.

slpwnd
Factorio Staff
Factorio Staff
Posts: 1837
Joined: Sun Feb 03, 2013 2:51 pm
Contact:

Re: [0.11.17] Shadow Angle Inconsistency

Post by slpwnd » Mon Mar 09, 2015 1:03 pm

Thanks for the report with pictures :D Good points, all of them.

1) The shadows of the machines are "correct". In a sense that is how all the shadows should be in our chosen isometrical view.

2) The shadow for the player, doesn't follow the same pattern basically as an optimisation (this way the sprites take way less space). However we have now a method to render the shadow separately so we will implement this for the player in the future. Having separate shadow for player will still save a lot of space compared to having shadows as part of every sprite. This is because we can have one generic shadow for all the armors and maybe even for movement with gun.

3) Shadows for poles are calculated programatically. The code that draws the shadows is basically the same as the one for the wires. That creates inconsistency in the pictures you have shown (the cables "appear" to be just vertical lines hence the shadows are also drawn as vertical lines).

These are on our list. But somehow in the bottom. Hence putting this to minor issues.

Post Reply

Return to “Minor issues”

Who is online

Users browsing this forum: No registered users