News for hackers. Stuff that matters.
Re:Tune Your PID Controller by MrLeap on Wednesday May 26, 2021 @05:20PM (#27296256)
PID controllers are so fun. I experimented with using them to animate tentacles for a game I'm working on. They're great for all sorts of controllers in fiddly physics based systems.

(https://twitter.com/LeapJosh/status/1327051175112421377)

Judging by some of the posts in this thread, it amuses me that I might have a leg up in the oil and gas industry.

Re:Tune Your PID Controller by jay3ss on Wednesday May 26, 2021 @08:19PM (#27297837)
This is really cool! Do you have any other animations? If you don't mind me asking, how did you use PID controllers to animate the tentacles?
Re:Tune Your PID Controller by MrLeap on Thursday May 27, 2021 @05:57PM (#27309070)
My twitter is full of animations (https://twitter.com/LeapJosh) Not many other cool uses of pids specifically.

Each tentacle is rigged to a chain of bones, somewhat ironically. The bones are physics objects I apply torques to. Every node has the same error function, which is "where is the tip relative to the goal?" so, theoretically, they should all be getting torques to help the tip get to the goal.

Turns out this kind of works!

https://twitter.com/LeapJosh/status/1321219814828945411 Each particle there has a pid controller that adjusts the particles angular velocity so it'll fly towards a goal point in the form of a glowing man.

https://twitter.com/LeapJosh/status/1395762486339645443 here's a more traditional procedural animation I did recently that people seem to like.

Re:Tune Your PID Controller by jay3ss on Thursday May 27, 2021 @08:45PM (#27310476)
This is fantastic and (from my POV) out of the box. I've only ever seen control theory used with cloth animation from some Pixar research papers I've skimmed so this really neat to see another application of controls in animation.

Thanks for sharing and keep up the great work

Re:Tune Your PID Controller by MrLeap on Thursday May 27, 2021 @10:12PM (#27311008)
Thank you! I'm always trying to plug things into the wrong things when it seems like they might work in a fun way.

PIDs have been a remarkably versatile hammer for lots of things that aren't nails.

Re:Tune Your PID Controller by jay3ss on Friday May 28, 2021 @12:03AM (#27311614)
That is the fun part of building things. The novel application of traditional tools can often have surprising results.

> PIDs have been a remarkably versatile hammer for lots of things that aren't nails.

Love it