Welcome, Guest.
Username: Password: Remember me

TOPIC: [Release] Pcsx2 with depth buffer access

[Release] Pcsx2 with depth buffer access 5 months 1 week ago #21

Great job on the debugging! The OpenGL plugin is now detecting the screen space more accurately than before. :) However I'm still unable to aline the depth buffer accurately to the screen space of KH 2. I've tried using EMU modes1-3. No success... Is there something else I should try?
I'll provide visuals for all 3 modes.




Let me know if you know if you have an idea on what's going on. Also let me know what I can do to help as well. :)
The administrator has disabled public write access.

[Release] Pcsx2 with depth buffer access 5 months 1 week ago #22

The official/unnoficiall devs of pcsx2 seem to be pretty interested on this (at least one of them)
Give them a hi on their discord server
The administrator has disabled public write access.

[Release] Pcsx2 with depth buffer access 5 months 1 week ago #23

Boulotaur2024 wrote:
So it was an excruciatingly painful debugging work but after switching to NVIDIA and spending hours trying to figure out why it didn't work.
I finally managed to get it working fine on NVIDIA !

https://abload.de/img/captureblj0g.jpg

For now I'll let people choose between NVIDIA or AMD dll but I'm pretty sure the NVIDIA one works with both cards, just in case...
I dropped entirely support for D3D11 as it was... buggy, now it's all about OpenGL (even though I hate everything about it :D)

Enjoy :P

Tested the Nvidia version on my RX 580x and it didn't work.

Tested the AMD version it worked.

The game I tested was Fatal Frame USA Version. With the New OpenGL Version, you posted.

I did have one issue with the OpenGL version though. The issue happens when going from windowed mode to fullscreen. I lose the depth buffer.
This issue goes away when using the games native 4:3 AR.

Now, this issue does not happen with the older DirectX version of the DLL you posted here.
My GitHub page where you can get the Latest release of SuperDepth3D github.com/BlueSkyDefender/Depth3D

My PayPal Me Link If you like to donate paypal.me/BlueSkyDefender

Also my steam page steamcommunity.com/id/BlueSkyDefender

Discord Server discord.gg/W2f7YhX
Last Edit: 5 months 1 week ago by BlueSkyKnight.
The administrator has disabled public write access.

[Release] Pcsx2 with depth buffer access 5 months 1 week ago #24

TheGordinho wrote:
The official/unnoficiall devs of pcsx2 seem to be pretty interested on this (at least one of them)
Give them a hi on their discord server

Ask them if they can do anything about the low bit depth in some games. Like Fatal Frame. en.wikipedia.org/wiki/Fatal_Frame

My GitHub page where you can get the Latest release of SuperDepth3D github.com/BlueSkyDefender/Depth3D

My PayPal Me Link If you like to donate paypal.me/BlueSkyDefender

Also my steam page steamcommunity.com/id/BlueSkyDefender

Discord Server discord.gg/W2f7YhX
The administrator has disabled public write access.

[Release] Pcsx2 with depth buffer access 5 months 1 week ago #25

MrCassidy wrote:
Great job on the debugging! The OpenGL plugin is now detecting the screen space more accurately than before. :) However I'm still unable to aline the depth buffer accurately to the screen space of KH 2. I've tried using EMU modes1-3. No success... Is there something else I should try?

It works for me on the PAL version (I guess you are using NTSC) with this config :
[EMULATORS]
EMUName=pcsx2
EMUMode=1
EMUWidth=2048
EMUHeight=1664
Play around with the height values : you want to reduce (yes reduce) the value you have already input


Not related but I just found out about a big issue that I was not aware of while staying all that time in debug view :dry:
But once you blend in the SSAO with the final image, you will realize that there is always a delay between the SSAO buffer and the emu output :



So basically when you move the camera around the SSAO is "trailing" behind (or before ?) the game output.
EDIT : actually its *ahead* of the game output. The ssao buffer visibly draws on the screen *before* the game.
Look at how the shadow/crease on the stairs slowly detach from where it should be as the camera moves on.

It does *not* show on static images, if you take screenshot on still characters, the issue won't show.
But once you start moving around the camera, you can see that the ssao buffer draws ahead of everything !

Nerrel in this forum documented the exact same issue but for GlideN64.
Well it looks like PCSX2 is affected by that too...

Any dev willing to chime in and explain the delay between the SSAO buffer and the emulator output ?
This is a big issue and I have absolutely no idea how to fix it by myself.

But if this gets fixed, the GlideN64 case is solved as well, so this is a good news too : )

EDIT : Could be related to Vsync or something.
EDIT : No I tried every possible setting in NVIDIA Control Panel... That and the Maximum Pre-Rendered Frames NVIDIA thingy
EDIT : Could it be that the emu is internally triple-buffered thus slower to output the frame when Reshade is not (triple-buffered) ?
I'm at work but I can't stop thinking about it :pinch:
EDIT : turns out the solution would be to alter code in Pcsx2 in order for the emu to output the depth buffer at frame buffer 0 (main framebuffer). I doubt people over there care enough to ever make the change (and Gregory is a father now :D) but if you want news about it, then this is the place to go for answers :
github.com/PCSX2/pcsx2/issues/2311#issuecomment-506947109.
Reshade fork for emulators :
github.com/Boulotaur2024/reshade
Last Edit: 3 months 1 week ago by Boulotaur2024.
The administrator has disabled public write access.

