Z-Buffer emulation. Is it possible ?

User avatar
xFlesk
Posts: 75
Joined: Wed Jun 30, 2021 7:37 pm
Has thanked: 27 times
Been thanked: 10 times

Z-Buffer emulation. Is it possible ?

Unread post by xFlesk »

as we all know, orginal psx missing Z-Buffer feature, which causing 3d graphics to be wobly.

i was wandering if its technicaly possible to add Z-Buffer to psx core ? it would make the core supperior to original hardware ;)
cheers
TheCompany.pl - Amiga EXE Games
akeley
Top Contributor
Posts: 1315
Joined: Mon May 25, 2020 7:54 pm
Has thanked: 428 times
Been thanked: 415 times

Re: Z-Buffer emulation. Is it possible ?

Unread post by akeley »

I love the wobbliness, and all the other PSX gfx quirks. It gives its games unique look and character. I'd say I even prefer it in some cases to the latter PS2 look, which is kinda boring and sterile in many games.

So perhaps not exactly "superior", but as long as it's an option, by all means, go ahead.
softtest9
Posts: 158
Joined: Thu May 28, 2020 7:13 pm
Has thanked: 3 times
Been thanked: 21 times

Re: Z-Buffer emulation. Is it possible ?

Unread post by softtest9 »

You can add a Z-buffer, but the PS1 library was not programmed with a Z-buffer in mind. Chances are that the Z-buffer either wouldn't do anything at all with the existing game library, or it would create annoying glitches in most games.

Some emulators have what they call PGXP which tries to fix the wobbliness, with mixed results. When it works correctly, it's pretty cool.
User avatar
xFlesk
Posts: 75
Joined: Wed Jun 30, 2021 7:37 pm
Has thanked: 27 times
Been thanked: 10 times

Re: Z-Buffer emulation. Is it possible ?

Unread post by xFlesk »

duckstation doing a great job with z-buffer emu, lot of games i have tested looks very nice.
TheCompany.pl - Amiga EXE Games
FPGAzumSpass
Core Developer
Posts: 382
Joined: Sat May 23, 2020 12:55 pm
Has thanked: 38 times
Been thanked: 407 times

Re: Z-Buffer emulation. Is it possible ?

Unread post by FPGAzumSpass »

It's not really viable with the ressources we have, both memory requirements (you need to read back every pixel for z-buffer compare) and logic(FPGA is 90% full).
User avatar
LamerDeluxe
Top Contributor
Posts: 1181
Joined: Sun May 24, 2020 10:25 pm
Has thanked: 828 times
Been thanked: 266 times

Re: Z-Buffer emulation. Is it possible ?

Unread post by LamerDeluxe »

If I remember correctly the wobbliness is caused by the lack of perspective-correct texture mapping (it uses affine texture mapping). Developers used tricks to limit the effect and personally I don't mind it.

The core is pushing the limits already and I don't know how hard it would be to add perspective correct texture mapping in FPGA.
User avatar
xFlesk
Posts: 75
Joined: Wed Jun 30, 2021 7:37 pm
Has thanked: 27 times
Been thanked: 10 times

Re: Z-Buffer emulation. Is it possible ?

Unread post by xFlesk »

FPGAzumSpass wrote: Tue Feb 22, 2022 6:03 am It's not really viable with the ressources we have, both memory requirements (you need to read back every pixel for z-buffer compare) and logic(FPGA is 90% full).
that what i was worried about ;) but its always good to ask :D
TheCompany.pl - Amiga EXE Games
Neocaron
Posts: 350
Joined: Sun Sep 27, 2020 10:16 am
Has thanked: 191 times
Been thanked: 71 times

Re: Z-Buffer emulation. Is it possible ?

Unread post by Neocaron »

FPGAzumSpass wrote: Tue Feb 22, 2022 6:03 am It's not really viable with the ressources we have, both memory requirements (you need to read back every pixel for z-buffer compare) and logic(FPGA is 90% full).
Are you gonna keep the save state feature in once the core is completed or a you considering using the FPGA space for something else?
Save state is absolutely amazing and it got me to finish a few games way faster, but I wouldn't mind to see it go for some pretty cool extra fonctionalities.
Especially since you said a while back that it takes a big chunk of the space on the FPGA. Was it 30%?

Anyway thanks for making the PSX core and so many other possible on the Mister!
FPGAzumSpass
Core Developer
Posts: 382
Joined: Sat May 23, 2020 12:55 pm
Has thanked: 38 times
Been thanked: 407 times

Re: Z-Buffer emulation. Is it possible ?

Unread post by FPGAzumSpass »

The savestates will stay. The core has all features implemented that are really required and will cost large ressources, so there is no important reason to remove them.
Post Reply