banner



How To Make Desmume Full Screen

You are using an out of date browser. It may not display this or other websites correctly.
Y'all should upgrade or employ an alternative browser.

Tutorial How to play NDS Games in HD Widescreen (16:9, 21:9, 32:9)!

  • Thread starter PRAGMA
  • Start date
  • Views 103,155
  • Replies 116
  • Likes 35
PRAGMA
  • #1
c8Cp7XCK_o.png

~ Pokémon Diamond Version in 3840x1080 HD (32:nine 1080p) with 3D Rasterized in x16 Native Resolution (Captured from Retroarch DeSmuME cadre)
  1. If you made a crook code using the onetime formula (the one @PRAGMA made) so please update your code to the new formula below which is way more accurate and fixes im-proportionate pixels.
  2. Make sure both the Cheat Lawmaking and Emulator Window aspect ratio's match or the frames may look stretched.

  • DeSmuME on Windows using DeSmuMAR, or DeSmuME on any PC OS withal you volition need to manually configure DeSmuME to allow window stretching and manually stretch the window to be the Attribute Ratio you wish for.
  • Any core on Retroarch as y'all tin forcefulness a specific aspect ratio in Retroarch settings.
  • DrasticDS on Mobile equally it allows yous to stretch the emulator display.
  • Probably others too! Perhaps MelonDS?
General steps for non-specific systems

  1. Stretch the emulator's output to exist the wanted Aspect Ratio. Either by lawmaking, settings, wrapper applications, or manually.
  2. Add together a cheat code (which can be found below) for the games and Attribute Ratio you wish to apply.
  3. Done, run the game, every bit long as the cheat code works, and the emulator's output is the correct Aspect Ratio, it should look great!
Tutorial for DeSmuME on Windows using DeSmuMAR

  1. Download DeSmuMAR, re-create information technology to C:/Program Files/DeSmuME (Create folder if needed).
    For Windows 8.i and older: Right-click DeSmuMAR.exe -> Properties -> Compatibility Tab -> Tick "Run this program as an Administrator" checkbox -> Salvage.
  2. Open up DeSmuMAR and it will ask you if you want to download the latest official master branch Dev Build (Auto-build from from an official AppVeyor link).
    Say (y) to download it or (n) for instructions on manually downloading DeSmuME for DeSmuMAR integration.
  3. Right-click DeSmuME.exe -> Properties -> Compatibility Tab -> Tick "Run this program every bit an Administrator" checkbox -> Save.
    If DeSmuME doesn't get write permission while being within the "C:/Program Files" directory so it deceit save! Past doing the to a higher place with the Backdrop, DeSmuME volition e'er require Ambassador permission to run, which prevents the trouble of saving and such non working without your realizing. Regardless if you lot're using DeSmuMAR or non, I recommend doing this!
  4. Open DeSmuMAR.exe and enter in the Aspect Ratio and Resolution (Size) you wish to utilize. It will then open up DeSmuME with the verbal size you asked for! It will also change various DeSmuME settings to ensure information technology'south able to be opened to the Attribute Ratio and Resolution yous specified. All this, automatically! The next time y'all open DeSmuMAR it will automatically utilize the same Aspect Ratio and Resolution, this tin exist changed by deleting "DeSmuMAR.ini" and re-opening.
  5. Read on beneath for instructions on getting an Action Replay Crook Code to use, a crook code is required or the game will look stretched. When adding a Cheat Code, make sure you tick "plough on code" and if the ROM already booted, reset the ROM to apply the cheat lawmaking.
Done! Now, always open DeSmuMAR.exe instead of DeSmuME.exe from now on. You can fifty-fifty associate it as the default application for .nds ROMs or elevate and drop supported files onto DeSmuMAR.exe and it will work!

NOTE:

  • View -> LCDs Layout -> Just Horizontal and I LCD options are supported at the moment.
  • If y'all desire a meliorate viewing enjoyment, then I recommend y'all fiddling with Config -> 3D Settings -> "General Options" Area -> "GPU Scaling Factor". This selection changes the resolution of 3D objects, essentially the bigger the scaling gene, the less pixelated 3D objects volition be.
  • For Pixel-based games like Zelda, Pokémon, I don't recommend using Texture Scaling as it only makes them less crisp by scaling and using a mistiness kernel, it doesn't actually make them look improve at all, if not worse.
