Hi there.
This is a simple question.
I am trying to create some kind of “history of entity” which could be interpreted as “last entity positions”.
I am currently trying to simply create the entities each one in it’s corresponding location but the problem is that I want to use an Alpha to make the history different from the current position (with no alpha) and the alpha of the history entities is being combined.
Is there a way to make the alpha non additive?
In case not, How could I combine multiple entities to create a new shape so then I can use an alpha for that new entity?
The thing is that I want the program to be rendering entities all the time, with the history “behind” it, like a footprint with some history.
I have in mind 2 possible solutions.
Combining all entities which form the history footprint and make them all (together) to have a 0.3 alpha like this:
Keep in mind this combination is just the polygon in the last 3 states combined. (I say 3 states but this could be different, just as an example).
Not combining the entities which form the history footprint and make them overlap but somehow preventing 2 overlaping entities to combine their color alphas.
I do not want this:
Your suggestion could work too but I do not know how I could combine the hierarchies in an easy way. If you know how to combine 3 hierarchies like what you did or in a total one it could work too.
Unfortunately, I can not implement that solution but that made me think about it in a different way. I think I can create myself a function to achieve that.
The problem I have with that is that my polygons in different times can be different both in shape and position. It is not the same polygon and it can even non exist.
I’ll try to adapt your function and apply it to my code and see if I can make it.
It is sad, because just applying a global alpha color would have been enough.