Open 3D Engine (O3DE) is an Apache 2.0-licensed multi-platform 3D engine that enables developers and content creators to build AAA games, cinema-quality 3D worlds, and high-fidelity simulations without any fees or commercial obligations.
item hardMaximum(in the number field) softMaximum(on the slider bar)
R/G/B 3178 255
L(HSL) 1250 100
V(HSV) 1250 100
The hardMaximum value in the number box for (R/G/B,L(HSL),V(HSV)) is not equal to the softMaximum value on the slider bar(Of course, maybe different value Ranges and 3178/1250 have other intentions, please let me know).
To Reproduce
Steps to reproduce the behavior:
1.Open Editor.
2.Create a new Entity.
3.Add Light Component.
4.Switch to the Select Color.
5.Click the RGB/HSL/HSV options respectively.
6.Enter a large value in the number field.
Expected behavior
The value in the number field should not be greater than the maximum value on the slider bar
Screenshots
RGB(Enter a number greater than the maximum value 255 of the slider bar, the R/G/B hardMaximum value is 3178)
L(HSL, enter a number greater than the maximum value 100 of the slider bar, the L hardMaximum value is 1250 )
V(HSV, enter a number greater than the maximum value 100 of the slider bar, the V hardMaximum value is 1250)
Desktop/Device (please complete the following information):
Device: [PC]
OS: [Windows]
Version [10]
CPU [Intel I7-10700 2.90GHz (16 CPUs)]
GPU [Intel(R) UHD Graphics 630]
Memory [32GB]
Additional context
hardMaximum not equal to softMaximum, code Implementation as follows:
Describe the bug
The hardMaximum value in the number box for (R/G/B,L(HSL),V(HSV)) is not equal to the softMaximum value on the slider bar(Of course, maybe different value Ranges and
3178
/1250
have other intentions, please let me know).To Reproduce Steps to reproduce the behavior:
1.Open Editor. 2.Create a new Entity. 3.Add Light Component. 4.Switch to the
Select Color
. 5.Click theRGB
/HSL
/HSV
options respectively. 6.Enter a large value in the number field.Expected behavior The value in the number field should not be greater than the maximum value on the slider bar
Screenshots
255
of the slider bar, theR/G/B
hardMaximum value is3178
)100
of the slider bar, theL
hardMaximum value is1250
)100
of the slider bar, theV
hardMaximum value is1250
)Desktop/Device (please complete the following information):
Additional context
hardMaximum not equal to softMaximum, code Implementation as follows:
https://github.com/o3de/o3de/blob/c28bc7c6d8c7316f9c7053423d40a7b8ebd0c696/Code/Framework/AzQtComponents/AzQtComponents/Components/Widgets/ColorPicker/ColorComponentSliders.cpp#L66-L71
https://github.com/o3de/o3de/blob/c28bc7c6d8c7316f9c7053423d40a7b8ebd0c696/Code/Framework/AzQtComponents/AzQtComponents/Components/Widgets/ColorPicker/ColorComponentSliders.cpp#L446-L452
https://github.com/o3de/o3de/blob/c28bc7c6d8c7316f9c7053423d40a7b8ebd0c696/Code/Framework/AzQtComponents/AzQtComponents/Components/Widgets/ColorPicker/ColorComponentSliders.cpp#L186-L187
https://github.com/o3de/o3de/blob/c28bc7c6d8c7316f9c7053423d40a7b8ebd0c696/Code/Framework/AzQtComponents/AzQtComponents/Components/Widgets/ColorPicker/ColorComponentSliders.cpp#L320-L321