GRAPH 3D v2.425 (20-FEB-2017)
|
12-16-2014, 08:54 PM
Post: #107
|
|||
|
|||
RE: GRAPH 3D v2.42 (Updated 16-DEC-2014)
The problem in your code Han is the very slow reaction, when you touch the screen. Even the scroll renders in real time. This is not possible with the prime. You must take a screenshot, zoom the screenshot and at the end you can render it new.
So I've make more with my code. The single touch command is supported and the trace mode is even better with touch. I know that it is slow with complex functions or the trace mode. But with little functions you can have your fun and in trace mode it is a good option, to change the view without go out of it. I hope Han, that you can accept this code. I don't use the wait(-1) cmd. No if a finger is on screen I crap the coordinates directly with "MOUSE". When nothing is moved, then a old variable (who is defined with the coordinates, before I analyse the touch data) must have the same value. I think it is acceptable for the HP Prime Touch Screen with his very rough touch grid. Even I've changed the g3D_drawtrace and g3D_draw function. So every time, when I'm in trace mode, I wrote the picture from g3D_draw not to G0. I write it to G2 and then render the g3D_drawtrace raster over it. So here's the updated code: HPPrime_touch_v2.412.txt (Size: 54.66 KB / Downloads: 43) I have marked all changed lines with "// CHANGE BEGIN", "// CHANGE END" and for single line "// CHANGE" I have used really these words. So you can do a simple search or replace it with "". TO HAN: Isn't it possible to have a faster rendering? Only because you add some lines with line_p in trace mode, the function runs semi slow. I think that can't be normal. But you are the brain here and you have created the script, so I think you know more about the speed and how fast it runs then I. I would be so happy, when this code will be used in your code. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 7 Guest(s)