3 ms·
I do various things where for example I need to convert a linear movement of a control knob to a non-linear value. Quite often I'll look at it and go "aha, it'
by ErroneousBosh 11mo ago
I do various things where for example I need to convert a linear movement of a control knob to a non-linear value.
Quite often I'll look at it and go "aha, it's exponential subtracted from a constant", and then go "aha, that doesn't quite work, it's a polynomial", and then fiddle with that for twice as long.
Eventually, "meh, sod it, I'll just sketch out a graph of what I want on paper, turn it into a lookup table, and LERP for the correct value".
It's amazing how quickly you get a sense of "I just need to bend that in a little so that if these are both up full it doesn't go absolutely mental", and plan your tables accordingly. Also ROM is cheap these days.