[Release] Pcsx2 with depth buffer access 5 months 1 week ago #26

Did you try talking to the pcsx2 devs on discord? They seemed to be willing to help...

Pcsx2 discord server :
discord.gg/zUdrM7
Last Edit: 5 months 1 week ago by StuDentBR.
The administrator has disabled public write access.

[Release] Pcsx2 with depth buffer access 5 months 4 days ago #27

I am having an issue with Nvidia version using opengl, I get depth buffer only if the emulator is windowed and the window is small if go full screen or even maximize the window the depth buffer goes blank... This issue does not happen on the dx11 version that you have released earlier. I am using a 4k TV at native 4k resolution, and a gtx 1070.
The administrator has disabled public write access.

[Release] Pcsx2 with depth buffer access 5 months 4 days ago #28

StuDentBR wrote:
I am having an issue with Nvidia version using opengl, I get depth buffer only if the emulator is windowed and the window is small if go full screen or even maximize the window the depth buffer goes blank... This issue does not happen on the dx11 version that you have released earlier. I am using a 4k TV at native 4k resolution, and a gtx 1070.
Yeah, I'm sorry I cannot reproduce the issue (BlueSkyKnight has the same problem, I know)
You might want to zip up your pcsx2 folder (up to 50 mb if properly zipped) and send it to me. Your internal resolution could be really weird, I don't know your pcsx2 settings (or the game you try to play)


EDIT : I think I solved the issue. I updated the OP
Do let me know if that works for you.


About the wobbling ssao effect described above, I'm slowly losing faith that I can come up with a solution... But at least I tried to document it as much I could (that gif took me forever to make lol, I lost the habit of doing that, but it does illustrate the issue well enough).

It's not related to pcsx2 because every emulator using OpenGL suffer from the same symptoms. It's a Reshade thing (imho).
Maybe because the "Copy Depth from FBO" trick that Crosire uses * runs too fast (a few frames ahead) compared to the framebuffer (?) used by emulators. I'd guess that the latter has more work to be done and thus takes more time to output frames (pure guess, I have no clue)

EDIT : Turns out D3D11 has the same issue, so forget about my "OpenGL is broken" theory...

I thought about Vsync and had the idea that maybe vsync needed to be forced within Resade so it could be perfectly synced so I wrote some lines of code but to no avail.

Still it would be nice to know if you guys have the same issue... Or is it a driver thing again ?
Reshade fork for emulators :
github.com/Boulotaur2024/reshade
Last Edit: 5 months 1 day ago by Boulotaur2024.
The administrator has disabled public write access.

[Release] Pcsx2 with depth buffer access 5 months 1 day ago #29

Boulotaur2024 wrote:
StuDentBR wrote:
I am having an issue with Nvidia version using opengl, I get depth buffer only if the emulator is windowed and the window is small if go full screen or even maximize the window the depth buffer goes blank... This issue does not happen on the dx11 version that you have released earlier. I am using a 4k TV at native 4k resolution, and a gtx 1070.
Yeah, I'm sorry I cannot reproduce the issue (BlueSkyKnight has the same problem, I know)
You might want to zip up your pcsx2 folder (up to 50 mb if properly zipped) and send it to me. Your internal resolution could be really weird, I don't know your pcsx2 settings (or the game you try to play)


EDIT : I think I solved the issue. I updated the OP
Do let me know if that works for you.


About the wobbling ssao effect described above, I'm slowly losing faith that I can come up with a solution... But at least I tried to document it as much I could (that gif took me forever to make lol, I lost the habit of doing that, but it does illustrate the issue well enough).

It's not related to pcsx2 because every emulator using OpenGL suffer from the same symptoms. It's a Reshade thing (imho).
Maybe because the "Copy Depth from FBO" trick that Crosire uses * runs too fast (a few frames ahead) compared to the framebuffer (?) used by emulators. I'd guess that the latter has more work to be done and thus takes more time to output frames (pure guess, I have no clue)

EDIT : Turns out D3D11 has the same issue, so forget about my "OpenGL is broken" theory...

I thought about Vsync and had the idea that maybe vsync needed to be forced within Resade so it could be perfectly synced so I wrote some lines of code but to no avail.

Still it would be nice to know if you guys have the same issue... Or is it a driver thing again ?
Thanks, I will test it as soon as possible and come back with the feedback.

Edit: The issue i had with opengl version and full screen is now fixed. Thank you.
I still need to test the woobling issue.
Last Edit: 4 months 4 weeks ago by StuDentBR.
The administrator has disabled public write access.

[Release] Pcsx2 with depth buffer access 2 months 3 weeks ago #30

Doesn't seem to be working in Capsule Monster Coliseum and Sly 3.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2