#100790 - GPFerror - Wed Aug 30, 2006 4:39 pm
I have a library that uses the subpixel font, and was wonder if there was a way to detect if the top screen is RGB or BGR so i display the correct colors on the top screen.
I was told that all dslites use BGR, while the phat ds's use RGB on top BGR on bottom screen, is this correct?
So is there a way to detect top screen type or type of hardware from the arm9 preferably?
thanks,
Troy(GPF)
http://gpf.dcemu.co.uk
#100791 - gmiller - Wed Aug 30, 2006 4:44 pm
Not that I know the correct answer, but if the DS Lite will play the old games then I would assume that the layouts are the same. Some people think of the colors as big-endian (BGR) or little-endian (RGB) but the bits are the same 5 bits for each color in two bytes with a left over bit. Of course I do not have a DS-Lite so I could be full of ....
Last edited by gmiller on Wed Aug 30, 2006 11:10 pm; edited 1 time in total
#100812 - freemaan - Wed Aug 30, 2006 9:06 pm
Yeah... the "Phat" DS have RGB(top)/BGR(bottom), the Lite have BGR/BGR screens (I've checked them :P)
#100820 - gmiller - Wed Aug 30, 2006 11:09 pm
Hmm .. that is interesting. I noticed that I can select which screen is the GBA screen in the setup menu. This would mean that they auto convert the colors in GBA mode? GBA is RGB from lowbit to high bit or BGR from high bit to low.
#100821 - spinal_cord - Wed Aug 30, 2006 11:21 pm
I thing he's talking about the screen pixels rather than the colors.
If it is as it seems, that lites top screens are different from phats, then I would assume detecting the thingy that sets the screen brightness in the lites would tell you the difference (between lite and phat) thus giving you a fair idea as to which is which.
_________________
I'm not a boring person, it's just that boring things keep happening to me.
Homepage
#100827 - Lick - Wed Aug 30, 2006 11:45 pm
GPF doesn't wunna code teh ARM7 CUP!! =p
You'll have to man, things like these (SPI reads) are only accessable from the ARM7-side-of-things.
Or like I suggested, make a quick boot-screen that asks if it is a lite or phatty.
[edit] Or make two builds, one for lite and one for phatty.
_________________
http://licklick.wordpress.com
#100842 - tepples - Thu Aug 31, 2006 1:55 am
If it matters, I'd recommend just making a preference for RGB vs. BGR, saving it when the player leaves Options, and loading it from CF/SD/SRAM on startup.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#100847 - knight0fdragon - Thu Aug 31, 2006 2:40 am
on a pixel level, the order of the rgb doesnt matter, I doubt that any of the DS games to date use subpixel graphics, but I could be wrong, for it is good for antialiasing., GPF, is there not a way to check whether the DS is a Phat or a Lite
_________________
http://www.myspace.com/knight0fdragonds
MK DS FC: Dragon 330772 075464
AC WW FC: Anthony SamsClub 1933-3433-9458
MPFH: Dragon 0215 4231 1206
#100853 - GPFerror - Thu Aug 31, 2006 4:36 am
yeah adding a splash screen or a special key combination is doable but not very elegant.
Since its a library that will used by others hopefully, having a custom arm7 makes it more difficult for others to use.
Well hopefully someone out there figures it out and can share it :)
Thanks,
Troy(GPF)
http://gpf.dcemu.co.uk
#100861 - HyperHacker - Thu Aug 31, 2006 6:48 am
Do any DS games to date use subpixel rendering? Nintendo may have avoided it in case of problems like this. Anyway I'd suggest making it an option in a menu somewhere, but default to what should be correct based on the Phat vs Lite bit and the screen being used.
gmiller wrote: |
Hmm .. that is interesting. I noticed that I can select which screen is the GBA screen in the setup menu. This would mean that they auto convert the colors in GBA mode? GBA is RGB from lowbit to high bit or BGR from high bit to low. |
Yeah, do GBA games using subpixel rendering look right on both screens?
_________________
I'm a PSP hacker now, but I still <3 DS.
#100886 - Lick - Thu Aug 31, 2006 12:37 pm
HyperHacker wrote: |
Do any DS games to date use subpixel rendering? Nintendo may have avoided it in case of problems like this. Anyway I'd suggest making it an option in a menu somewhere, but default to what should be correct based on the Phat vs Lite bit and the screen being used.
gmiller wrote: | Hmm .. that is interesting. I noticed that I can select which screen is the GBA screen in the setup menu. This would mean that they auto convert the colors in GBA mode? GBA is RGB from lowbit to high bit or BGR from high bit to low. |
Yeah, do GBA games using subpixel rendering look right on both screens? |
Those games may have used a custom ARM7 binary (that GPF doesn't want to use) to see if it's a DS Phatty or DS Lite. This -CAN- be checked, as you can see in my brightness_test demo. The thing is, GPF is writing a library that he wants to be plugged into other projects in a few seconds, not needing the coder to create a whole new ARM7 binary if they don't want to.
GPF: it's really easy to check if it's a Phatty or Lite with the ARM7. It's just a matter of setting up a Fifo handler (they do that) that calls a function that handles it (you write this). Two simple steps away from the default bin. But in any case: provide a boolean for the coder to pass to your library and STOP WORRYING.
;)
_________________
http://licklick.wordpress.com
#100909 - OOPMan - Thu Aug 31, 2006 6:04 pm
Yeah, there is some difference.
Nethack DS needs to have it's sub-pixel font switched on the DS Lite, otherwise the top screen is unreadable (It made my eyes bleed, almost. The I read that F6 did a switch and it fixed the eye pain)
I guess it's this BGR vs RGB thing :-)
_________________
"My boot, your face..." - Attributed to OOPMan, Emperor of Eroticon VI
You can find my NDS homebrew projects here...
#100911 - gmiller - Thu Aug 31, 2006 6:19 pm
Wow, I did not know that the lite was that different. It would seem that there would have to be some auto conversion that you must be able to turn on or early games (before the lite) would be screwed in their display.
With a lite can you set the top screen to the screen for GBA games?
#100918 - josath - Thu Aug 31, 2006 7:57 pm
gmiller wrote: |
Wow, I did not know that the lite was that different. It would seem that there would have to be some auto conversion that you must be able to turn on or early games (before the lite) would be screwed in their display. |
The problem ONLY happens if you are doing subpixel rendering. afaik, no commercial games do this, so this is not an issue for them, and no 'conversion' is needed
#100926 - Flood_of_SYNs - Thu Aug 31, 2006 9:45 pm
What about checking the WIFI MAC address?
_________________
Blue NDS v4 (FlashMe v7) - GBAMP V2 CF
?There is no shame in not knowing; the shame lies in not finding out.?
?The church is near but the road is icy, the bar is far away but I will walk carefully?
#100944 - Lick - Thu Aug 31, 2006 11:34 pm
http://nocash.emubase.de/gbatek.htm#dsfirmwareheader
01Dh 1 Console type? (FFh=NDS, 20h=NDS-lite, 43h=iQueDS)
If this is proven to be correct, and the dsfirmware is readable from ARM9, then this should do it.
[edit] But I guess it isn't.
_________________
http://licklick.wordpress.com
#100952 - josath - Fri Sep 01, 2006 12:38 am
Isn't correct or isn't readable?
#100976 - Lick - Fri Sep 01, 2006 9:29 am
I don't think it's accessable, you'll have to try though.
_________________
http://licklick.wordpress.com