News for hackers. Stuff that matters.
Re:3D pictures without glasses by moron4hire on Wednesday June 16, 2010 @08:42AM (#1435363)
A little while ago, I did an animation in HTML5 that uses various 3D hinting techniques to create an illusion of depth http://seanmcbeth.110mb.com/stereo.html
Re:3D pictures without glasses by JeffJenkins on Wednesday June 16, 2010 @08:51AM (#1435380)
That's neat looking, though it isn't doing anything for me. What are the things you tried to do? Can someone else with stereoscopic vision tell me if it's doing anything for them?

I'm really interested in 3D techniques which work for people without the brain mechanisms to fuse the images of their eyes (unsurprisingly).

Re:3D pictures without glasses by moron4hire on Wednesday June 16, 2010 @09:06AM (#1435417)
Well, from this Wikipedia article: http://en.wikipedia.org/wiki/Stereoscopy

The techniques I'm using are:

== Stereopsis: in this case, simple linear transformation in X-axis proportional to Z-axis as an approximation to a real 3D transformation

== Occlusion of one object by another: basic Z sorting, i.e. "painters algorithm"

== Subtended visual angle of an object of known size: I scale the object size proportional to its distance in the Z-axis

== Haze, desaturation, and a shift to bluishness: I interpolate the object color proportional to its distance in the Z-axis

If you can get the effect to work well, it goes from being a fairly incomprehensible jumble of grey circles (too information-dense for 2D display) to a box of bouncing balls where you can easily track individual objects as they move around.

EDIT: looking at the code, it seems I forgot about a technique that I used! I also threw in the "Vertical position" bullet point from the Wikipedia article, but without a frame of reference in the rendered scene you wouldn't be able to tell.

Re:3D pictures without glasses by bradleyland on Wednesday June 16, 2010 @09:39AM (#1435493)
This particular example requires that you cross your eyes to 'overlap' the two images, so those without good sight in both eyes will not perceive any depth.
Re:3D pictures without glasses by raimondious on Wednesday June 16, 2010 @11:22AM (#1435825)
That works for me, nice job. You could improve it by faking a light source and having them cast shadows. Shooting 3D photos, I've found that shadows really enhance the feeling of depth.

Edit, kind of related, here's a "virtual" stereo where I only used shadows to create the effect: http://www.flickr.com/photos/miura-ori/294022551 It works best if you use the large version of the photo.

Re:3D pictures without glasses by moron4hire on Wednesday June 16, 2010 @11:35AM (#1435867)
Interesting, I'll have to give that a try. I had originally started doing this as an attempt to turn my Android phone into a stereoscope:

http://picasaweb.google.com/lh/photo/MOz-Qmv8VS1pcz0zZ7D0lTo...

http://picasaweb.google.com/lh/photo/ybf2b3eh3j05J2urDrz3Lzo...

Unfortunately, the rendering speed just isn't there. The bottleneck actually seems to be the timer for running the animation, because reducing the number of objects doesn't seem to have a significant effect on the performance. I'll probably end up reworking this as an OpenGL application.

Re:3D pictures without glasses by raimondious on Wednesday June 16, 2010 @11:43AM (#1435882)
I look forward too hearing how that goes. Too bad the HTML version didn't work out — it's pretty slow on my iPad too.

I vaguely remember a company that sold a plastic parallax barrier you could put onto touchscreen phones to do glasses-free stereoscopy. I'll post it if I find it.

Edit: http://www.spatialview.com/en/node/489 here it is, supposedly iPhone only, but I'm sure it can be hacked.