Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

[BUG-230549] Color picker for Light (PRIM_POINT_LIGHT) shows and sets incorrect values #8202

Closed
1 task
sl-service-account opened this issue Apr 10, 2021 · 1 comment

Comments

@sl-service-account
Copy link

sl-service-account commented Apr 10, 2021

What just happened?

Something is seriously wrong with setting and getting colors using the color picker when setting the Light feature. When setting light colors using llSetLinkPrimitiveParams() the color picker shows incorrect values. When setting colors in the picker they are not set correctly in-world, as checked with llGetLinkPrimitiveParams();

  • create a prim

  • set a light with RGB color value <128,128,128>

  • check by script what has been set:

    llOwnerSay(llDumpList2String(llGetLinkPrimitiveParams(0,[PRIM_POINT_LIGHT]),","));
    

    Output:
    Object: 1,<0.215686, 0.215686, 0.215686>,1.000000,10.000000,0.750000

    The reverse also does not work, setting the colors in world and checking the RGB values in the picker - they are off.

    Finally, the lower RGB values will not stick at all, if you enter 128,128,5 , press ok and then re-open the picker, the value 5 has been reset to 0.

What were you doing when it happened?

Scripting with lsl using llSetLinkPrimitiveParams() to create lights and using the color picker to check if the colors are correct.

What were you expecting to happen instead?

The color picker to show and set correct values. For example the output color value of the above setting should have been ~ <0.5, 0.5, 0.5>

Other information

This also happens in the color picker window of Firestorm and Kokua (both latest versions). It never happened to me before in earlier versions.

The minimum and maximum values are correct (0 and 255) however any intermediate values seem to be scaled.

Links

Duplicates

Original Jira Fields
Field Value
Issue BUG-230549
Summary Color picker for Light (PRIM_POINT_LIGHT) shows and sets incorrect values
Type Bug
Priority Unset
Status Closed
Resolution Duplicate
Reporter Anatova Akina (anatova.akina)
Created at 2021-04-10T15:01:37Z
Updated at 2021-04-12T18:10:15Z
{
  'Build Id': 'unset',
  'Business Unit': ['Platform'],
  'Date of First Response': '2021-04-12T13:10:15.817-0500',
  "Is there anything you'd like to add?": 'This also happens in the color picker window of Firestorm and Kokua (both latest versions). It never happened to me before in earlier versions.\r\n\r\nThe minimum and maximum values are correct (0 and 255) however any intermediate values seem to be scaled.\r\n',
  'ReOpened Count': 0.0,
  'Severity': 'Unset',
  'System': 'SL Viewer',
  'Target Viewer Version': 'viewer-development',
  'What just happened?': 'Something is seriously wrong with setting and getting colors using the color picker when setting the Light feature. When setting light colors using llSetLinkPrimitiveParams() the color picker shows incorrect values. When setting colors in the picker they are not set correctly in-world, as checked with llGetLinkPrimitiveParams();\r\n\r\n- create a prim\r\n- set a light with RGB color value <128,128,128>\r\n- check by script what has been set:\r\n\r\n    llOwnerSay(llDumpList2String(llGetLinkPrimitiveParams(0,[PRIM_POINT_LIGHT]),","));\r\n\r\nOutput:\r\n    Object: 1,<0.215686, 0.215686, 0.215686>,1.000000,10.000000,0.750000\r\n    \r\nThe reverse also does not work, setting the colors in world and checking the RGB values in the picker - they are off.\r\n\r\nFinally, the lower RGB values will not stick at all, if you enter 128,128,5 , press ok and then re-open the picker, the value 5 has been reset to 0.\r\n',
  'What were you doing when it happened?': 'Scripting with lsl using llSetLinkPrimitiveParams() to create lights and using the color picker to check if the colors are correct.',
  'What were you expecting to happen instead?': 'The color picker to show and set correct values. For example the output color value of the above setting should have been ~ <0.5, 0.5, 0.5>\r\n',
  'Where': 'Everywhere on several sims',
}
@sl-service-account
Copy link
Author

Dan Linden commented at 2021-04-12T18:10:16Z

Hi Anatova,
This is a duplicate of BUG-229908.

Thank you,
Dan

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant