What algorithm is used to draw smooth curves in real time? #61
Replies: 2 comments 1 reply
-
@sergey900553 I don't think perfect-freehand is using any such formal algorithm, if you look at the implementation everything looks relatively ad-hoc (although there is a remark that comes to mind about smoothing points along a more "perfect curve"). |
Beta Was this translation helpful? Give feedback.
-
Also for context if it helps, the perfect-freehand algorithm basically just gives you offset points, and you don't even need to render stroke outline point as as curves, if you have a high enough sampling frequency (and I suppose if the stroke diameter isn't too big) lines will be indistinguishable from curves. |
Beta Was this translation helpful? Give feedback.
-
Perfect freehand creates smooth curves in real time. In other applications, this requires some kind of post-processing.
It looks like some kind of spline, like a Catmull-Rom spline. But this app shows too good results. What algorithm are you using for this?
Perfect freehand smoothes in real time.
Another application uses post-processing
Beta Was this translation helpful? Give feedback.
All reactions