here is a tutorial to take a flat 2d image and create a simulated 3D image from it, using a perspective *****.
I wonder if this process can be done in a shader..
https://www.webpagefx.com/blog/web-design/3d-anaglyph-photoshop/If you are going to analagraph the background you should do the girls too.
what do you mean by "if I get a random Left eye image, How do I get the same Right eye Image??"
The Girls are Anaglyphed towards the front, and off the screen a bit. a total of 8 pixels in the scene file.
( 4 plus, and 4 minus )
the Backgrounds are moved the Opposite Directing, so you can use a NON-Anaglyph image for the background and it gets sunk into the screen a bit.
In a scene file this will select at random one of your Background Images..
texture {
id: BG
source: Backgrounds
}
now supose I had two sets of Background folders
Bacground_left, and Background_right
The Left folder has the Left eye view
the Right folder has the right eye view..
If I get at random Left-015
how do I then make sure I select Right-015
So I can Pass a left eye and right Eye Image to the anaglypg.fsh shader?
The Shader combines the Two Images, making the Left eye Image red shifted, and the Right eye image Cyan shifted.
But you Need the Correct Pair of Images for it to work..
I can do It with a Fixed set of Images, But I want it to be random.