![]() I wrote a function to do this, called CreateDepthOutline. We need to give all its pixels the same colour of 128 (ie roughly half the maximum of 255 for a colour), and give all the other pixels in the picture (ie all the pixels around the shark) a colour of 255 (because we want them to be the background). We want to put it in the middle distance, about halfway to the background (inside the image). But this picture needs to be redrawn as a “depth” image, that is, its pixels won’t contain colour, but information about how far away to put each pixel. Then, of course, you need the hidden picture. It needs to be quite noisy (lots of colour changes) to help make the hidden picture stand out. One is the pattern that you will see when you first look at the final image. If you want to know more about how stereoscopic pictures work, that’s a good place to go. The wider the gap between the pixels, the further away the pixel seems to be.įortunately, there are kind people who do all the hard work and share their code and explanations, and I have converted the code on this webpage to run in Codea. How it works, is that you match up pixels on the left and right of the picture at a certain distance from each other, so your left and right eye put them together and “see” the pixel at a certain distance away. Can you see the shark?Īnyway, this is how to create them with Codea.Ĭreating stereoscopic pictures is quite difficult. You can either see them or you can’t, usually. This post is about something completely different, creating those pictures that you stare into, to see hidden shapes.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |