anoved / gpxtruder

Make 3D-printable elevation models of GPX tracks.
http://gpxtruder.xyz/
MIT License
71 stars 23 forks source link

iOS/touch preview interaction #14

Closed anoved closed 9 years ago

anoved commented 10 years ago

iOS 8 supports WebGL, and the preview display indeed appears. However, it does not respond to touch interactions, so the display appears static. Look at lightgl.js/three.js libraries for examples; I believe openjsscad.org's WebGL display does interact with touch.

Of course, it's presently moot since there's no way to upload a GPX file from iOS. (What about Android?) One solution would be to provide some canned samples, per #4. (Further down the road, an API connection with MapMyRun/Strava/etc. to load routes directly would be very useful.)

anoved commented 10 years ago

Cribbing from OpenJSCAD.org, 3a9e285365a5dd7e2ef74773beaaae2e07e3013c adds crude touch interface support. (OpenJSCAD.org now uses a different system for touch support.) Works, but needs tweaking - zoom/rotate speeds seem very fast. Could be combined with onMouseMove handler.