MegaGlest Forum
MegaGlest => Bug reports => Closed bug reports => Topic started by: titi on 2 June 2013, 16:39:35
-
I played a game using colorpicking today . Forst all was ok, but later in the game I suddenly had some bad effects.
Suddenly one of my unit was selected instead of the enemy units, also it was not under my mouse pointer.
Later I tried to select a group of archers, but suddenly a a worker was selected too! I could do this again and again, always the same result. The worker was not in the selection triangle and by this he should not have been selected.
Is it possible that the dynamic color assignment for colorpicking does not work as expected ? Do we really need such a dynamic assignment and a static one will not work ? I mean, even with a colordistance of 8 ( needed for some bad gfx cards ) this would mean we have 256 * 256 * 256 -1 = 16777216 -1 colors available. I think we will never see so many (selectable) units in a game, Even with the dead ones this will be enough.
-
You need to look at the code titi. In model.cpp the class BaseColorPickEntity spaces EACH R G B value 8 colors away so its not as many as your calculaton shows above. The color spacing is needed for some drivers that merge close colors as I have read in articles online.
so its more like 255 / 8 * 255/8 * 255 / 8 = approximately 29791
Now also realize that resources are also part of this as they are also selectable, and that is why.
-
Titi: Should this be moved and tagged [invalid] (which is the tag I've been using so far for bug reports which are not applicable to MG's latest stable version or newer or whether MG works as designed)?
-
@tomreyn: No this is a problem with svn version.
I already looked very careful at the current implementation. All looks good there :-/ . So I am still searching ... If I don't find it or I cannot reproduce it , I will close the ticket.
-
still not completly fixed :-/
This flickering was introduced a long time ago when we made the first steps to improve colorpicking ( after 3.7.1 )
-
I think this is fixed now.
-
flickering is fixed, and the colorpicking problem did not show up anymore, i close it as "not reproducable"