Moving To Discord:

Hello everyone, due to bugs with the forum software that I do not have time to care about, I am going to be shutting down these forums and moving my discussions to Discord instead. I will eventually keep releases here on the site but the forums will be removed sooner or later. I encourage people to join my personal Discord if you have questions, if you are looking for any of my projects, etc.

Registration Code (Part 1): w%kQ6
Registration Code (Part 2): b<#$1[*(cw~
In order to register on this forum, you must use the codes above. Combine them into one code (copy paste).

Resident Evil 0 - d3d9.dll proxy

Topics regarding the Resident Evil game series.
Joined:Mon Aug 15, 2016 9:14 am
Resident Evil 0 - d3d9.dll proxy

Post by qperok » Tue Aug 16, 2016 12:32 am

Hi there, atom0s!
I saw no topic about your RE0 dll proxy on these forums, so I allowed myself to create one, hopefully that's not a problem :roll:. I have a question about it if I may.
So I have a 5:4 aspect ratio monitor (1280:1024 native resolution) and RE0 doesn't support that properly at all, basically it is hardcoded for widescreen, so when I chose 4:3 mode in game, I get double letter-boxing:
For the longest time I thought it was impossible to fix, I tried to do so with d3d9.dll proxy back in the day and failed. Yet yesterday I decided to give it another go with the latest version and to my surprise It actually worked to a serious extend. Basically I tried to mess with [Patch_RenderResolution] and saw it actually had an effect on the output picture, so after an hour of trial and error I finally came to 720:400 resolution that provides the best result from them all (other results were mostly a complete mess), yet it still is not quite perfect. Basically what I got is this:
Double letter-boxing is gone, despite 720:400 resolution in d3d9proxy.ini the output picture doesn't look like an upscale, but is fair 1280:1024 (no idea how it all works), vertical alignment is perfect. The only problem is horizontal alignment. It is good for 4:3, but because my monitor is actually 5:4, 4:3 picture should be either stretched, either letter-boxed with tiny bars at the top and at the bottom to work properly, which is not the case here. What got sacrificed is right and left parts of the screen, if you compare two pictures above, you'll see the second one is in fact cut on the sides.
It is much more visible and more annoying when viewing in-game files:
Notice how "t" in the word "Exit" is cut off.
Changing [Patch_RenderResolution] 720:400 by even one pixel to 720:399 doesn't do a slight change as one might expect, but instead radically modify output to this:
Which would not be completely bad if not for messing up layer alignments in menus:
Notice how "Handgun" text is out of its proper texbox and how health status graph is also messed. On the other hand with 720:400 cut off sides resolution menu alignments are actually good across the board.

I tried to mess with [Patch_WindowResolution] as well, but with my lack of understanding trial and error approach the results were mostly a complete mess.
So my question is: is it possible to fix my aspect ratio/resolution problem completely with [Patch_RenderResolution] and/or [Patch_WindowResolution]? What am I missing? Why one pixel alteration brings such a drastic change?

On the other hand, I've also tried [Patch_StretchRenderImage], which did the following:
Double letter-boxing is not back, nothing is cut off, menu layers alignment is all good, output resolution doesn't look upscaled even through the picture is obviously squeezed from the sides with redurand black boxes on the left and on the right. Can it be possible maybe to expand [Patch_StretchRenderImage] functionality to allow manual percentage stretching? I think something like "[Patch_StretchRenderImage] width = 90%" might fix my problem entirely without any further manual resolution editing if it is possible to code.

What you say, atom0s? Also in any case, thank you for your d3d9.dll proxy, even if not completely perfect, the way it is able to improve Capcom's original lazy port is already a huge step forward!

Who is online

Users browsing this forum: No registered users and 1 guest