godot icon indicating copy to clipboard operation
godot copied to clipboard

color picker doesn't display colors properly

Open nunodonato opened this issue 9 years ago • 12 comments

Operating system or device - Godot version: Linux, 3.0master

Issue description: The color picker used in the inspector (and probably other places) is not showing the color selection rectangle.

Besides that, the hue selection (vertical bar) seems to have a different offset than the real color being selected. One of them appears to be the inverted value of the other.

nunodonato avatar Apr 12 '17 10:04 nunodonato

It happens to me the same in windows, when I change the "color" (modulate?) of the sprites for example.

Shockblast avatar Apr 12 '17 14:04 Shockblast

Same here just a empty square with no colors, when clicking in that square the color is picked but there is no color on the square image

alex9099 avatar Apr 12 '17 19:04 alex9099

same as @alex9099 tested under windows 7 32 bit

avril-gh avatar Apr 12 '17 21:04 avril-gh

All the time since the first buildable godot 3, also the invisible part of the color picker seems to be inverted respecting to the right bar (like, pink is yellow and yellow is pink).

eon-s avatar Apr 12 '17 23:04 eon-s

yep same issue here for the color picker

Gibbz avatar Apr 13 '17 08:04 Gibbz

This should fix ColorPicker and Polygon2D for now, but i believe some more fixes will be needed for other nodes like CollisionPolygon wich is not drawing neighter.

MarianoGnu avatar Apr 16 '17 18:04 MarianoGnu

The palette to the right is flipped upside down. Not a big deal as the mouse coordinate logic is just a simple flip and all is good.

But the Polygon2D doesn't seem to work in Godot 3 at the moment. Which is okay, because I ran the Polygon2D code in Godot 2 where it is working and the palette picker does not look good at all.

I have it nearly corrected, but I think that a fragment shader is the better solution to this versus a Polygon2D.

capture

remorse107 avatar Jun 15 '17 00:06 remorse107

@remorse107 pull the newest master. the draw polygon got finally fixed today

toger5 avatar Jun 15 '17 02:06 toger5

Okay. I pulled from the Master, and now it looks really good. I guess I'll make a push request which I've never done before.

capture

remorse107 avatar Jun 15 '17 03:06 remorse107

reduz recently fixed _draw_polygon function, wich was in charge of drawing the color picker, i did a fix long ago to replace shaders for polygons

MarianoGnu avatar Jun 15 '17 17:06 MarianoGnu

The polygon works great now. There was still a couple of bugs related to the color array bring sent to draw polygon and the reverse direction of the how selection texture.

I made a push request that corrected toge items.

On Jun 15, 2017 12:12 PM, "Mariano Javier Suligoy" [email protected] wrote:

reduz recently fixed _draw_polygon function, wich was in charge of drawing the color picker, i did a fix long ago to replace shaders for polygons

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/godotengine/godot/issues/8372#issuecomment-308808092, or mute the thread https://github.com/notifications/unsubscribe-auth/AHHgUZE6Zi1nf4F6Fyfw4z8msrf-g2bMks5sEWX9gaJpZM4M7RCB .

remorse107 avatar Jun 15 '17 17:06 remorse107

Fixed by #9192.

akien-mga avatar Jun 15 '17 18:06 akien-mga