Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Ryder17z

Pages: [1]
1
Graphics / Re: weird behavior from my color picker (SFML & TGUI)
« on: April 01, 2020, 12:18:55 pm »
Apologies. i've been rushing things. I'll get back to this when i have a decent amount of time to work on it.

Thanks, i'll go through everything at a better pace and hopefully find the issue.


consider the project put on ice for a little while.

2
Graphics / Re: weird behavior from my color picker (SFML & TGUI)
« on: March 31, 2020, 02:14:11 pm »
You assume that everyone understands what your screenshot is showing, but you need to explain it in words, so we can understand what you expect and what is actually happening.
I expect the color indicated using the marker in the gradient to set the color to the checked elements to the left

Have you debugged your code? If I understand it correctly, this doesn't really seem like an issue related to SFML or TGUI but something in your color picking code.
Going through your code step by step should reveal potential logical errors.

I am debugging it but i'm not seeing where the issue is coming from.

Here's an example, color is suddenly white, instead of something very red:

Quote
input (X)sat:20 (Y) vel:13 ColorHue:0
old color: R:244 G:228 B:228
new color: R:243 G:247 B:247



3
Graphics / Re: weird behavior from my color picker (SFML & TGUI)
« on: March 31, 2020, 11:03:07 am »
What does "doesn't work correctly" mean exactly?

Can you describe the actual result and the expected result?
See screenshots. Sometimes i get weird a weird color and i can't figure out why that happens.

Plus can you narrow it down in your project a bit more? I don't intend to read your whole project, just to help with this bug of yours. ;)
Pretty much anything irrelevant to this issue has been stripped out already. sorry, but I don't have much more that i can remove.


As I don't know TGUI, is this a standard TGUI element? Maybe asking on the TGUI forum will be more efficient.

TGUI does not have a colorpicker element, it has slider, checkbox, textlabel, buttons, etc.

Hence the need to write my own.



I can try to explain better though;

I'm taking an int from each of my 3 scrollbars and feed them into HSV() to construct a color, i send that color through HSVToRGB() to update my chosen element

Both functions are inside: https://bitbucket.org/Ryder17z/color-picker-sfml-tgui/src/master/src/ColorHeader.h


I do everything related inside https://bitbucket.org/Ryder17z/color-picker-sfml-tgui/src/master/src/main.cpp
lines 205-267

the rest is pretty standard stuff, init window, load resources (in this case gui element styling, respective default values)


I hope that is enough details

4
Hello. I have built a color picker, but it doesn't work consistently, sometimes these things happen:



The selected elements should update correctly according to the color picker but sometimes they don't.

Code has been ripped out from a larger project and the issue remains.


I'm not sure why it behaves like this, any help would be appreciated. A repo with the project can be found here:

https://bitbucket.org/Ryder17z/color-picker-sfml-tgui/

I'm using visual studio but any other IDE should work as long as linker settings are adjusted appropriately

Pages: [1]
anything