Dolphin, the GameCube and Wii emulator - Forums

Full Version: It is possible?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2

jackinthedark

First of all i'm not asking to someone make this, i am just curious if this can be done.
So i want to kno if using the post-processing shader on dolphin you could make the grafics to work with the 3D glasses?
[Image: blog_3d.jpg]

If someone don't know what the grafics are like, its something like that.

[Image: 3d_virtualien_anaglyph.jpg]
postprocessing shader only modifies the color of each pixel from the final picture.

as 3d-view through 2 colors needs 2 pictures from 2 different viewing angles, it is not possible this way.

jackinthedark

ok, thanks for the fast answer.
Quote:postprocessing shader only modifies the color of each pixel from the final picture.

as 3d-view through 2 colors needs 2 pictures from 2 different viewing angles, it is not possible this way.

Think:
* Use two render targets.
* Use a shader to post process and mix video output
*....
* PROFIT!!!

>.<
That idea sounds really great Big Grin
or if you have the depth info of every pixel that is on the Framebuffer.
I almost pulled it off: http://code.google.com/p/dolphin-emu/source/browse/trunk/Data/User/Shaders/stereoscopic.txt
3d stereoscopy works because the eyes of a human being are not at the exact same place.

i really wonder how you would produce 2 pictures from different positions with only one picture and depth info.


example :

you got a dice infront of you and are looking on the 6 with the left eye.

the right eys looks on the other side of the dice and sees a part of the 4 for example.

now in rendering you would only have the 6 and maybe depth info. but how do you make a cyan colored picture showing parts of the 4 out of that ?

i'm really intrested Smile
It's possible, but you have to hack the gfx plugin to render to render everything twice to two render targets, then use a shader to combine them. Since the actual vertex positions must be different, you can't just use MRT to render to two render targets simultaneously, you have to buffer up the entire scene and render it again (HARD), or switch back and forth between two render targets really quickly (SLOW).

So, well, not for the faint-hearted.
...but as I explained, can be done Smile. I didn't say anything about speed though Tongue.
Yep , you will need a 120hz monitor to be able to play 60 hz games ! ^^
Pages: 1 2