Example sixteen:9 Action Replay Crook Codes for a handful of pop games
520775D0 00001555
020775D0 00001C72
D2000000 00000000
by @KazoWAR
5201E9E4 00001555
0201E9E4 00001C72
D2000000 00000000
by ?
5202022C 00001555
0202022C 00001C72
D2000000 00000000
by ?
52022F80 00001555
02022F80 00001C72
D2000000 00000000
by ?
52282308 00001555
02282308 00001C72
D2000000 00000000
past @KazoWAR
52282328 00001555
02282328 00001C72
D2000000 00000000
by @KazoWAR
5226FE50 00001555
0226FE50 00001C72
D2000000 00000000
by @KazoWAR
5226FE90 00001555
0226FE90 00001C72
D2000000 00000000
past @KazoWAR
52101A64 00001555
02101A64 00001C72
D2000000 00000000
-
Side effects:
- Chickens (and possibly other entities) tin can walk through walls a bit near the top of the screen, possibly game breaking I dont know.
- Some NPC'southward eyes are glitched out and are 100% round and black, they look like zombies.
by @RadDude McCoolguy

For more, check the replies of this thread, or look below for data on crafting your own lawmaking.
Crafting your own Widescreen Code!

To craft your ain cheat lawmaking, there's a off-white bit involved and a lot of trial and error, you will need to have a bit of time on your hands if you haven't washed something like it before.

The general idea is to look for Round(0x1000 * 0x04 / 0x03) which is 0x1555/5461 in the games RAM while a 3D object is loaded into view.

0x1555 is the HEX value for the camera'southward aspect ratio, which is four:three. Commonly this value wouldn't alter, simply we gonna do information technology anyway to play a trick on the game into thinking our "Nintendo DS" has a 16:9 (or other) display, to get information technology to render 3D objects accordingly.

Showtime things starting time we need to find out the HEX value for the aspect ratio nosotros desire. Downward beneath I put the formula for computing the HEX value for any aspect ratio you want. Do that to get the HEX value for an Aspect Ratio that would be obvious, I tend to go for something outrageous similar 32:9.

Now we need to find the accost that holds the 1555 value. I like to use DeSmuME's RAM Searcher to search for the original 4:3 HEX value which every bit explained earlier is 1555(h). More than one accost volition testify then you volition have to just trial & error every 1 of them until information technology works.

Change each address's value to the test HEX value nosotros calculated earlier with the formula, and once it actually works, write down the address you changed, it should start with "02". Enter the address into the Cheat Code Format beneath to stop crafting your cheat code. Feel free to change the Attribute Ratio HEX value you used in debugging with the value you actually want, it nonetheless needs to be HEX calculated with the formula beneath.

                                  {Accost but change the starting "02" with "52"} 00001555 {Address} 0000{Aspect Ratio HEX Value} D2000000 00000000                                

While it volition just work with the Address and the value of whatever aspect ratio you lot want, it will be applied every frame even when it may non be in apply (Thanks @KazoWAR for the tip)
The first and 3rd line essentially simply does a pre-check before trying to overwrite them.
If you're confused by the format, but take a wait at the above pre-made cheat codes equally an case.
chart.png

HEX(Circular(0x1000 * WIDTH / Pinnacle))

0x1000 == 4096
Circular == round to the nearest whole number
HEX == convert decimal to hex (base10 to base16)

e.g.
HEX(ROUND(0x1000 * xvi / 9)) == 0x1C72

Common result values using this formula to spare you time:

  • xvi:nine - 0x1C72
  • sixteen:ten - 0x199A
  • eighteen:9/2:1 - 0x2000
  • 21:nine - 0x2555
  • 32:9 - 0x38E4
Final edited by PRAGMA,
PRAGMA
  • #two
Added new instructions, simplifying the whole procedure, I made an exe named "DeSmuME Resizer" which volition make it basically ane click to enable xvi:9 sparing yous tons of time each launch.
  • #3
does it piece of work with Black and White?
PRAGMA
  • #4
does information technology work with Black and White?
You will probably need to find an AR Widescreen lawmaking similar to the one for Diamond and Pearl but the premise is basically the same.
  • #vi
would dearest it for platinum, i simply started new playthrough.

