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

[Engine] Black Baground on section resize event #417

Open
Alucard648 opened this issue Feb 20, 2021 · 4 comments
Open

[Engine] Black Baground on section resize event #417

Alucard648 opened this issue Feb 20, 2021 · 4 comments
Labels
bug Graphics Graphical subsystem: render, texture processing, images file management.

Comments

@Alucard648
Copy link

Engine 0.3.4.0 built 01.02.2021

Whenever the section was resized beyond it`s initial dimensions by event it renders black backround outside default dimensions. Similar to issue with Xtech TheXTech/TheXTech#42

Scr_2021-02-20_09-03-53

Test level: https://disk.yandex.ru/d/WW0aPqMxZjDPpg

Expected behavior
It depends on background settings. it maybe:

  • tiled backround
  • repeat edge pixels with gradient fading to specific color

Windows 10

@ChristianSilvermoon
Copy link

I'd still suggest that since this doesn't occur with levels already at a larger size that the game should compensate by accounting for max possible resizes based on event data in the level, in order to get a normal looking background

@Alucard648
Copy link
Author

I'd still suggest that since this doesn't occur with levels already at a larger size that the game should compensate by accounting for max possible resizes based on event data in the level, in order to get a normal looking background

Section can be resized not only by events, but also by scripts.

@ChristianSilvermoon
Copy link

I'd still suggest that since this doesn't occur with levels already at a larger size that the game should compensate by accounting for max possible resizes based on event data in the level, in order to get a normal looking background

Section can be resized not only by events, but also by scripts.

That... could get substantially trickier to account for O.o

@Wohlstand
Copy link
Member

The black lower than section is a way to avoid the parallax distortion when a player goes lower than the actual section boundary. If change the section size together with the background hot spot, the result would look weird when the background parallax will change itself. Do you suggest making some sort of the gradient from the lowerest row color into the black like the similar case at TheXTech? However, I should apply the left-right background algorithm from the PGE Engine into TheXTech to resolve the damn that appears when you do resize the section into the left at the left boundary. I still have the illustration of this damn at my archive, but I can't find it yet...

@Wohlstand Wohlstand added bug Graphics Graphical subsystem: render, texture processing, images file management. labels Jun 10, 2022
@Wohlstand Wohlstand added this to the Moondust Project Neo milestone Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Graphics Graphical subsystem: render, texture processing, images file management.
Projects
None yet
Development

No branches or pull requests

3 participants