-
-
Notifications
You must be signed in to change notification settings - Fork 565
Added spinner shader to chemical equation icon #6043
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
base: master
Are you sure you want to change the base?
Conversation
|
Thank you for contributing to Thrive. Before your contribution can be accepted, you need to sign our CLA. Once your contribution has been accepted you can ask to be included in the credits (https://wiki.revolutionarygamesstudio.com/wiki/Team_Members) and you can apply to join the team and use this work as a sample: https://revolutionarygamesstudio.com/application/ |
|
Thanks for taking the time to help out with Thrive development. |
Hi! Yes, I'm having problems signing it, I actually planned to ask about it in the forum. I tried a few times, but I get this error: Error, server responded with: {"type":"https://tools.ietf.org/html/rfc9110#section-15.6.1","title":"An error occurred while processing your request.","status":500,"detail":"Failed to upload signed document to remote storage. Please try again.","traceId":"00-071bad2311f82778246098db00c7a441-f9e04ec63450d331-00"}, InternalServerError Same error today. |
|
I see. I checked the server logs and yeah there's a problem uploading the signatures to storage. I did a few small changes to the process that maybe did something (Revolutionary-Games/RevolutionaryWebApp@0e81629) and restarted the server. I just tried signing the CLA again myself and that seemed to work now. So could you please retry the CLA signing now? It should hopefully work without issue this time. |
Thanks for checking that! It works now. |
shaders/Spinner.gdshader
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think for clarity it would be better to split this file into two: the more hands off pixel variant and the current vertex variant that needs an explicit size.
Also could this shader be also applied to the loading screen? As I think that's the one other place that Thrive uses a spinner that this PR doesn't modify yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The shader is now splitted into two.
Also yes ! Just added it to the loading screen icon. It replaces the parts of code that were making it spin before.
I also wanted to ask about the image size of some icons, for example the one used for the chemical reaction is 800px scaled down to 32. Usually 800 for an icon is pretty big, do you need them to be this size for future parts of the game?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. We've had issues in the past where there's an icon that's 24x24 but we need it higher resolution to not look blurry on a 4K screen. And as most artists on the team become inactive after a while, there's no way for us to get updated versions for the icons. So it is better to get such a big resolution that there's no way we'd ever need to redo the icon (rather than having icons that are 5 years old now but need to be redone for higher resolution).
Though, we are switching our icons over to SVG, but obviously that would be a ton of work to redo all old icons so icons are only slowly being replaced. SVGs don't have the same resolution issues so those are imported at smaller scale into the game (as it is very easy to just change the import scale later if required).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see! thank you for letting me know that. I wanted to make sure before making any unwanted changes, as I plan to contribute some more shader or graphics related things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing in game, the loading screen spinner is good. So the shader works. However, the process speed icon (in ChemicalEquation) has two issues:
- There is still the old code that tries to rotate things so when I removed the pivot offset (which should be unnecessary with these changes) there's now a bug where the texture rotates around its top left as well. So there's code that would need to be removed.
- But also the process speed spinner must pause when the game is paused and this shader approach doesn't do that. So I think that what actually needs to be done is one more shader variant that allows manual control from the C# on the current rotation value. That way the C# code can still control the rotation amount and pause correctly but use the shader to apply the rotation.
I committed a few slight style fixes also to your branch, hope you don't mind.
|
We are currently in feature freeze until the next release. |
|
This PR has been inactive for a while and as such is being marked If this is still being worked on / will probably resume work at |
Brief Description of What This PR Does
Adds a canvas item shader to the icon used in the ChemicalEquation.tscn that makes it rotate.
Related Issues
closes #5023
Progress Checklist
Note: before starting this checklist the PR should be marked as non-draft.
break existing features:
https://wiki.revolutionarygamesstudio.com/wiki/Testing_Checklist
(this is important as to not waste the time of Thrive team
members reviewing this PR)
styleguide.
Before merging all CI jobs should finish on this PR without errors, if
there are automatically detected style issues they should be fixed by
the PR author. Merging must follow our
styleguide.