Cemu icon indicating copy to clipboard operation
Cemu copied to clipboard

Option to override gamepad view aspect ratio

Open patrickmollohan opened this issue 5 months ago • 0 comments

Your suggestion

My current Cemu setup uses a 21:9 aspect ratio monitor for the main game view and an Android cloud streaming device with a 16:9 aspect ratio screen to simulate a gamepad. Ideally, I would like to use ultrawide graphics packs for the main monitor while keeping the gamepad view at 16:9. However, when I change values in the [TextureRedefine] sections of rules.txt to match the resolutions, it appears to shrink the entire 21:9 image into the 16:9 space, resulting in incorrect proportions.

Using getdls's Twilight Princess HD Resolution graphics pack as an example, I selected the 3440x1440 preset for the main view, and modified these lines:

[TextureRedefine]
width = 864
height = 480
#formats =
overwriteWidth = ($width/$gameWidth) * 864
overwriteHeight = ($height/$gameHeight) * 480

[TextureRedefine]
width = 854
height = 480
#formats =
overwriteWidth = ($width/$gameWidth) * 854
overwriteHeight = ($height/$gameHeight) * 480

to this:

[TextureRedefine]
width = 864
height = 480
#formats =
overwriteWidth = 1920
overwriteHeight = 1080

[TextureRedefine]
width = 854
height = 480
#formats =
overwriteWidth = 1920
overwriteHeight = 1080

The result of doing so is shown in this image, with the normal game view on the left and the gamepad view on the right: Image As you can see, the gamepad view is showing the entire 21:9 view shrunk to a 16:9 view. Ideally, I would love some way to overwrite the aspect ratio in the [TextureRedefine] sections so that I can specify to only render this at 16:9, or perhaps add some kind of cropping feature that would apply a crop to the image before the "overwriteWidth"/"overwriteHeight" so that the image could be cropped back to 16:9.

patrickmollohan avatar Aug 05 '25 17:08 patrickmollohan