NULL

CTR_Redshift - hardware-based blue light filter for old3DS and 2DS

Discussion in '3DS - Homebrew Development and Emulators' started by Sono, Jan 9, 2018.

  1. Nutez

    Nutez Advanced Member

    Newcomer
    3
    Jan 2, 2018
    United Kingdom
    No worries, I am trying to use your code from here: https://gist.github.com/SonoSooS/d9dfd74a65f5c9ae2c13d76c2c29b5fa but that also includes colorramp so I was just looking for any way to get that in. I'll give it a few more attempts but it's probably beyond my technical abilities for now.
     
    Hmed likes this.
  2. Nutez

    Nutez Advanced Member

    Newcomer
    3
    Jan 2, 2018
    United Kingdom
    Edit: Updated firm here.

    So I figured it out in the end, it was just a typo in my redshift.h file causing all the includes to break xD. Then I needed to add an '-lm' flag into the makefile as shown here: https://github.com/AuroraWright/Lum...a24c#diff-df3b0b90e9112ef9de99f7fb6e99c1acR16 to sort some "undefined reference to" errors.

    Anyway, on to the good part...

    I've attached firms for N3DS and O3DS - so please use the correct one! The only reason for the difference is that Luma chops the top menu option off for O3DS (to stop you accessing the "New 3DS menu..."). However, I wanted the redshift option to be top of the list so I could easily select it with my eyes closed.

    The minor changes to Sono's original module implementation are all just my personal preferences:
    • SELECT now toggles LEDs (LEDs also toggle upon opening menu)
    • B instead returns to previous menu
    • UP/DOWN now navigate, RIGHT/LEFT change values
    • X applies changes to top screen
    • Text change from Luma blue to red/white
    Big thanks to Sono for giving us CTR_Redshift in the first place and the Luma team for making it possible to add modules.

    Edit: Added source files and fixed brightness >1 issue xD
     

    Attached Files:

    Last edited by Nutez, Feb 24, 2019
    mh_, MKTV, NanashiFinal13 and 8 others like this.
  3. seren3

    seren3 GBAtemp Regular

    Member
    2
    Jul 16, 2018
    United States
    Thank you so much, Nutez, for bringing coziness into the future.
     
    Last edited by seren3, Nov 26, 2018
    Itzumi, Sono and Nutez like this.
  4. Der_Blockbuster

    Der_Blockbuster GBAtemp Advanced Fan

    Member
    7
    Mar 2, 2016
    Germany
    Short Question, I compared my N3dsXL to the N2dsXl of my Girlfriend and noticed that both screens are a bit more yellow, so not really true white. Can this be fixed with this homebrew?
     
  5. Sono
    OP

    Sono HoH SiSter

    Member
    10
    Oct 16, 2015
    Austria
    Austro-Hungarian Monarchy
    Completely can't be fixed due to the LCD characteristics, but you could make a LUT which is close enough to a good color palette.
     
  6. Der_Blockbuster

    Der_Blockbuster GBAtemp Advanced Fan

    Member
    7
    Mar 2, 2016
    Germany
    Oh okay, thank you for the answer.
    Can you help me? I've never used your homebrew, will this be running in the background at all times?
    How difficult is it to change it?
    I'm currently not @home so I can't try it on my own.

    Appreciate the help!
     
  7. Exavold

    Exavold eeh

    Member
    5
    Nov 9, 2015
    France
    FINALLY :)
     
    Sono likes this.
  8. Sono
    OP

    Sono HoH SiSter

    Member
    10
    Oct 16, 2015
    Austria
    Austro-Hungarian Monarchy
    I'd need to write a homebrew to do that.
    It doesn't run in the background because it's hardware-based.

    Also, have you tried this one? You can also make the screen a little bit more blue. In fact, I think there is an option to adjust the gamma for each color individually.

    If you go the bruteforce way then afaik you can keep the button held while adjusting to adjust the LUT in real time.
     
    Der_Blockbuster likes this.
  9. Der_Blockbuster

    Der_Blockbuster GBAtemp Advanced Fan

    Member
    7
    Mar 2, 2016
    Germany
    Yeah in the end, I just have to reduce the red a bit, but yeah the bruteforce method should get me where I want to.
    I'll try that and talk back how It went.
     
    Sono likes this.
  10. PRAGMA

    PRAGMA GBAtemp Addict

    Member
    12
    Dec 29, 2015
    Ireland
    127.0.0.1
    Setting it to higher than 1 (for more brightness) does a bad:
     
    Itzumi likes this.
  11. Itzumi

    Itzumi goofball of the interwebs

    Member
    4
    Jun 27, 2018
    United States
    USA
  12. PRAGMA

    PRAGMA GBAtemp Addict

    Member
    12
    Dec 29, 2015
    Ireland
    127.0.0.1
    Kinda a mix, they arent inverted its like a mix between em or some shit. like white is still white, just edges and shit are like doubled up and colors are all weird
     
  13. Itzumi

    Itzumi goofball of the interwebs

    Member
    4
    Jun 27, 2018
    United States
    USA
    hmm. wonder what code wise causes this?
     
  14. Sono
    OP

    Sono HoH SiSter

    Member
    10
    Oct 16, 2015
    Austria
    Austro-Hungarian Monarchy
    That looks like integer overflow. Too white colors will become black again.
     
    Itzumi likes this.
  15. PRAGMA

    PRAGMA GBAtemp Addict

    Member
    12
    Dec 29, 2015
    Ireland
    127.0.0.1
    Yeah thats what it feels like :/
     
  16. jelbo

    jelbo Ōkami!

    Member
    4
    Sep 12, 2003
    Netherlands
    Netherlands
    Last edited by jelbo, Nov 20, 2018
    Nutez likes this.
  17. jelbo

    jelbo Ōkami!

    Member
    4
    Sep 12, 2003
    Netherlands
    Netherlands
    Can confirm on N3DSXL. It starts to incrementally blow out highlights until everything looks inverted. So, no brightness change possible. Color temp works fine.
     
  18. Nutez

    Nutez Advanced Member

    Newcomer
    3
    Jan 2, 2018
    United Kingdom
    Ah, sorry that was me guessing the MAX_BRIGHTNESS value when making a header file. I'm sure I checked against the original cia & luma implementation and thought it could go up to 10: evidently not. I've rebuilt both firms to have 1.0 as max and provided my hacky source files for anyone who would like to critique and tweak.
     
    jelbo likes this.
  19. PRAGMA

    PRAGMA GBAtemp Addict

    Member
    12
    Dec 29, 2015
    Ireland
    127.0.0.1
    So theres absolutely no way to make the screen BRIGHTER thats the only reason I want this
     
  20. Sono
    OP

    Sono HoH SiSter

    Member
    10
    Oct 16, 2015
    Austria
    Austro-Hungarian Monarchy
    If you have a new3DS then it's not possible until there will be a proper gsp patch which disables automatic brightness and someone writes a daemon inside Rosalina to look for 3D mode and switch between 2x brightness and 0.5x brightness accordingly.

    2DS is the best in this regard because it doesn't have 3D, so the backlight will be kept until something happens.
     
    jelbo likes this.
Loading...