Hi! Last night i had an idea. How can i made the whole scene black and green like black and white? And how can i transparently lay the same scene over the existing scene moved a few pixels up and left and displayed in black-red. Than you could use a green-red eyeglasses like in 3d-cinemas.
This is one kind of stereo viewing.
I hope you can understand this idea because my english knowledges are not so good.
1. change color of whole scene to green
2. copy the whole scene , move it a few pixels , change color to red and make it transparent
3. than draw anything
Any ideas?
red-green stereoviewing
You must move the camera and render again, not the scene in 2D pixels. This is because you are supposed to be simulating 2 eyes. (Further objects are further seperated on the 2D plane, closer objects are close together, try it in real life ) So basically, you have to render a scene, tint it, and then render another scene, tint that, and blend them together. Maybe possible with shaders? (Come on sio2, I know you want to )
Anyway, this was discussed a while ago and I think an important feature was missing. But that I managed to enable it using the driver config of my NVidia card so no need to actually code your own stereo driver...(Not sure about ATI tho i could not find anything that worked for my 9200...)
Anyway, this was discussed a while ago and I think an important feature was missing. But that I managed to enable it using the driver config of my NVidia card so no need to actually code your own stereo driver...(Not sure about ATI tho i could not find anything that worked for my 9200...)
Very, very easy to do with shaders: render the left eye-point to one rendertarget - pixel shader stores only red; render the right eye-point to another rendertarget - pixel shader stores only blue; use a pixel shader to combine the two into the frame buffer; put on your red/blue or red/green anaglyph glasses.BlindSide wrote:So basically, you have to render a scene, tint it, and then render another scene, tint that, and blend them together. Maybe possible with shaders? (Come on sio2, I know you want to )
If I can dig out a pair of anaglyph glasses I can code this up.
Irrlicht Demos: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=6&t=45781
hi! I know that it have to work because i did an experiment about this. I used a photo program to make a picture red and green then i printed it on two transparent foils and put them together. It works and it is like 3d. I think i dont need 2 different viewpoints. I think it is only an optical deception.
The effect that you get with a single image with a shifted viewpoint is not as good as what you get with two different viewpoints. Without two different viewpoints, you won't have any parallax effect. Objects that are further away from the camera will appear to be shifted by the same distance as objects that are near the camera.
You can easily see the effect with a simple experiment. Hold your finger up at arms length. Close your right eye and open your left eye. Now close the left and open the right. Notice that your finger doesn't appear to move much. Now put your finger close to your eyes, just past the end of your nose and repeat the eye blinking steps. Notice that your finger 'moves' quite a distance. You can't properly simulate that by shifting a 2d image, unless image only shows objects in the same depth range.
Travis
You can easily see the effect with a simple experiment. Hold your finger up at arms length. Close your right eye and open your left eye. Now close the left and open the right. Notice that your finger doesn't appear to move much. Now put your finger close to your eyes, just past the end of your nose and repeat the eye blinking steps. Notice that your finger 'moves' quite a distance. You can't properly simulate that by shifting a 2d image, unless image only shows objects in the same depth range.
Travis
As Vitek explains, shifting the same image and giving them different colours will result in a 3D picture. HOWEVER, it will be like a floating photograph: if you move a photograph nearer to your eyes, it doesn't suddenly have depth info in it. You simply see the complete photograph nearer.
Believe me, as I'm publishing several software utilities with stereoscopic options, you HAVE to use TWO different viewpoints to achieve a depth perception. Hey, and if you don't believe what the others also tell you, just spend a few days coding what you want and then read this forum again
Believe me, as I'm publishing several software utilities with stereoscopic options, you HAVE to use TWO different viewpoints to achieve a depth perception. Hey, and if you don't believe what the others also tell you, just spend a few days coding what you want and then read this forum again