• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › General Discussion v
« Previous 1 ... 154 155 156 157 158 ... 368 Next »

any custom SSAO shaders?
View New Posts | View Today's Posts

Pages (2): « Previous 1 2
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
any custom SSAO shaders?
10-05-2012, 06:51 AM
#11
4evrplan Offline
Junior Member
**
Posts: 45
Threads: 8
Joined: Dec 2011
There's an artist in France who published a very nice looking SSAO shader for use with Blender, but it's in GLSL, and I assume Dolphin would have to be modified to set up the proper uniforms (or rename them in the shader to match what Dolphin uses?). Maybe when I've learned more about coding shaders, I'll revisit this. Unless someone else wants to take it on?
Find
Reply
10-05-2012, 06:58 AM
#12
neobrain Offline
"Wow, I made my code 1000x faster! That means I can make it 2048x slower now!"
**********
Developers (Some Administrators and Super Moderators)
Posts: 3,208
Threads: 50
Joined: Jun 2009
(10-05-2012, 06:51 AM)4evrplan Wrote: There's an artist in France who published a very nice looking SSAO shader for use with Blender, but it's in GLSL, and I assume Dolphin would have to be modified to set up the proper uniforms (or rename them in the shader to match what Dolphin uses?). Maybe when I've learned more about coding shaders, I'll revisit this. Unless someone else wants to take it on?
I guess no one else is currently working on this, so you're free to try whatever you want.. Big Grin
My blog
Me on Twitter
My wishlist on Amazon.de
Find
Reply
10-05-2012, 07:09 AM
#13
Axxer Offline
Why would I help you?
*******
Posts: 1,078
Threads: 28
Joined: May 2012
Are you still gonna post up the reverse shader?
Desktop:
OS: Windows 7 64 bit
CPU: Intel Core i5 3570K @ 4.4 GHz
GPU: EVGA NVIDIA GeForce GTX 550 Ti (Factory OC'ed)
RAM: 16 GB @ 1600 MHz
Dolphin Revision:3.0, 3.0-784, 3.5, latest 3.5
Find
Reply
10-05-2012, 08:46 AM
#14
4evrplan Offline
Junior Member
**
Posts: 45
Threads: 8
Joined: Dec 2011
(10-05-2012, 07:09 AM)Axxer Wrote: Are you still gonna post up the reverse shader?

Go to the shaders directory (./User/Shaders), and make a copy of README.txt, rename it, and open it in an editor. Change the line below

Code:
float4 c0 = texRECT(samp0, uv0).rgba;

to

Code:
float4 c0 = texRECT(samp0, float2(1600-uv0.x, uv0.y)).rgba;

Only, you've got to change "1600" to whatever your internal resolution is (width-wise). That's it; simple. There's probably a much better way of doing this than hard-coding the resolution, but I really don't know what I'm doing. Works for me though. Make sure you're using OpenGL, then on the enhancements tab, select the shader you just edited, and it should flip immediately. Don't forget to reconfigure your controllers to flip +x and -x movement. Also, there's a few areas of the game that seem less stable and hang more with the shader active, namely howling at the statues. Enjoy!
Find
Reply
12-02-2013, 07:08 AM
#15
Boulotaur2024
Unregistered
 
(10-05-2012, 06:58 AM)neobrain Wrote: I guess no one else is currently working on this, so you're free to try whatever you want.. Big Grin

And I guess Neobrain himself gave up Big Grin

You see, I'd like to implement SSAO myself but I'm wondering if it's possible at all given we don't have any usable depth map available throughout the whole rendering process. I ran several PIX analyses with Dolphin running and naturally all the render targets are "flat images" with no depth information which I guess makes sense since an emulator doesn't even need to handle that kind of information.

If you or any developper could confirm this I'd be glad to know. My guess is that SSAO is not feasible either in Dolphin or Pcsx2 but I could be wrong... Unless you'd be able to recreate a depth buffer out-of a flat image with.. I don't know.. gradient information.. but that would be very subpar

Also sorry for reviving an old thread but why would I recreate one
Reply
« Next Oldest | Next Newest »
Pages (2): « Previous 1 2


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode