-
Notifications
You must be signed in to change notification settings - Fork 36
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
Insufficient data for determining note slice position #77
Comments
From what I recall, and as long as nothing has changed since, the |
I didn't have much more time today but there was a brief discussion on the subject in the discord; I'll look into it again ASAP. |
I've been thinking the direction of the normal might match the direction of the offset. Hopefully I'll have time to run the tests tomorrow. |
I've been looking at this for hours and ran many tests using VR, can't figure it out. Got the angle working, the offset not so much. Here are two example notes from one of my tests - real data from the HTTP status mod. They're from the old Muse - Uprising map. Both are in the same line and layer and have the same direction. One of them was sliced down along the left side (left of center) and the other was sliced down along the right side. https://gist.github.com/Protected/b2c8a8422f9cd86db5bf8874daa3e0b7 How would you tell that they were sliced down along different sides? Here's my illustration from yesterday on Discord to demonstrate the two cuts with the same normal and distance to center: https://cdn.discordapp.com/attachments/443146108420620318/893941603213901925/unknown.png No one was able to provide a link to an existing solution that is correctly offsetting the cut plane without using the note position. Some developers simply do not offset the cut plane at all (they only use the angle and show every cut running through the center of the note). Please, if you remember the procedure I'd appreciate an explanation. I'll share my code on github as soon as I have a decent working version (getting very close now). |
The gist you sent indeed seems to not differ in any meaningful way. As I said before, I believe the |
As discussed in #78 and over Discord, the positions that are being sent in 1.18.0 (and certainly some versions before it) are next to useless, which likely happened due to the game changing over the years without anyone realizing. This has been fixed in 13a5f02 by transforming the While I don't believe anyone could've possibly made sensible use of this data on the current plugin version, feel free to contact me for help if your use case broke because of this change. |
Feature request
It doesn't seem like NoteCutObject contains sufficient information for determining the position of the slice on the sliced note. There are two key issues:
So while we can calculate the angle of the cut and how offset it is from the center of the note, there is no way to tell if it's to the "left" or to the "right" of the center of the note. Other mod authors retrieve the position of the note in order to calculate the local position of the cutPoint, for example
https://github.com/m1el/BeatSaber-SliceVisualizer/blob/master/Core/NsvSlicedBlock.cs#L280
As long as the value of cutPoint is included unmodified, I propose adding a notePosition field to NoteCutObject when the note was not missed.
Alternatively the cutPoint could be transformed server-side (since we have no other use for the note position), and/or a boolean "cutLeftOfCenter" could be included, which would be enough.
Motivation
I want to draw the slice on the note!
The text was updated successfully, but these errors were encountered: