PCSX2 / pcsx2

PCSX2 - The Playstation 2 Emulator
https://pcsx2.net
GNU General Public License v3.0
11.89k stars 1.63k forks source link

[GSdx] San Andreas Radiosity - Upscaling offsets the radiosity pass? #2525

Closed davepalmeruk closed 5 years ago

davepalmeruk commented 6 years ago

Development build v1.5.2456) OGL HW mode Safe preset MTVU speed hack "Auto Flush" HW hack enabled Triple filter hack enabled (no change if disabled) Accurate Data: Enabled (no change if disabled) Blending Accuracy: High (no change if disabled) CRC Hack Level: Partial *Note: Using CRC hack level "Full" it fixes the offset double image yet also disables part of the effects so removes the heat haze/ripple effect seen when a sunny afternoon.

When up-scaling 2x-8x mode a very noticeable "double" or "ghost" outline left and above of the original image is present. It appears linked to the viewing angle as moves with camera angle. This was first reported on radiosity bug #600 by @FlatOutPS2

The last comment from @aap on #600 seems to be accurate. The issue is still present even on OGL/DX11 software modes yet barely visible at native resolution, yet up-scaling seems to move and offset the radiosity pass as does using widescreen - meaning the passes for effects no longer match up. The higher the internal resolution used the greater the amount of blurred offset you get. Happens with Widescreen patches or not.

Seems a long standing issue, yet most won't see it if using the Full CRC level. HW 8x Resolution: ogl hw 8x

HW, widescreen disabled gsdx_20180726022717

OGL SW mode for comparison - slight offset double on the left street lamp for example yet mostly OK. ogl sw

GS Dump: gsdx_20180726022717.zip

Without this bug GTA: SA would otherwise be near 'perfect' with all effects working. Even beating the PS4 emulation which suffers this same problem.

PC: Intel i5 6500, 8GB DDR4, GPU Nvidia GTX 1050ti 4GB, Win 10 x64

davepalmeruk commented 6 years ago

Thanks to @lightningterror the TC Offset helps reduce the offset ghost, so far I've tried X=700 and Y=700 yet its not 100% clear, would welcome any suggestions. The offset seems relative to the angle/camera position so not gone, but an good improvement. In the below screen the bridge top now has no ghost, nor the street light. Just the sides like trees and signs are obvious.

tc offset

I've been testing other settings - the CRC for my version is B440A8FE. I found that DX11 HW can't be compared as the radiosity effects are missing so raised #2532.

lightningterror commented 6 years ago

Ye I kinda removed my comment earlier since the issue isn't completely fixed with tc offsets.

gregory38 commented 6 years ago

It is due to an half-pixel offset. However I think current hack might not detect this case (due to the way it is rendered)

lightningterror commented 5 years ago

I did a quick test again and it's not an upscaling issue, the offset is there on sw renderer too. It's just that with upscaling it's easier to see because of the clearer image.

Maybe it's meant to be like that.

KrossX commented 5 years ago

SkyGFX - SA It's an implementation of different RW methods and there does seem to be a small offset for the radiosity effect. There are even a few variables radiosityFilterUCorrection and radiosityFilterUCorrection which I would guess is just for that. Maybe different regions have different offsets. It would be nice to confirm with HW and different versions of the game.

lightningterror commented 5 years ago

Yeah I see the same effect on the screenshots so it's not an issue.

davepalmeruk commented 5 years ago

@KrossX made me curious. So yes had a good experiment with GTA SA PC and SkyGFX/silentpatch etc as well as the PS4 emulated version.

Anyway - Wondered off the point... I've found 4x or 6x resolution with dev build 3128 and using both OGL HW, Large Buffer, HW hacks for Alpha Flush and TC offsets (500, 500) the impact of the native post processing is mostly countered (as removes it around the central viewing area and lessens the impact toward the edges of screen) and only minor ghosting remains equal to the native resolution/code.

The latest PCSX2 dev build improvements and the TC offset I'd say GTA SA is the most accurate yet "tweaked" way to play of them all! So playing this through the weekend :)

HelelSingh commented 2 years ago

This issue still persists in the latest 1.7.0-3131 nightly build.

Software Mode :

PCSX2 2022-07-28 12-12-40

OpenGL HW (Native Res) :

PCSX2 2022-07-28 12-13-14

OpenGL HW (8x Res) :

PCSX2 2022-07-28 12-13-48

Texture Offsets (500,500) helps. But messes up HUD and Menu :

PCSX2 2022-07-28 12-14-12

refractionpcsx2 commented 2 years ago

Of course it does? It's not something we can fix, it is offset on the ps2 (you can also see it on the palm tree leaves in native/software) and it gets exaggerated in upscaling because it was never intended to be upscaled, so it needs upscaling hacks, it will never be "Fixed".

Here's a zoom in from a capture from my PS2 directly. Notice the shadow offset up and left? Yup.

image

HelelSingh commented 2 years ago

Like, is there no chance that this could be fixed by something like Half Pixel Offset (currently this does nothing) in the future? As I know that hack fixes many effect alignment issues in various games.

refractionpcsx2 commented 2 years ago

Maybe? Who knows. If it does, it does, if not, well that's just the way it goes, I'm afraid.

ghost commented 2 years ago

I'm having the same problem with the double outlines/ghosting. I'm running Aethersx2 on my Xbox Series X, would somebody be able to tell me the best settings to set the game to on a Series X to get rid of/minimalize the problem as it's driving me insane

refractionpcsx2 commented 2 years ago

We don't support Aether.