MegaMek / megamek

MegaMek is a networked Java clone of BattleTech, a turn-based sci-fi boardgame for 2+ players. Fight using giant robots, tanks, and/or infantry on a hex-based map.
http://www.megamek.org
GNU General Public License v2.0
296 stars 286 forks source link

0.49.3 - Shadow rendering darkening most buildings by rendering 'on top' #3135

Closed SimonLandmine closed 2 years ago

SimonLandmine commented 3 years ago

MegaMek 0.49.3 (MekHQ version) Windows 10 Java OpenJDK 11

It appears that shadows on 0.49.3 are being rendered 'on top of' some buildings, making them appear very dark compared to previous versions of the game. This appears somewhat inconsistent, but appears to occur most often with Medium or heavier buildings, and with buildings of Height 3 or more - but also affects Light buildings adjacent to Medium buildings or Height 3 buildings.

With shadows ... image

Without shadows ... image

HoneySkull commented 3 years ago

Looks like from the pictures, it's buildings on top of pavement that are rendered incorrectly.

SimonLandmine commented 3 years ago

Looks like from the pictures, it's buildings on top of pavement that are rendered incorrectly.

Ooh, good spot! [FX: Sound of an embarrassed man kicking himself]

SJuliez commented 3 years ago

Yes, that is the reason. The problem is (again) that I would need to upgrade the tileset image retrieval to be able to handle the images better when there is more than one terrain element in a hex. I could maybe find a solution with the current way of things but its all stopgap.

SimonLandmine commented 3 years ago

I'm guessing it was a part of the change in rendering between 0.48 and 0.49, as it didn't happen in 0.48.