-
Notifications
You must be signed in to change notification settings - Fork 132
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
feat: Added new camera parameters: 'zoominspeed', 'zoomoutspeed' and 'yscrollspeed'. #1818
Conversation
I'd suggest you change |
I have rewritten it in terms of However the ytension mode (as opposed to verticalfollow mode) would still benefit from a |
This problem persists. I think the function should take into the account the difference between |
Hmm... let me clarify what the problem is, because I may not understand correctly. Is the problem that the camera X changes after slowing down zoom? The camera X not changing is the correct behaviour? If I understand this correctly, then:
To my eye, the observable behaviour of the camera bounding described in point 2 looks good? I do not observe any visible artifacts, except for the characters being blocked from escaping, by the screen edge, when both characters are on the outer edges, but it is an expected side-effect of forcibly slowing down zoom? |
Ikemen.GO.2024-05-30.08-51-30.mp4
Ikemen.GO.2024-05-30.08-53-17.mp4The camera is moved towards right that rightest is far beyond the tension. |
This would also be true for The camera keeps moving to the right, because it is still zooming in. The zoom is trying to reach the same target, but it was slowed down, so it is "catching up". Is this in some way a problem? |
In fact - during the "catching up" phase, as far as I can tell, my zoom slowdown function does not change the camera X given in the input at all - the same camera X goes out. |
Ikemen.GO.2024-05-30.18-54-56.mp4You can see camera pos X is not moving beyond -9.41178 |
OK - I think I can see what you mean now - thanks! 🙏 I pushed a commit fixing this. |
I haven't had the chance to test it yet, but some opinions:
In previous Ikemen builds, |
I do not know how it worked in previous Ikemen versions - but looking at the current code I have some doubts it such a thing would be easily portable from some previous version. I tried to add something like |
It sounds to me like you are not convinced that these parameters are needed or useful - especially if you think that slowing down zoom out is of no value. I would appreciate a straight feedback, if you think that this is ultimately not worth merging and cluttering the stage parameters. |
No, they are good. We've just been getting a lot of camera parameters lately, and most of them aren't even documented. If You could also squash some of the commits. For the purpose of the main repo, some of them are the same commit. |
If someone else can do this the Regarding the rename Tell me if you think that it would be preferable to exclude the |
Sure. I will do it. |
I can document my merged parameters or the parameters that I was substantially involved in. Do you mean to document them here on the Github's wiki? Or in the source code? If it concerns the wiki documentation - I assume the wiki can reflect the |
I had a feeling that might be the case. Nevermind then. Another nitpick though (I nitpick names a lot, don't mind me) is they could be "mul" or something instead of "speed" since they're a multiplier rather than absolute velocity (tensionvel arguably has the same issue but is not worth changing). Then again I can't think of anything actually better than "speed" right now. Just a random thought.
In the wiki. Though source code notes are also helpful. We've been documenting stuff as "nightly build only" because that's a lot less work than documenting them all at once when the stable version is out.
That could be the case if someone was working on implementing that other feature, but I don't think anyone's doing that right now so I don't see why not. We can always refactor some things and deprecate others down the line since the engine is constantly in flux. One other thing is (ideally) new stage parameters would also be added to the StageVar trigger and ModifyStageVar state controller, but there's no rush. |
The verbose version describing what these parameters really do would be Should I change the names to be more verbose?
Should this be done as part of this PR, or can we merge this PR first? |
Either just speed or just factor would be better I think. Or just rate as you also mentioned. Whichever you like best since they're all good. The char stuff can be added later, yeah. |
OK then - if we do not want to go verbose with the parameter names, then I will just leave the current ones. Thank you very much for the feedback/review! I assume there are no more changes required for this PR then. |
Adds the
zoominspeed
,zoomoutspeed
and theyscrollspeed
camera parameters - relative values in the[0, 1]
range. See: discussion.