Using the devices as planes for the golf demo is incredibly creative! https://www.youtube.com/watch?v=ZE0gxa-p8HY I know you can use HTML5 DeviceOrientation for angle and the "swip" for relative positioning. But how did you get the physical size of the screen of each device?
Show HN: Swip.js, a library to create multi device experiments
11–19 of 19 posts
Re: Show HN: Swip.js, a library to create multi device experiments
#12Re: Show HN: Swip.js, a library to create multi device experiments
#13Does anyone know how well you can time via an app? I wonder how it sounds to play sound across devices. Streaming and clock syncing can happen beforehand, just the playback has to be very sync to an absolute timing. Maybe one can do something crude sound propagation synthesis by playing with timing, sound runtime, gps and a crowd. If you synthesize the sound the app even stays very small. You could e.g. make an ocean…
They split the room into 3 sections, and then controlled each section to play it's own tune.
Re: Show HN: Swip.js, a library to create multi device experiments
#14Using the devices as planes for the golf demo is incredibly creative! https://www.youtube.com/watch?v=ZE0gxa-p8HY I know you can use HTML5 DeviceOrientation for angle and the "swip" for relative positioning. But how did you get the physical size of the screen of each device?
We haven't figured out a way to do this automatically. Currently we prompt the user to enter the size of the device when the app is opened for the first time.
Re: Show HN: Swip.js, a library to create multi device experiments
#15Re: Show HN: Swip.js, a library to create multi device experiments
#16Earlier quoted context omitted.
We haven't figured out a way to do this automatically. Currently we prompt the user to enter the size of the device when the app is opened for the first time.
How do you know which device is positioned higher than the other (on a bunch of books)?
Re: Show HN: Swip.js, a library to create multi device experiments
#17Earlier quoted context omitted.
How do you know which device is positioned higher than the other (on a bunch of books)?
Based on the demo they showed, this isn't needed. As long as they know the orientation of the device relative to a flat plane they can move the virtual items within the bounds of that device's screen. When it crosses over on to another device, it only needs to calculate movement based on it's relative orientation.
Re: Show HN: Swip.js, a library to create multi device experiments
#18Wow, great work. I assume the pinch gesture calibrates the positioning and is always center of the screen? The bounce off the screen edge on pong is satisfying.
Re: Show HN: Swip.js, a library to create multi device experiments
#19Does anyone know how well you can time via an app? I wonder how it sounds to play sound across devices. Streaming and clock syncing can happen beforehand, just the playback has to be very sync to an absolute timing. Maybe one can do something crude sound propagation synthesis by playing with timing, sound runtime, gps and a crowd. If you synthesize the sound the app even stays very small. You could e.g. make an ocean…
If you are playing sound you can use the microphone for synchronisation.