Incorrect colours in Windows

About Monkey 2 Forums Monkey 2 Programming Help Incorrect colours in Windows

This topic contains 7 replies, has 2 voices, and was last updated by  Hezkore 2 years, 5 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #5103

    Hezkore
    Participant

    It seems colours are incorrect when compiling to Windows.
    But are correct when using Emscripten.

    Here’s how my Windows executable looks: (Wrong)

    And here’s Emscripten: (Correct)

    Here’s the test code:

    #5111

    Mark Sibly
    Keymaster

    Might be something up with OpenGL initializion. Does this produce a ‘smooth’ range of colors?

    #5112

    Hezkore
    Participant

    It certainly does not.

    Looks great in Emscripten though!

    #5115

    Mark Sibly
    Keymaster

    Woah, 4 bit color!

    Will investigate…also, what OS/graphics card are you using?

    #5117

    Hezkore
    Participant

    Thanks Mark, you da man!

    I’m on Windows 10.
    Ati/AMD card (r390x)
    I updated my GPU drivers, uninstalled every program that might interfere with my colours (like f.lux), but sofar nothing’s solved it.

    I first noticed the problem when trying to make a Theme for Ted2Go and all the colours ending up wrong.
    So I’ve been whining over at the Ted2Go thread heh.

    #5118

    Mark Sibly
    Keymaster

    OK, just pushed a possible fix to the ‘develop’ branch.

    #5119

    Mark Sibly
    Keymaster

    Actually, before trying that you might want to give this a go – does it give a clean gradation of red in the lower half (top half yellow)?

    #5120

    Hezkore
    Participant

    Yep, you did it Mark!
    Looks great now, and finally I can have the IDE colours I want heh.
    Thanks for the quick fix.

    Update: Oh didn’t see your second post.
    I’ve still got the old version though and that last example you posted looks fine even on that one.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.