is there any way one can smoothen the changing value of a variable parameter in Geometry Nodes?
A practical example:
I’m using the Raycast node to rotate objects on a water surface (generated with the Ocean modifier) and there are sometimes big jumps between two frames, when the edge of a wave passes under the object.
I understand that GN can’t look ahead, which would be needed for a proper smoothing calculation, but is there an elegant way to go around it by somehow comparing the size of a recent step change and limiting the range within a current change of value can happen?
I can make a set with just this issue, but the goal would be to make a more general node preset that could be used at various places.
Simple example is when tracking something with GN you are receiving the variable output of the tracking. And this output might have spikes that you need to truncate so that you can use this output as a driver for something else.
I was testing using Scale in Math Node, but since I have no control over how many decimals are being saved, it doesn’t do the job. Or at least not in my test.
I mean the vector curve. Or perhaps using an rgb curve is easier because it has no negative component to it.
Try plugging one of the curves into your setup before the rotation node you are using to rotate your boat and make the curve smoother. In theory this should prevent the object from rotating too far in extreme cases.