-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Various Bezier functions (both 3 point and 4 point, provided examples are for 4 point specifically) #241
Comments
Thanks for your proposition! Can you give some uses you see for Minecraft? |
I'm not the most creative person, the big use I see is mostly in just making cool VFX. If you want examples, here's two effects ive done using them: https://youtu.be/ykD7muPQkD0 (4 point and 3 point beziers, respectively). I also have this clip from awhile ago that uses them for lightning: https://youtu.be/6YeJW4Yh3JI Aside from that I can see niche uses for, as mentioned above, projectile attacks and such (most of my datapack experience is in boss/enemy/weapon design). That and camera paths, but you guys seem to already be working on a module for that. Really, the main use is just: making cool looking things. If that's not enough of a reason to add something to your lib, then that's totally ok, just wanted to put the idea out there. |
Thank you very much! We will see if we have time to implement that after your current tasks. |
I think we should move this to a separate module, since we'll need other type of splines for the |
To start the module i propose to only have evaluation functions for the following splines (bezier, bspline, catmull rom, and hermite). I think derivative could be nice to have then, Not sure we need acceleration and jolt and i'm not sure it's that useful to compute control points directly inside minecraft. Then we could implement functions to compute arclen and to walk a curve with constant speed but this is pretty heavy to do |
Bezier curves are rather underused within minecraft mapmaking and there's precious little library support for them. Despite this, they're really useful for many things including visual effects, camera paths, curved projectile arcs, and more.
Main function ideas I had were:
t
values at those points, calculate the control points of a curve (math for this is pretty big so having the t values be hardest to like .333/.666 or .25/.75 would simplify it a lot).The text was updated successfully, but these errors were encountered: