AC 15 Lighting option is not always an improvement.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #68764
    HeDiBo
    Participant

    The accompanying project shows a setup in which several skins fail to highlight buttons properly.
    In the example you see the Ubuntu skin on the “Terug” button showing a square edge on the left side of the button when the cursor hovers there.

    Attachments:
    You must be logged in to view attached files.
    #68776
    Support
    Keymaster

    You are right, old skins are looks worse with this effect.
    I’m planning to find a solution later, but can’t guarantee a success.
    TsButton hasn’t such problem because region of the control is changed there and we can cut these corners.

    #68780
    Stephane Senecal
    Participant

    I don’t think the problem is the age of the skins, but all the skins that have buttons with rounded corners.
    I had an idea, but i’m not sure of its feasibility.
    It would be to find the edge of all the fully opaque pixels and everything that is outside of those boundaries would not be affected by the lighting effect.
    This method would not work on buttons that do not have any fully opaque pixels.

    Stephane Senecal
    CIS Group
    Delphi programmer since 2001

    #68782
    Support
    Keymaster

    I thought about it and about other ways. This issue is solved in the TsBitBtn and TsButton, but can’t be solved easily in the TsSpeedButton, because region of the TsSpeedButton can’t be changed.

    #68783
    Stephane Senecal
    Participant

    Do I understand correctly that you use the pink part as a mask where not to paint highlights?

    Stephane Senecal
    CIS Group
    Delphi programmer since 2001

    #68785
    Stephane Senecal
    Participant

    I have an idea, but it’s a bit weird.
    From the black and white mask in the master.bmp file, we could use only the red channel for alpha and the green or blue channel as a mask for what part can be affected by the lighting effect. They use this technique in 3D programming for bump mapping.
    Let me know what you think.

    Stephane Senecal
    CIS Group
    Delphi programmer since 2001

    #68814
    Support
    Keymaster

    AlphaSkins have support of Png master image already.
    It means that mask can have one byte there like this: http://www.alphaskins.com/doc/images/i21_24.png
    So, this mask can’t be divided to RGB channels…

    Btw. Yes, fuchsia pixels are fully transparent and for effects too.
    TsButton and TsBitButton changes their regions accordingly these Fuchsia pixels.
    TsSpeedButton can’t do it, another way should be used there..

    #68829
    HeDiBo
    Participant

    TsSpeedButton can’t do it, another way should be used there..

    Does this mean a solution is searched for. Or does it stay like this?

    #68831
    HeDiBo
    Participant

    You seem to have found a solution in AC 15.08. Congrats 🎈

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘AC 15 Lighting option is not always an improvement.’ is closed to new replies.