Dolphin, the GameCube and Wii emulator - Forums

Full Version: 3D Vision patch (v2 !!)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18

oldskewl

Because I want to be able to play them in 3D. With the project 64 emulator 3D doesn't work at all with Nvidia stereoscopic. I think the reason being that there is no directx 9 plugin. Zelda 64 would be so sweet in 3D.

The reason I ask is that I have a version of Mario 64 and Mario Kart 64 for the Gamecube that does the same emulation, but actually works in S3D when running it on the dolphin emulator.

Oehr

there are third party directx/direct3d plugins for project 64 and other emulators. you might wanna check those out. i like rice video plugin: http://en.wikipedia.org/wiki/Rice_Video
I have figured out how to fix 3d vision in even the newest revisions of dolphin. The problem seems to come from the xfb changes made in revision 5195 to the d3d plugin. So by using the old plugin for 5194 with a small fix we can still get 3d vision.

To fix 3d vision in dolphin new revisions:

1. Do a new checkout of revision 5194 into a folder and build it.
2. Fire it up and make sure it works. Be sure to change your plugin settings for d3d and resolution etc. (3d vision will not work).
3. Open Plugin_VideoDX9->Render->Render.cpp and change line 278
from:
D3D::Create(g_ActiveConfig.iAdapter, EmuWindow::GetWnd(), false,
To:
D3D::Create(g_ActiveConfig.iAdapter, EmuWindow::GetWnd(), g_ActiveConfig.bFullscreen,
4. Build the program again.
5. Run it. 3d Vision now works for 5194.
6. Update everything to the latest revision (or whatever revision you want to use I tested with 5331).
7. Build, run 3d vision will be broken again (but our fix from before will have been merged in). This time your glasses should sync, but the image will be 2d. This means we have real fullscreen, but something else is broken.
8. Go to the Source->Plugins folder and update Plugin_VideoDx9 to revison 5194. Leave everything else at your desired revision.
9. Build one last time and run the emulator. Your games will now be in 3d correctly for a new version of the emulator.
10. Have fun playing sweet gamecube/wii games in 3d once again.

It seems some of the xfb changes in 5195 are what broke 3d vision even when running correctly in fullscreen mode. Strangely enough if you modify the version of Render.cpp from 5194 to compile with 5195 you can see that it is working, but it will be really slow and flickery. I will investigate this more and maybe make a bypass or something, but for now using a modified 5194 dx9 plugin will reenable 3d vision in even the newest version. Of course you cannot use the xfb benefits added to new versions.
I decided to do a quick build of this for anyone who wants it. This is v5331 with my fix.

http://www.mediafire.com/?tzktxzm4txn

You could probably just pull the Plugin_DX9.dll file out of the plugins directory and paste it over whatever version you are using for your emulator (as long as it is above 5194). This build only has 64 bit as I am not setup to compile 32 bit at this time.
Hi !
I was wondering something... Would it be possible to get the stereoscopic filter to work with different kinds of glasses ? For instance, the cheap transparent disposable glasses ("real3D") given in the movie theatres for Avatar ? (there were 2 distinct technologies, I'm refering to the ones people could keep afterwards)..
Bye !

Edit : Hmm, maybe I'm in the wrong thread, I'm refering to the "stereoscopic" shader, not to nvidia/win specific features as I'm a Linux/OpenGL user anyway Smile
(04-12-2010, 04:40 AM)threax Wrote: [ -> ]I have figured out how to fix 3d vision in even the newest revisions of dolphin. The problem seems to come from the xfb changes made in revision 5195 to the d3d plugin. So by using the old plugin for 5194 with a small fix we can still get 3d vision.

To fix 3d vision in dolphin new revisions:

1. Do a new checkout of revision 5194 into a folder and build it.
2. Fire it up and make sure it works. Be sure to change your plugin settings for d3d and resolution etc. (3d vision will not work).
3. Open Plugin_VideoDX9->Render->Render.cpp and change line 278
from:
D3D::Create(g_ActiveConfig.iAdapter, EmuWindow::GetWnd(), false,
To:
D3D::Create(g_ActiveConfig.iAdapter, EmuWindow::GetWnd(), g_ActiveConfig.bFullscreen,
4. Build the program again.
5. Run it. 3d Vision now works for 5194.
6. Update everything to the latest revision (or whatever revision you want to use I tested with 5331).
7. Build, run 3d vision will be broken again (but our fix from before will have been merged in). This time your glasses should sync, but the image will be 2d. This means we have real fullscreen, but something else is broken.
8. Go to the Source->Plugins folder and update Plugin_VideoDx9 to revison 5194. Leave everything else at your desired revision.
9. Build one last time and run the emulator. Your games will now be in 3d correctly for a new version of the emulator.
10. Have fun playing sweet gamecube/wii games in 3d once again.

It seems some of the xfb changes in 5195 are what broke 3d vision even when running correctly in fullscreen mode. Strangely enough if you modify the version of Render.cpp from 5194 to compile with 5195 you can see that it is working, but it will be really slow and flickery. I will investigate this more and maybe make a bypass or something, but for now using a modified 5194 dx9 plugin will reenable 3d vision in even the newest version. Of course you cannot use the xfb benefits added to new versions.
I decided to do a quick build of this for anyone who wants it. This is v5331 with my fix.

http://www.mediafire.com/?tzktxzm4txn

You could probably just pull the Plugin_DX9.dll file out of the plugins directory and paste it over whatever version you are using for your emulator (as long as it is above 5194). This build only has 64 bit as I am not setup to compile 32 bit at this time.

thanks for sharing that! I've tried your build and it works in 3d vision with nvidia glasses!
I tested a newer build (r5419) although overwriting the directx9 plugin, but when I use that plugin controls are broken. I can see the wii pointer on the screen but I can't click a+b to proceed.

dnat

Has anyone managed to do a 32bit build yet? I'm having trouble working out how to build from a source code, and the wiimote keeps disconnecting cant work out how to patch it to auto connect .
Cheers
Would someone mind compiling the latest revision with this patch?
Pretty please?

I know you can just paste the old dx3d plugin into the newer SVN's but its getting a bit long in the tooth now.
I tried to compile the new d3d plugin modding it for 3d vision but I'm not be able to understand how to do it..
it doesn't recognize g_ActiveConfig.bFullscreen anymore.
If someone, more capable of me, could to recompile a newer plugin 3d vision compatible it will be very appreciated. Blush
Looks like the devs disabled it somehow. Using "true" for the D3D:Create operation didn't work either. Maybe we should ask them to include a flag in the plugin configuration for 3d support Angel
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18