also, doesn anyone know if it will work at DSTWO?

PRAGMA
  • #7
would honey it for platinum, i just started new playthrough.

also, doesn anyone know if it will piece of work at DSTWO?

Information technology would just you can't stretch official hardware's screens, that would only exist possible on 3DS hardware simply no one knows if it can actually be washed.

--------------------- MERGED ---------------------------

would love it for platinum, i only started new playthrough.

too, doesn anyone know if it will work at DSTWO?

Added back up for Pokemon Platinum :)
Steps are no different autonomously from the Widescreen Action Replay code which I take added to the tutorial.
PRAGMA
  • #8
hW4qHhz.png

~ Pokémon Diamond Version in 3840x1080p HD in 32:9 Aspect Ratio with 3D Rasterized in X16 Native Res

Plant a way to play in 32:9 and 21:nine, would anyone actually want these? 32:9 almost all the time yous come across areas loading in/out, 21:9 might non just nonetheless could occasionally prove it.

--------------------- MERGED ---------------------------

Added back up for HeartGold/SoulSilver, I tin't find the Photographic camera Addresses for Blackness/White Black2/White2, then if you know them, permit me know!

--------------------- MERGED ---------------------------

Added instructions for 21:9 and 32:9

Scarlet
  • #ix
Heya, seems keen to exist able to go dorsum to the games like this! Any idea on the code I'd need for xviii:9? Or just ii:1 lol, fancying giving this a shot on my phone and wanted information technology to completely fill the screen.
PRAGMA
  • #10
Heya, seems bang-up to be able to go back to the games like this! Any idea on the lawmaking I'd need for eighteen:9? Or just 2:1 lol, fancying giving this a shot on my phone and wanted it to completely make full the screen.
Endeavour 3D28 [EDIT: Nope, its 1FFF] (replace last 4 of whatever to a higher place codes with that)

Edit ages later, Nope, its 2000

Last edited past PRAGMA,
Scarlet
  • #11
Effort 3D28 (replace terminal iv of any above codes with that)
That i's a bit off lol

Screenshot_20190523-064855.jpg

16:9 basically looked alright but I only wanted to properly match my attribute ratio where possible.

PRAGMA
  • #12
That 1'due south a bit off lol

View attachment 167834

sixteen:9 basically looked alright but I simply wanted to properly match my aspect ratio where possible.

Hmm odd stuff, Im still looking into properly getting the ratio'due south, my math must be off a bit. :/
Scarlet
  • #13
Hmm odd stuff, Im all the same looking into properly getting the ratio'due south, my math must exist off a chip. :/
No worries, stretched 16:9 is still a huge comeback over stretched four:iii lol
PRAGMA
  • #xv
I've discovered the formula!

What I did to calculate it, was I got the original decimal value from DeSmuME RAM Searching @ the Address for the Camera, the original Decimal is 5461 (0x1555)
So, since we KNOW this is i.33' (four:3), we can figure out how to get any attribute ratio from it, merely first to be able to practice that, we demand to figure out what i.00' (i:1) is.
To do this, we only ((3 / iv * 100)% of 5461) which is 4095.75, in theory, this is 1.00 (ane:1) aspect ratio, so I went and tested confronting unmodified vs modified one:1 calculation by overlaying via photoshop: https://imgur.com/cVw0es9
As y'all tin can see, they lucifer pretty much perfectly, the reason its a tad bit different is considering of decimal places and the fact we cant do much near it in but a ii byte restricted value.
But nosotros got ane:1! Now all we demand to do is:
((3 / iv * 100)% of 5461) * (16 / 9) = 7281.33'
Which results in the decimal value for xvi:9! How do I know? They match upward simply similar one:i pretty much bang on, just slightly off thanks to decimal places again.
Funny enough, this decimal value 7281.33' (0x1C71) is too the exact aforementioned as the original code I got from a Database, so this confirms these codes to exist a right formula.

Finalized Formula!

                                  ((oAH / oAW * 100)% of oD) * (cAW / cAH) Where: oAH = Original Aspect Height (3) oAW = Original Aspect Width (iv) oD = Original Decimal Value (5461) cAW = Custom Attribute Width (16) cAH = Custom Aspect Acme (9)                                
