I tried all sort to get this looking the same and I am out of ideas. Any tip on why this might happen.
The issue is the red bit, on the desktop, left hand side image, it is solid red and on the ipad it got some alpha applied to it.
The code base is on the large side and I would not be able to get a repeatable working example. It currently uses mesh for those rectanges.
https://www.sphericalgames.co.uk/images/renderingIssue.pngI wouldn't spend any time on this given I've changed the way it is stored in a sprite. If I get a chance I'll try and reproduce this and provide some example code. I've not touched this in 3 years and it did work back then but something changed since. It also flashes when filling shapes, I can live with that, that effect never happened before and doesn't happen on mac desktop version.
Comments
local mesh = Mesh.new()
mesh:setAlpha(0.5) << Remove this and it is solved.
Initialise mesh...
mesh:setVertex(...
mesh:setIndex(...
mesh:setColor(...
Somewhere later on….
If (some flag setting….)
mesh:setAlpha(1) <<< Does not work. Well it does on my Mac but not work on iOS devices
end
Something along the lines:
It is using the mesh class to draw them instead. I am doing it this way in order to have antialias lines. I've created a line/shape editor along with a key frame animator for this game.
I've not touched this game for 3 years and only got around to buy the iOS developer license this week. Last time I saw it running on iOS was 3 years ago it was working and I haven't touched the source code since then.
It is not important given I've found a work around.
I'll delete the link in 24 hours so it does not look like I am promoting my site.
Likes: MoKaLux