Openrct2: Windows cause issues with snow drawing

Created on 16 Sep 2020  路  6Comments  路  Source: OpenRCT2/OpenRCT2

OS: Windows 10
Version: 0.3.0-develop
Commit/Build: 564cc7b

Snow above windows behaves differently from snow on other places. The speed might be different and snowflakes (dis)appear.

  • [ ] Reproducible in RCT2 (vanilla)?
  • [ ] Specific to multiplayer?

Steps to reproduce:

  1. Force weather to snow with the cheats window open.
  2. Move or open more windows if the problem is not visible.

Screenshots / Video:
Hard to see, but there is some distortion in the snow pattern above the vertical edges of the windows. Most notable are left sides of options and R&D window. It's easier to spot in-game.
Micro Sandox 2020-09-16 11-39-22

bug

All 6 comments

I have to admit I'm having a bit of a hard time spotting the issue

There is an issue; there are 2 dots drawn next to each others instead of one above the left vertical edge of the Options window.

True, is that what you were referring to @jensj12 ? From the description I assumed it would be something broader

Yes. Though it鈥檚 the entire part above a window where the snow behaves differently, in a screenshot this is only visible along the edges. I鈥檒l try to upload a video soon.

@jensj12 Is this what you are referring to?
bug_weird_snow

It is basically happening because of cosine function in Weather.cpp#L135. Cos function is very good to have here but putting "left" of window value make the snow movement very weird. But even without the left value, movement looks still fine. We might can just adjust other values to move a bit better.

Before Fix
with_left_snow

After Fix
without_left

I looked at the PR Let it snow #10754 but seems this problem didn't get any attention.

Was this page helpful?
0 / 5 - 0 ratings