So for 21:ix
((3 / iv * 100)% of 5461) * (21 / ix)
2:1
((3 / 4 * 100)% of 5461) * (two / i)
forty:40
((3 / 4 * 100)% of 5461) * (twoscore / 40)

--------------------- MERGED ---------------------------

No worries, stretched 16:9 is even so a huge improvement over stretched 4:3 lol
1FFF :D

EDIT: Formula is wrong, correct formula discovered, see op.

Concluding edited by PRAGMA,
Scarlet
  • #16
Thanks for all your work!

Screenshot_20190523-104833.jpg

PRAGMA
  • #17
Thanks for all your work!

View attachment 167846

No problem! Hope you enjoy.

--------------------- MERGED ---------------------------

Updated DeSmuME Resizer with Aspect Ratio Support, Screens Amount Support and ROM Passthrough support! (Yous can now drag driblet roms onto DeSmuME Resizer or make DeSmuME Resizer your default .nds app and information technology will pass the rom along to DeSmuME!)

Terminal edited past PRAGMA,
  • #xviii
Blackness OW
52282308 00001555
02282308 00001C71
D2000000 00000000

White OW
52282328 00001555
02282328 00001C71
D2000000 00000000

Black 2 OW
5226FE50 00001555
0226FE50 00001C71
D2000000 00000000

White two OW
5226FE90 00001555
0226FE90 00001C71
D2000000 00000000

PRAGMA
  • #19
Black OW
52282308 00001555
02282308 00001C71
D2000000 00000000

White OW
52282328 00001555
02282328 00001C71
D2000000 00000000

Black 2 OW
5226FE50 00001555
0226FE50 00001C71
D2000000 00000000

White 2 OW
5226FE90 00001555
0226FE90 00001C71
D2000000 00000000

May I ask how you found these, and why they are different the all other games?

--------------------- MERGED ---------------------------

Well absurd, guess that's all the core series Pokemon DS Games in Widescreen! :D, It's possible to exercise this in a multitude of other games, so peradventure I may remodel this tutorial into a more inclusive tutorial presently giving addresses for other games aswell?

PRAGMA
  • #20
P.Southward. The first and final lines here arent actually needed.
The offset line is the original accost and value in 4 byte length.
The 2nd line is the merely line of interest and the last line is just an ender.

Similar threads

  • Psionic Roshambo @ Psionic Roshambo:
    Dreamcast had at least one likewise
  • Psionic Roshambo @ Psionic Roshambo:
    I think the SNES got one?
  • KenniesNewName @ KenniesNewName:
    Guess it just felt similar the only thing worth playing on vita
  • KenniesNewName @ KenniesNewName:
    I'chiliad pushing myself to drink a gallon of water today to clean out the poop pigsty
  • Psionic Roshambo @ Psionic Roshambo:
    Ahhh e'er a adept idea lol
  • Psionic Roshambo @ Psionic Roshambo:
    I live on water the last like 3 days lol
  • KenniesNewName @ KenniesNewName:
    Too much soda intake by few months
  • Dark_Phoras @ Dark_Phoras:
    Adept for brain, good for muscle, practiced for peel, good for organs, adept for digestive tract
  • KenniesNewName @ KenniesNewName:
    Unless it'due south Florida water
  • Psionic Roshambo @ Psionic Roshambo:
    Preferably multiple times lol
  • Dark_Phoras @ Dark_Phoras:
    I hateful water in socialist countries, of class
  • AncientBoi @ AncientBoi:
    So information technology is a tea on your profile post. Tea besides has caffien ya know
  • Dark_Phoras @ Dark_Phoras:
    Some teas, yes, like black, earl grayness
  • Dark_Phoras @ Dark_Phoras:
    Dude, I learned how to brew a tea with the british
  • DinohScene @ DinohScene:
    just did you also like GTA Four The Lost and Damned?
  • Dark_Phoras @ Dark_Phoras:
    I haven't played it, but I very much like GTA 4

    Source: https://gbatemp.net/threads/how-to-play-nds-games-in-hd-widescreen-16-9-21-9-32-9.538988/

    0 Response to "How To Make Desmume Full Screen"

    Post a Comment

    Iklan Atas Artikel

    Iklan Tengah Artikel 1

    Iklan Tengah Artikel 2

    Iklan Bawah Artikel