Skip to content
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

Add Bézier curve support #298

Open
nefarius opened this issue Jun 9, 2023 · 0 comments
Open

Add Bézier curve support #298

nefarius opened this issue Jun 9, 2023 · 0 comments
Assignees
Labels
Core Core/Common Driver Topic enhancement New feature or request

Comments

@nefarius
Copy link
Owner

nefarius commented Jun 9, 2023

Found these two cool projects that could work in user-mode driver code since it's good ol' ANSI C:

  • https://github.com/msteinbeck/tinyspline
    • TinySpline is a small, yet powerful library for interpolating, transforming, and querying arbitrary NURBS, B-Splines, and Bézier curves. The core of the library is written in ANSI C (C89) with a C++ wrapper for an object-oriented programming model.
  • https://github.com/rxi/fe
    • A tiny, embeddable language implemented in ANSI C.

Feature idea: use those in conjunction to add scripting support to complex parameters like axis curve transformation (maybe even rumble strengths?) from lightweight user scripts which eliminate the need to recompile. For example; user provides curve properties via scripting language, driver only takes those parameters and calculates the curve and applies it to axis transformation.

@nefarius nefarius added enhancement New feature or request Core Core/Common Driver Topic labels Jun 9, 2023
@nefarius nefarius self-assigned this Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Core/Common Driver Topic enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant