changing FPS to 60 doesn't help :( (originally it was 30)
Final code for capturing events and drawing is the same as prototype code
still got ugly, non-smooth curve in case mouse moving very fast

Line in much smoother in Gimp
In fact Flex desktop app produces smooth enough line
will try to create browser quick start and double check

On Thu, Oct 6, 2016 at 9:18 AM, Maxim Solodovnik <[email protected]> wrote:
> Hello,
>
> Thanks a lot for the quick answers, definitely flex is one of my
> favorite communities :)
> Here is example project: https://github.com/solomax/FlexSandbox
> since it is desktop and tiny it looks not that bad
> In my main project the resulting line is not smooth at all :(
>
> I'll try to check the code and remove any delays, thanks for the pointer.
>
> Additionally I'll try to check FFT, I have tried to add additional
> points and use cubicCurveTo, but was unable to finish this (it is
> currently commented)
>
> On Thu, Oct 6, 2016 at 1:47 AM, OK <[email protected]> wrote:
>> Alex Harui wrote
>>>>can't you just up the frame per second of the swf to say 60, and if
>>>>needed interpolate data points to smooth it?
>>> That is a possibility, but the interpolation code may also affect input
>>> rate.
>>
>> For this approach it might be helpful to google with "spline interpolation"
>> and "FFT" (Fast Fourier Transformation). Maybe you find some ready to use
>> AS3 implementations.
>>
>> Olaf
>>
>>
>>
>>
>> --
>> View this message in context: 
>> http://apache-flex-users.2333346.n4.nabble.com/Get-mouse-coordinates-on-high-speed-tp13737p13748.html
>> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>
>
>
> --
> WBR
> Maxim aka solomax



-- 
WBR
Maxim aka solomax

Reply via email to