2 ms·
Well, from this Wikipedia article: http://en.wikipedia.org/wiki/Stereoscopy http://en.wikipedia.org/wiki/Stereoscopy The techniques I'm using are: == Stereops
by moron4hire 16y ago
Well, from this Wikipedia article: http://en.wikipedia.org/wiki/Stereoscopy 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.