Results 1 to 2 of 2
  1. #1

    Trying debug value info possible bug?

    I am trying to debug the value of a material but the data obtained is different. Is this a bug?
    Captura de pantalla_2018-01-27_11-40-17.png
    Captura de pantalla_2018-01-27_11-40-43.png
    Captura de pantalla_2018-01-27_11-41-09.png

    Thanks.



  2. #2
    Member Secrop's Avatar
    Join Date
    Dec 2011
    Location
    Berlin
    Posts
    2,010
    I would consider it a bad usage, instead of a bug. HSV values are supposed to be normalized (in between 0 and 1).

    If you use a HSV of [0.0, 1.0, 4.86432], it will result in a Red component of 40.250034 (while the others at 0). As the rgb_to_hsv uses V=max(c[0], c[1],c[2]), that's pretty much the result you should be getting.

    For more information read the /blenderfolder/2.79/scripts/addons/cycles/shaders/node_color.h, where you can see that inputs are not clamped, and the math that's used in the hsv_to_rgb, and rgb_to_hsv.
    Last edited by Secrop; 27-Jan-18 at 07:41.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •