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

2d drawing improvements #133

Merged
merged 20 commits into from
Jun 5, 2020
Merged

2d drawing improvements #133

merged 20 commits into from
Jun 5, 2020

Conversation

Xeeynamo
Copy link
Contributor

@Xeeynamo Xeeynamo commented Jun 3, 2020

Fixes various graphics glitches and removes Xe.Drawing dependency for good.

All the game maps were suffering from a bug where transparent elements were not blended correctly with the skybox. This problem has been fixed as the screenshot proves:
image
There is also another fixed bug, where the game engine was always loading the skybox as SK0, but maps like tt00 have the skybox as SK1

The improved Sequence rendering engine now process loops correctly thanks to my recent discovery. I removed some hard-coded logic to loop certain sequences in the TitleScreen since they were no longer necessary.

Thanks to @kenjiuno discovery regarding the blending mode, I was able to improve the rendering system even more to correctly render complex sequences like the title screen:

image

Finally, thanks to my recent discovery of sequence being capable to perform UV animations, I was able to replicate this in-game too, and it looks fantastic:

almost there

The title screen is still not perfect, as the additive blending mode is brightening the screen too much.
Also, since the game is using MonoGame and the tools Direct3D, the blending mode and UV animations has only been implemented in MonoGame. Therefore those two specific fixes will not be available (yet) in the LayoutEditor tool. The main reason is because I have yet to do some research on how to write a shader for it.

@Rikux3 Rikux3 merged commit 83848e8 into master Jun 5, 2020
@Rikux3 Rikux3 deleted the feature/2d-drawing-improvements branch June 5, 2020 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants