Page 1 of 1
Smooth sensor data
Posted: 15 Feb 2017, 13:56
by Chris
Hi All,
I have a scene where I am taking in sensor data and using it to move a mesh.
The movement is stuttering quite badly due to the sensitivity of the sensor.
I was wondering if anyone had a method for smoothing this data out so the mesh movement appears smoother??
Thanks
Chris
Re: Smooth sensor data
Posted: 15 Feb 2017, 15:39
by Christian Krix Schmidt
That's annoying because you need to be as fast as possible for a proper user interaction. I am sure you tried using the damper node. I usually add it directly to the axis that controls the movement of whatever object the user is interacting with. Even at very low values/settings that usually prevents jumps and creates smooth movements. I did look into other technologies as well a while back. This one was another idea:
https://www.arduino.cc/en/tutorial/smoothing I wouldn't use the device itself but thought about using a script like this to even out the input values. But the damper node proved to be enough back then.
Chris
Re: Smooth sensor data
Posted: 15 Feb 2017, 16:53
by Karol
Hi Chris!
I once wrote a Butterworth filter implementation as C# node.
It's V4 - I hope the visualization works in V5 (it's using a Rendertarget trick).
But it's definitely worth to experiment with this node!
Cheers
Karol