-
Notifications
You must be signed in to change notification settings - Fork 3
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
Bug: bottom beam height is not correctly calculated #5
Comments
Hey, thanks for submitting a fix for this issue! I did a little digging and it looks like the height issue you mentioned can be fixed by changing the line in question to:
Note: this will require you to make Beam.beamHeight public. All the other test renders look good. That being said, I dont think the rendering in this case is 100% correct. The middle stem height should be extended to create a linear beam. I will look into that and see if I can come up with a fix, and get this merged into main |
Thanks for the reply. Bit of a side question, why don't beams use LineRenderer but custom procedural mesh? Was it problematic or any other particular reason? I want to change the colors of the beams (gradient), so instead of implementing custom vertex coloring I might as well rewrite it to LineRenderer, so I am asking if you stumbled on some problems. Edit: nevermind, I realized that LineRenderer won't work so easily, because it has slanted ends. |
Consider system
Result:

If I change
ABCUnity/Runtime/Scripts/NoteCreator.cs
Line 668 in 279e5ac
to
then it changes to

Not sure if the Mathf.Abs is needed there anymore. Also, simple notes do not seem to have this problem. I tested various systems after this change and it seems to work correctly now (although bottom stems are tiny bit longer).
I am not going to create PR because I have too many modifications.
The text was updated successfully, but these errors were encountered: