user367856
user367856

Reputation: 347

Any php script to convert an 2D image to 3D?

I generate a stereo anaglyph image from two source images (left.jpg and right.jpg) follow the tutorial of this site: http://www.phpclasses.org/package/3325-PHP-Generate-a-stereo-image-from-two-source-images.html#files

This tutorial need to use 2 source images to create 3d, any php script can create 3d image from only one source image? Or any php script can convert an 2D image to 2 images (left, right)?

Upvotes: 0

Views: 2620

Answers (1)

Blender
Blender

Reputation: 298492

Depth is perceived through both eyes, not one. Cover one eye and throw something. It will feel really odd, as your brain has trouble calculating distances without depth.

The depth is calculated (at least on computers) by looking at differences between the left and right images (which is why your eyes are spaced apart, to give differences).

The only reason you can "see" a stereograph is because you are simulating the act of looking through both eyes with one combined image.

You need two.

Upvotes: 4

Related Questions