Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A hint/patch about the gsdx dx9 hw z-buffer problem
#1
First thanks for all the pcsx2 developers.
I don't know if this is the correct place to post this, if not , forgive me.
I found that if I use gsdx dx9 hw mode, the game "Super Robot War Alpha 3' have a z-buffer problem that some layer is always behind another. I tried many way to solve this. finally I found that if I put this line to the 'vs_main' function in file 'tfx.fx', the problem disapeared:

input.p.z = fmod(input.p.z, 0x400000);

I tested 0x10000,0x100000 and 0x800000, it seems 0x400000 is the best value.

I just think if this is a hint to the developers to completely solve the z-buffer problem in gsdx dx9 hw mode.

PS:
org.jpg: default code
22bit-z.jpg: set input.p.z to fmod(input.p.z, 0x400000)
org.jpg
   
22bit-z.jpg
   
Reply

Sponsored links

#2
I think I am wrong place, I will post this to Plugins forum.
Reply
#3
is that a *.pnach file???
i'm interested on your project can you provide us a *.pnach file attachment
Main Hub:i5-4670(3.4Ghz Factory Clocked),ATi Radeon HD7770(GDDR5+128-bit+1GB),Win 10 SL(x64),ASUS H8M-E,8GB DDR3 RAM
Reply
#4
(12-03-2009, 07:36 AM)tallbender Wrote: is that a *.pnach file???
i'm interested on your project can you provide us a *.pnach file attachment
No, it is a patch(in fact, a hack) for source code
it fix the super robot war games , but break some others.
you can get the tfx.fx to build it by yourself
or use my dll file.


Attached Files
.zip   tfx.zip (Size: 3,06 KB / Downloads: 148)
Reply
#5
It won't be accepted if it just fixes some games and breaks others. Unless you can prove this is the way it's meant to work (which is very doubtful since it breaks games)
[Image: newsig.jpg]
Reply




Users browsing this thread: 1 Guest(s)