- This topic has 8 replies, 3 voices, and was last updated 5 years, 9 months ago by
HeDiBo.
-
AuthorPosts
-
May 11, 2020 at 7:34 pm #68776
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.May 11, 2020 at 8:43 pm #68780I 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 2001May 11, 2020 at 10:17 pm #68782I 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.
May 11, 2020 at 11:39 pm #68783Do I understand correctly that you use the pink part as a mask where not to paint highlights?
Stephane Senecal
CIS Group
Delphi programmer since 2001May 12, 2020 at 12:28 am #68785I 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 2001May 14, 2020 at 5:31 pm #68814AlphaSkins 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..May 17, 2020 at 6:52 pm #68829TsSpeedButton can’t do it, another way should be used there..
Does this mean a solution is searched for. Or does it stay like this?
May 21, 2020 at 1:05 pm #68831You seem to have found a solution in AC 15.08. Congrats 🎈
-
AuthorPosts
- The topic ‘AC 15 Lighting option is not always an improvement.’ is closed to new replies.