Question / Help In OBS, why is the game's window always smaller then the canvas? A black background appears to fill the canvas.

Pappetsu

New Member
Hello
I'm trying to record a video game, resident evil 2 source next edition. The problem is this:
The game does not fill the size of the canvas i choose, no matter if it's 640x480 , 1280x720 ........... in game capture or window capture. The game has two window sizes and the full screen. I believe the smaller window must be 640x480. The monitor of my laptop has 1920x1080. The problem is that in the OBS a black background appears to the right and bottom sides of the game in the canvas and i can't get ride of it.
Below I posted 6 screen captures of OBS recording in game capture (the 1st three pics) and window capture (the next three pics).

As I was trying to solve this problem, I came across an odd solution, it works, but it's very manual, nothing technical about it, which is, in window capture, in the "transform" ---> "edit transform" ---> "bounding box type" i choose "no bounds" and then i simply stretch the red window of OBS until the window of the game fits in the OBS canvas. The result is in the last picture below.

Do you think that the problem might be the resolution of the game? The black background that I see in OBS on the left and bottom sides of the window of the game IS PART of the window of the game but it's invible and can only be seen in the OBS canvas.
Another thing: This resident evil 2 i'm playing and trying to record is the japanese pc windows version called "source next" and i've applied a patch called "resident evil 2 classic rebirth". With this patch it's possible to switch between 3 resolution: the small, which i believe it's 640x480, and the medium and the fullscreen resolutions which I don't know the sizes of them.

OBS game capture canvas 640x480 - RE2 small res.png
OBS game capture canvas 640x480 - RE2 medium res.png
OBS game capture canvas 640x480 - RE2 fullscreen res.png
OBS window capture canvas 640x480 - RE2 small res.png
OBS window capture canvas 640x480 - RE2 medium res.png
OBS window capture canvas 640x480 - RE2 fullscreen res.png
OBS window capture canvas 640x480 capture window stretched- RE2 medium res.png
 
Last edited:

Suslik V

Active Member
New screens, OK.
Open game .exe properties, Compatibility tab, and try to Disable display scaling on high DPI settings. This may help.
By the way, what scale of your display is set in the Windows? 125%?
 

carlmmii

Active Member
Definitely suspecting a windows scaling issue affecting the game capture resolution.

For an easier time dealing with the capture though, crop in on the source. You can either hold 'alt' while you drag the bounding box (use the bottom right corner in your case), or you can enter in a manual pixel size in the Edit Transform dialog (ctrl-E)... or you can add a crop filter (this affects all scenes where the source is visible).

Doing that would let you resize easily to match your canvas dimensions.
 

Pappetsu

New Member
In-game resolution needs to be set the same as canvas resolution in OBS

New screens, OK.
Open game .exe properties, Compatibility tab, and try to Disable display scaling on high DPI settings. This may help.
By the way, what scale of your display is set in the Windows? 125%?

Definitely suspecting a windows scaling issue affecting the game capture resolution.

For an easier time dealing with the capture though, crop in on the source. You can either hold 'alt' while you drag the bounding box (use the bottom right corner in your case), or you can enter in a manual pixel size in the Edit Transform dialog (ctrl-E)... or you can add a crop filter (this affects all scenes where the source is visible).

Doing that would let you resize easily to match your canvas dimensions.

Yes, i had the display scaled to 125% (recommended). I set it now to 100% and the "game capture" and "window capture" fit the window of the game perfectly.
I was told that this game had 4 resolutions (including the fullscreen) but I only had 3 to choose. But now after I set the scale of the display to 100% the game gives me the 4 options. Strange isn't it? I was also told the resolutions are:
320x240 ; 640x480 ; 960x720 ; 1152x864.

There's just one more thing which I can't figure:
In fullscreen the resolution of the game is 1152x864 and the resolution of the display of my laptop is 1920x1080. The result is the 2 vertical black bars that appear of the right and left sides of the screen. I guess this happens because the screen is set to have 1920 vertical lines and the game only has 1152 lines. But shouldn't 2 black bars also appear on top and bottom sides since the screen has 1080 horizontal lines and the game only has 864? In the OBS the same result also happens. I set the canvas scource to 1920x1080. (I know I can set the canvas to match the source but then it's impossible to set the output scale to 1920x1080.)
 
Last edited:

Suslik V

Active Member
About black bars. Long time ago, the corresponding setting that controls scaling from the fullscreen mode of the application to actual resolution of the Digital Flat-Panel of your display, was part of the video driver and was named: Prefered Scaling Mode (for AMD, for example). The scaling set to Centered Output (in video driver) should produce the black bars on all sides of the image (you see on the monitor).

Edit: you can type in the fields of OBS Studio (where you choose resolution).
 
Top