Vandepad / sdl-mame-wii

Automatically exported from code.google.com/p/sdl-mame-wii
0 stars 0 forks source link

Overlay colors in .lay artwork files calculated incorrectly #19

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Any game with an overlay such as bzone, but problem is in all games such as 
asteroids deluxe
2.Instead of 0 to 1 with 1 being brightest. Colors are calculated with 1 to 0 1 
being the darkest.
3.Changing the numbers in the .lay file can workarounds

What is the expected output? What do you see instead?
bzone should be top red, bottom green. Instead it is top cyan (G+B), bottom 
magenta (R+B)

What version of the product are you using? On what operating system?
.5 any.

Please provide any additional information below.
In bzone.lay file for artwork:
This is the original that results in cyan magenta color overlay
    <element name="overlay">
        <rect>
            <bounds left="0" top="0" right="1068" bottom="160" />
            <color red="1.0" green="0.125" blue="0.125" />
        </rect>
        <rect>
            <bounds left="0" top="160" right="1068" bottom="801" />
            <color red="0.125" green="1.0" blue="0.125" />
        </rect>
    </element>

If you change the numbers to this, the overlay colors displays as they should 
be red/green:

    </element>
    <element name="overlay">
        <rect>
            <bounds left="0" top="0" right="1068" bottom="160" />
            <color red="0.125" green="1.0" blue="1.0" />
        </rect>
        <rect>
            <bounds left="0" top="160" right="1068" bottom="801" />
            <color red="1.0" green="0.125" blue="1.0" />
        </rect>
    </element>

Therefore I suspect that the values are reversed with 1.0 being off/dark and 
0.0 being on/bright for each color channel or something like that.

Original issue reported on code.google.com by Jason.G....@gmail.com on 1 Oct 2010 at 9:09

GoogleCodeExporter commented 8 years ago
To put it more simply, if the values in the .lay file are subtracted from 1.0, 
all appears as it should with the color overlay.

Original comment by Jason.G....@gmail.com on 1 Oct 2010 at 9:17