Page 2 of 2
Re: Tracing Function Help
Posted: Fri Oct 07, 2011 7:19 pm
by jacque
wolfkillshepard wrote:Hey guy's I know this thread hasn't been visited in a while but after doing some more testing, this drawing function isn't as smooth as I would like it to be on iOS. When signing your name its a lot less smooth on the actual phone than when on a computer. If you have an idea about how to make it good enough to the extent where I can sign a legible signature with a stylus I would really appreciate it!
Thanks!
Engine redraws have been specifically addressed and improved in the next release and are many times faster. I think if you just wait a bit the new release will fix this for you.
Re: Tracing Function Help
Posted: Fri Oct 07, 2011 7:41 pm
by Dixie
Wilfskillshepard...
Does this work for you ?
be well
Dixie
Re: Tracing Function Help
Posted: Fri Oct 07, 2011 9:38 pm
by bn
Hi Wolf, Dixie
I was just playing around with Dixie's code and modified it a bit when basically the same question was brought up in another thread by Kaubs
http://forums.runrev.com/phpBB2/viewtop ... 289#p44289
What I did is try to get the sampling rate of x,y coordinates a little up for a little better resolution. I introduced a redraw delay which can be set from 10 to 200 milliseconds just to experiment with this. Also I added a slieder for the linesize of the graphic since I had the impression the the larger the linesize the slower the graphic redraw. Also I reduced the querying of properties which in earlier stack helped a little. I keep the x,y in a script local variable and just set the graphic.
On my iPhone G3 which is slooow, it worked somehow OK. Not really snappy or super resolution but ok. But Dixie's script did that also.
Here is my take on the signature thing:
(same stack as posted over in the other thread)
Kind regards
Bernd
Re: Tracing Function Help
Posted: Fri Oct 07, 2011 10:29 pm
by Kaubs
That is great! You guys are awesome! I am going to look over the code and see how its all done to try and have a better understanding. What you two have provided is certainly more stable and responsive than the setup I currently have. Thanks!!
Re: Tracing Function Help
Posted: Sat Oct 08, 2011 6:40 am
by BarrySumpter
Nice!
Works on Android and HTC HD2.
The double click takes about 10 goes to work.
I don't know why.
Re: Tracing Function Help
Posted: Sat Oct 08, 2011 9:20 am
by bn
Hi Berry,
the doubleclick is not the best way to erase the graphic on a mobile device because most of the time as you noticed one makes also a move since fingers are large and often also trigger a mouseMove. On the desktop with a mouse no problem. It is kind of an inherent problem of all touch devices. On iOS the system waits for more the 9 pixel "move" before it decides that you want to scroll, exactly for that reason.
It is probably better to use a button, or a shake or click outside of the drawing area to erase the graphic.
Kind regards
Bernd
Re: Tracing Function Help
Posted: Tue Jan 31, 2012 6:03 pm
by strongbow
Anyone know what happened to the 2 Draw examples that are linked to in this topic but don't seem to be available any more?
Just wondering - if anyone still has one of these they could send me, that'd be great!
cheers
Alan

Re: Tracing Function Help
Posted: Tue Jan 31, 2012 6:57 pm
by jmburnod
Hi strongbow,
I think this is the stack in attachment
Best regards
Jean-Marc
Re: Tracing Function Help
Posted: Tue Jan 31, 2012 10:29 pm
by strongbow
Thanks!
Re: Tracing Function Help
Posted: Wed Feb 01, 2012 11:35 am
by Happyrever
Just a thought, RunRev produced a simple painting application which consisted of a small blackboard and pull-out pallett. From memory, it was on their web site to advertise and demonstrate either the web software or the graphics software, introduced several years ago. If someone has this very simple app, I am sure it would provide the ideal solution for this problem.
The blackboard could be shaped to become the input area and be used to capture the signature. The pallett would be shaped to the style of the users application.
I was amazed at how few instructions (script length) was needed to do what it did.
If anyone finds the link, let me know as well because I could do with it for a photo mark up feature in my own application.
Re: Tracing Function Help
Posted: Mon May 27, 2013 9:31 am
by William Jamieson
I really like what was discovered in this app. Although after Runrev changed their website, the links don't work anymore. Could someone who has the file please repost it for the community? Thank you!