Homebrew [WIP] 3DeSmume (DS emulator for 3DS)

itsthenavy

Well-Known Member
Member
Joined
Sep 3, 2015
Messages
102
Trophies
0
Age
31
XP
175
Country
United States

ThePanchamBros

Hates the Undertale Fandom
Member
Joined
Jan 31, 2016
Messages
340
Trophies
0
Age
23
Location
Under your bed ( ͡° ͜ʖ ͡°)
XP
416
Country
United States
Yeah, you read that right.
I have been working quite a bit on porting Desmume to the 3DS. As it stands, it:
Appears to run at a decent fps
Has massive graphical corruption
Can't do much of anything do to lack of input support.

Not only did I make this thread to keep people updated on the project, I also need some help.

I'm not the most experienced with sf2dlib, so I end up with graphical corruption. If anyone with experience with sf2dlib would want to provide some tips/advice as to what could be going wrong, here's the rendering code:


Code:
     for(i=0; i < 256*192; i++)
     {
     dstA[i] = src[i]; //Screen buffer to top screen buffer
     dstB[i] = src[(256*192)+i]; //Screen buffer to bottom screen buffer
     }

    sf2d_texture *texture = sf2d_create_texture(256, 192, TEXFMT_RGB5A1, SF2D_PLACE_RAM);
    void* texturedata = texture->data;
    u16* texturedata16 = (u16*)texturedata;
     for(x=0; x < (256*192); x++){
        texturedata16[x] = dstA[x];
    
    }

Thanks! :D

BTW, please no spamming. Lets actually try to keep the discussion on topic, shall we? Thanks :P.

EDIT: http://gbatemp.net/threads/early-w-i-p-ds-emulation-on-3ds.430223/page-6#post-6430835
this is amazing
 

shutterbug2000

Cubic NINJHAX!
OP
Member
Joined
Oct 11, 2014
Messages
1,088
Trophies
0
Age
29
XP
4,878
Country
United States
Try this out then:
Code:
#define BGR5A1_RGB5A1(src)  ((src & 0x7C00) >> 10) | ((src & 0x1F) << 10) | (src & 0x83E0))

Nope, that just gives a more yellow tint.

I almost wonder...
Try the previous method, but convert it to rgba8.

It appears almost like what it would be if you set a PC to lower colors(like 256 colors mode or something like that), if that helps at all.
 

MasterFeizz

Well-Known Member
Member
Joined
Oct 15, 2015
Messages
1,098
Trophies
1
Age
29
XP
3,710
Country
United States
Nope, that just gives a more yellow tint.

I almost wonder...
Try the previous method, but convert it to rgba8.

It appears almost like what it would be if you set a PC to lower colors(like 256 colors mode or something like that), if that helps at all.
Then Iguess it worked, since it's converted from a smaller color space.
 
  • Like
Reactions: Bndnrd

shutterbug2000

Cubic NINJHAX!
OP
Member
Joined
Oct 11, 2014
Messages
1,088
Trophies
0
Age
29
XP
4,878
Country
United States
Wait, I might have actually been using the wrong piece of code for that last test. Just a minute.

EDIT:
Here's a picture:
BWmJhGN.jpg
 
Last edited by shutterbug2000,

Chaos8425

Well-Known Member
Newcomer
Joined
Mar 11, 2016
Messages
76
Trophies
0
Age
23
XP
92
Country
United States
I don't need anyone to strike me down with negativeness, but thanks to the person who dedicated their time to starting this... project thing.
 
  • Like
Reactions: noctis90210

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Most these crack sites have dead links anymore or the crack don't even work
  • linuxares @ linuxares:
    @The Real Jdbye What don't you get? If someone use a stolen creditcard. Then sell said key on G2A. If I the dev sold the game key, I will get the charge back cost. That's how it works, it doesn't matter if I generate 300 keys if 300 of them are bought with stolen credit cards. I never said it was on Steam, but its the dev that gets hit. There is a ton of stories out there if you google it.
    +1
  • K3Nv2 @ K3Nv2:
    Just buy other people's steam account :teach:
  • linuxares @ linuxares:
    Just tell them you're dead ;D
    +1
  • K3Nv2 @ K3Nv2:
    They already know
  • linuxares @ linuxares:
    I honestly wonder how the EU would say if I willed my account to you. And Valve be like "nope!"
    +1
  • cearp @ cearp:
    @K3Nv2 - sounds like you need a better place to find cracks!
  • K3Nv2 @ K3Nv2:
    Psionics offline right now or I would
  • SylverReZ @ SylverReZ:
    @cearp, Psi is offline at the minute, but he knows where to find them.
  • cearp @ cearp:
    get your mind out of the gutter, I'm talking about piracy
  • cearp @ cearp:
    not that type of crack
    +1
  • K3Nv2 @ K3Nv2:
    I mean the drug not the booty pervs
    +2
  • linuxares @ linuxares:
    @cearp At a plumber convenstion. Loads of cracks!
    +2
  • K3Nv2 @ K3Nv2:
    A plumber is either on crack or in crack or showcasing crack
    +2
  • cearp @ cearp:
    or of course, dealing with cracks (in pipes)
  • K3Nv2 @ K3Nv2:
    Sure he could be on cracked flooring causing the leak
  • K3Nv2 @ K3Nv2:
    How much you bet delta going to be DRMd to hell and back
  • The Real Jdbye @ The Real Jdbye:
    @linuxares the dev just ends up at 0
  • The Real Jdbye @ The Real Jdbye:
    it's no worse than if you pirated
  • The Real Jdbye @ The Real Jdbye:
    it's probably better, because not all keys on key sites are stolen
  • The Real Jdbye @ The Real Jdbye:
    plus piracy is not always an option
  • The Real Jdbye @ The Real Jdbye:
    i heard a related story for a dev actually
  • The Real Jdbye @ The Real Jdbye:
    from a dev*
  • K3Nv2 @ K3Nv2:
    DRMs are getting stronger these days
    K3Nv2 @ K3Nv2: DRMs are getting stronger these days