Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlapping clouds can completely obscure what they are painted over #484

Open
wench opened this issue Apr 9, 2024 · 5 comments
Open

Overlapping clouds can completely obscure what they are painted over #484

wench opened this issue Apr 9, 2024 · 5 comments
Assignees

Comments

@wench
Copy link
Member

wench commented Apr 9, 2024

If multiple clouds overlap they can cause so much darkening everything under them becomes completely black. There is just a lack of accuracy doing transparency in 8 bit colour so after only a couple layers it is impossible to see anything. This seems to be a particular problem in Skara Brae as the ground starts so dark as seen in this screenshot and Skara Brae generates huge numbers of clouds
clouds

I'm not sure how the original acted or if it even allowed overlapping clouds but I do not recall this happening.
Regardles I have ideas on how to fix this so I'll assign this to myself

@wench wench self-assigned this Apr 9, 2024
@NotStanley4330
Copy link
Contributor

I can look into this in DOSBox to see original behavior for you. I recall it getting pretty dark but it may have been mitigated somewhat.

@wench
Copy link
Member Author

wench commented Apr 9, 2024

Ok cool some screenshots would be appreciated, just wandering around in Skara Brae should generate a lot of clouds

@marzojr
Copy link
Member

marzojr commented Apr 9, 2024

For reference, I think that this issue is because we don't check at all whether clouds overlap when placing them.

@NotStanley4330
Copy link
Contributor

Alright so in testing in DOSBox, the original seemed to totally support overlapping clouds. Most of the time it appears to be just 2 clouds overlapping but it seems that three clouds can overlap and does further darken things. Here are some screenshots.

2 cloud overlap:
image

3 cloud overlap:
image

And here is a video demonstrating what this looks like in motion:

Cloud.overlapping.mp4

This actually appears to be in the original game as well, and to a pretty similar extent.

@wench
Copy link
Member Author

wench commented Apr 10, 2024

Thanks for that I guess then that fixing this will be an engine enhancement of sorts and something that needs to be togglable for the purists

My fix for this will be to still allow overlapping clouds but when rendering only a single layer of transparency will be allowed.

@wench wench changed the title Overlapping clouds can completely obscure wgat they are painted over Overlapping clouds can completely obscure what they are painted over Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants