TWPatcher - DS(i) mode screen filters and patches

Discussion in '3DS - Homebrew Development and Emulators' started by Sono, Jul 4, 2019.

  1. ghjfdtg

    ghjfdtg GBAtemp Fan

    Member
    6
    Jul 13, 2014
    Yeah, that won't be high speed and requires polling which is not perfect but will do the job for low speed stuff like additional HID.
     
  2. Dartz150

    Dartz150 Hat Gurl Official Fan™

    Member
    10
    May 5, 2010
    Mexico
    Under your bed
    I think that the new discovery deserves is own thread :P
     
  3. Raylight

    Raylight Paranoid Temper

    Member
    7
    May 10, 2014
    United States
    Who wants to know?
    so will this allow better screen scaling?
     
  4. Sono
    OP

    Sono Modern slave

    Member
    13
    Oct 16, 2015
    Hungary
    Austro-Hungarian Monarchy
    I only did the 3DS side implementation, all other credit goes to @Gericom

    Yeah, we won't need the CPad to touch emulation thingy (which doesn't even work in DSi mode btw), because we have access to the FULL 12bits analog precision of the CPad from the DS side. Sure, SM64DS might not support that high resolution analog input, but it's still higher resolution than its touch input.

    Nope. We can't save it anywhere. And this has just enough bandwidth for input polling at 60FPS, but for large data transfers you need to softlock ARM11 (which freezes the graphics), so this is not viable.
    Oh also, you don't even need DS mode for screen capture, you could do that fully from ARM11 without this discovery. The only problem is that we don't have DSi/3DS WiFi drivers in TwlBg.

    There is the Widescreen thread. Perhaps add patches there? Or you meant a full-blown thread detailing how stuff works and how to integrate it into a game patch?

    Nope. The DS GPU's resolution is fixed in hardware, and we can't change that. Sadly this only allows extra hardware access, but pushing video data to the 3DS is just too much bandwidth.
     
    awtgrduzwt5r9, Tarmfot, Robz8 and 4 others like this.
  5. Zense

    Zense GBAtemp Advanced Fan

    Member
    7
    Apr 20, 2008
    Italy
    I've been trying to think of some other DS games than SM64DS that would benefit from this and so far these are the ones that come to mind:

    Final Fantasy Crystal Chronicles Ring of Fates + Echoes of Time
    Kingdom Hearts 358/2 Days
    Kingdom Hearts Re:Coded
    Nanostray 1+2
    Ninja Gaiden Dragon Sword (though I personally don't think it's worth it.)
    Okamiden
    Phantasy Star 0
    TLoZ Phantom HourGlass
    TLoZ Spirit Tracks
    Solatorobo
    Soma Bringer
    Star Fox Command (already has a patch for dpad controls it seems)

    Also there are lots of RPGs that allow for either dpad or touch controls but I don't think it will change their playability as much as for action games. Ex. Dragon Quest IX, Chrono Trigger etc.

    See reply below:
    There are also lots of games that would benefit from this but they probably don't have the possibility because they lack any support for more directional input since they don't have touch screen controls support like Okamiden, Solatorobo, Soma Bringer etc.
     
    Last edited by Zense, Sep 22, 2019
  6. Gericom

    Gericom GBAtemp Maniac

    Member
    11
    Jun 30, 2011
    Netherlands
    If games are 3d there's a good chance input is first converted into a direction vector though. If that's the case it may be patchable.
     
    Tarmfot, Robz8, w0nd3rb0yfx and 2 others like this.
  7. plug313

    plug313 GBAtemp Regular

    Member
    4
    Jun 27, 2016
    kingdom hearts games would be great!
    would this new development somehow help with increasing game resolution? probably not but it's worth asking ahahah
     
  8. Sono
    OP

    Sono Modern slave

    Member
    13
    Oct 16, 2015
    Hungary
    Austro-Hungarian Monarchy
    If you read back a bit, it has been asked.

    Sadly it's not possible, because the resolution is "hardcoded" into the DS hardware.
     
    Robz8, Gericom and plug313 like this.
  9. Zense

    Zense GBAtemp Advanced Fan

    Member
    7
    Apr 20, 2008
    Italy
    Ah, I see. Well, in that case then there are a bunch of more games. You could add the Final Fantasy Crystal Chronicles games too. Echoes of Time would be interesting to see because for it's Wii port (it doesn't look like emulation) it only used the dpad's 8 directions instead of the nunchuck's range, and it looks and feels a bit jankey.

    Come to think of it, Nanostray and its sequel would be interesting too, considering they're shmups that would benefit from finer control, especially considering you wouldn't have to hold you hand in the way of what's happening on-screen.
     
    Last edited by Zense, Sep 22, 2019
  10. dotelias

    dotelias Newbie

    Newcomer
    2
    Dec 12, 2018
    Chile
    Would it be possible to use the gyroscope on gba games like WarioWare Twisted?
     
  11. Sono
    OP

    Sono Modern slave

    Member
    13
    Oct 16, 2015
    Hungary
    Austro-Hungarian Monarchy
    We haven't yet found a way to do 3DS --> ? --> GBA, but GBARunner2 might have support for it once implemented 3DS-side.
     
    Tarmfot likes this.
  12. Gericom

    Gericom GBAtemp Maniac

    Member
    11
    Jun 30, 2011
    Netherlands
    Definitely in gbarunner2 once we have that working. We're now first creating a way to upload arm11 code from arm7. After that we can experiment more easily.
     
  13. monkeyman4412

    monkeyman4412 Gbatemp's moronic trash

    Member
    8
    Jun 16, 2016
    United States
    Darn, I can't come up with something edgy
    Wait... really wack idea, could we emulate support for the ir sensor for the pokemon games that had it.
    aka heart gold, soul silver, black &white, black2 & white2?
     
  14. Gericom

    Gericom GBAtemp Maniac

    Member
    11
    Jun 30, 2011
    Netherlands
    That depends a bit on the way that communication works. Currently we can only communicate with arm11 once per frame.
     
  15. monkeyman4412

    monkeyman4412 Gbatemp's moronic trash

    Member
    8
    Jun 16, 2016
    United States
    Darn, I can't come up with something edgy
    it's not super intensive I think. usually like for example ir battles in black & white it's used to sync systems into wireless mode.
    Aka you point the two systems for a moment, and then it enters wireless mode for trades and battles.
    As for Heart Gold and Soul Silver, that Ir sensor is used to communicate with the poke walker, which I can't imagine that it would need very speedy communication

    — Posts automatically merged - Please don't double post! —

    But that's conjecture, I could be 100% wrong.
     
  16. dotelias

    dotelias Newbie

    Newcomer
    2
    Dec 12, 2018
    Chile
    Thanks for the answers :)

    Sono, would you recommend using the filter app you posted a few months ago or waiting on the next version?
     
  17. Sono
    OP

    Sono Modern slave

    Member
    13
    Oct 16, 2015
    Hungary
    Austro-Hungarian Monarchy
    The 3DS version only has some scale matrixes, and the exe has only patches. Choose which one you want.

    I'd say don't wait. I leave early and arrive late, so I don't have time to work on TWPatch except on weekends.
     
  18. Rahkeesh

    Rahkeesh GBAtemp Maniac

    Member
    7
    Apr 3, 2018
    United States
    It just occurred to me that the "useless" 1.5x DS scaling has a use.

    Launch GBARunner2 and un-check the "center and mask" option. Now with 1.5x scaling your display should be mostly filled up with a GBA game.

    I'm guessing the left bound on the top screen would have to be pushed left a bit as some of the GBA sized output would be cut off at the moment. But having made a widescreen patch I'm sure Sono know how to do that. Not sure if its worth his time but just a cool use I thought of.
     
  19. Sono
    OP

    Sono Modern slave

    Member
    13
    Oct 16, 2015
    Hungary
    Austro-Hungarian Monarchy
    I have already thought of this (could dig up chats as proof), but I have completely forgotten about nagging @Robz8 to add GBA resolution to TWiLightMenu so you can navigate to your GBA ROMs.
    But that might not matter if @Gericom adds the widescreen patches into GBARunner2 and uploads them to the ARM11.
     
  20. evertonstz

    evertonstz Advanced Member

    Newcomer
    2
    Jan 5, 2019
    Brazil
    Man everytime I open this thread I find Sonos found something new once thought impossible for the 3ds. Dude's a wizard.
     
    Tarmfot, zoogie, Red771 and 2 others like this.
Quick Reply
Draft saved Draft deleted
Loading...