top | item 4095237

PointerPointer: points to your cursor

367 points| nthitz | 14 years ago |pointerpointer.com | reply

65 comments

order
[+] paulirish|14 years ago|reply
I made a quick video explaining how the webapp works: http://youtu.be/Z2ZXW2HBLPM

Essentially, using the gridPositions.json to populate a Voronoi Grid (toggle display of the <canvas> in your browser). Then your cursor position is used against the grid to find which shape encloses it which maps back to the source JPEG which is then displayed.

[+] snowwrestler|14 years ago|reply
I watched your video. It does not seem to explain how the fingertip position in each photo was calculated, which it seems to me is really the heart of the magic.
[+] paulgb|14 years ago|reply
If anyone doesn't care to explore the DOM themselves, this will show the Voronoi diagram and make the photo on top of it transparent. For Chrome, Ctrl+Shift+J and paste it into the console.

  document.getElementById('data').setAttribute('style','');  
  document.getElementById('content').setAttribute('style','opacity:0.7;left:0;top:0;margin:0');
  document.getElementById('underlay').setAttribute('style','left:0;top:0;margin:0');
[+] runako|14 years ago|reply
Interesting example of how a hard problem (image recognition/understanding) can be faked for some cases by solving an easier problem (lookup table, a few hours of manual intervention.)
[+] ajasmin|14 years ago|reply
So there's no advanced computer vision algorithms involved :(
[+] Inufu|14 years ago|reply
doesn't really work for me with Chrome on Windows 7 - an image flashes for a split-second, then it's back to "Finding pointer" (I'm not even touching my mouse)
[+] AsylumWarden|14 years ago|reply
Same here. Just flashes the picture really fast in the latest stable release of Chrome under Windows 7. Works beautifully in the latest Firefox though. Windows IE isn't supported at all apparently (I tried IE 9).

Are the developers willing to share some insight into how this works? The picture selection is right on and there seems to be a good number of pictures at that.

[+] zentiggr|14 years ago|reply
Agreed - never quite settles to actually show anything, just keeps asking me to hold still even though my hand's off the mouse...
[+] LoneWolf|14 years ago|reply
Same problem windows 7 x64 Chrome 19.0.1084.52
[+] simonbrown|14 years ago|reply
It seems to work for me when I move the cursor off the page, though that misses the point.
[+] tshadwell|14 years ago|reply
Works fine in Chromium 21.0.1136.0 (136796).
[+] saraid216|14 years ago|reply
Snow Leopard/Chrome 19 works fine.

Seems like it's Win/Chrome.

[+] Inufu|14 years ago|reply
intersting: on Ubuntu 12.04, still with Chrome, it works
[+] patrick_t|14 years ago|reply
doesn't work on Windows 7 Chrome 20.0.1132.27
[+] jQueryIsAwesome|14 years ago|reply
It looks like Chrome is firing the "mousemove" event when it shouldn't.

One way to make it work is to right click where you want it inside the square it and then left click anywhere outside the square.

In the Javascript looks like the error could be patched in Flasher.js line 72; save the last event.clientX and event.clientY and then check if the mouse coordinates have actually changed.

[+] sparknlaunch|14 years ago|reply
Doesn't work in Chrome but the 'right mouse click' hack works.

There are likely some good opportunities for this code however speed of response may be a problem? Runs a little slow on my PC.

[+] shashashasha|14 years ago|reply
A faster (older) version of this by the same people, with camera flashes: http://flitser.org/
[+] timmaxw|14 years ago|reply
Warning: at least one of the images is not "family-friendly". Are the images automatically collected?
[+] Groxx|14 years ago|reply
Definitely good for a chuckle. It helps a lot that the photos are very well aimed, really makes it feel magical :)
[+] pyre|14 years ago|reply
The images are adjusted. I was able to get the same picture 3 times in a row by moving cursor slightly, but the finger was always aligned exactly the same on the cursor, even though I had moved it.
[+] hackNightly|14 years ago|reply
Just wasted about 20 minutes of my life playing with this. I would really like to know the technology behind. Is there some sort of ML going on, or is this human trained? Either way, very entertaining and scary accurate.
[+] ww520|14 years ago|reply
Something as low tech as having a predefined map of {location : picture} would do it. Break up the screen into a grid of NxN quadrants, like 20x20. Then just find 400 pictures with a finger near each quadrant. Translate cursor to a quadrant x,y; look up picture. Done.
[+] xd|14 years ago|reply
You wasted 20 minutes ... what makes you think someone didn't waste 20 days pulling the image collection together. Occam's razor ;)
[+] alpb|14 years ago|reply
There are serious problems around the upper right corner. I did not get any results from there. I'm wondering whether the pictures are originally pointing that coordinate or are they resized+translated to some offset?
[+] Geee|14 years ago|reply
You'll have to move the cursor left a bit, to get the same image, but with visible finger. The images are indeed offset so that in the upper right corner the finger actually doesn't fit in the frame.
[+] ionforce|14 years ago|reply
I don't see the point of this. The images load far too slowly.
[+] kephra|14 years ago|reply
One suggestion is to move the jquery from jquery.com to your domain for two reasons:

1: It will be one click less, for those who use noscript. 2: It will allow your site to survive the case that jquery.com changes anything, or goes down.

Besides that its a nice toy.

[+] jdpage|14 years ago|reply
Alternately, use the Google CDN.
[+] Andi|14 years ago|reply
What is the point about this beyond showing pictures where the finger is next to my cursor? (Why is this popular?) It's not more interesting than a circumference search. You could implement that with a simple rtree.
[+] chousho|14 years ago|reply
Haha, very clever. Although I seem to be running into problems whenever I put the mouse into one of the 4 corners of the screen. It can find anything more centrally located, though (apparently?)
[+] hanbam|14 years ago|reply
I was actually expecting that somebody did some machine learning / matching over a large set of pictures and found all those images / coordinates.
[+] AznHisoka|14 years ago|reply
How can I get a pointer to my cursor in Javascript? I might find this useful in automating certain processes.
[+] DiabloD3|14 years ago|reply
On Firefox, never goes past "Pointer found, pointing". No image loads, works on Chrome though.
[+] edwinyzh|14 years ago|reply
What's this? I saw some pictures flashed after some loading indicators are shown...
[+] PidGin128|13 years ago|reply
This is technically interesting, but voyeur-istically creepy.
[+] gouranga|14 years ago|reply
Doesn't work in IE9. That was the limit of my experience :(
[+] Inetgate|14 years ago|reply
Is this a some kind of concentration game?