Timeline for How to draw a specific color with gpu shader
Current License: CC BY-SA 4.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 31, 2023 at 9:21 | comment | added | taiyo | @user43967 turns out it is a different issue and the values are possible. I edited my answer. | |
Jul 30, 2023 at 15:48 | history | edited | user43967 | CC BY-SA 4.0 |
added 1 character in body
|
Jul 30, 2023 at 15:48 | history | edited | user43967 | CC BY-SA 4.0 |
added 25 characters in body
|
Jul 30, 2023 at 15:44 | history | edited | user43967 | CC BY-SA 4.0 |
added 481 characters in body
|
Jul 30, 2023 at 15:33 | history | edited | user43967 | CC BY-SA 4.0 |
added 3 characters in body
|
Jul 30, 2023 at 15:12 | comment | added | user43967 | 255 is actually correct -- see docs.blender.org/api/current/mathutils.html#mathutils.Color | |
Jul 30, 2023 at 15:08 | review | Low quality posts | |||
Jul 30, 2023 at 15:46 | |||||
Jul 30, 2023 at 15:06 | history | edited | user43967 | CC BY-SA 4.0 |
added 4 characters in body
|
Jul 30, 2023 at 14:44 | history | edited | user43967 | CC BY-SA 4.0 |
added 1 character in body
|
Jul 30, 2023 at 11:51 | comment | added | taiyo | Little but important typo: it should be 0.0039... not 0.039... | |
Jul 30, 2023 at 8:31 | comment | added | Markus von Broady |
You're correct, I was so focused on very low precision that I missed the first value 0.003921568859368563 multiplied by 255 gives 1.000000059138983565 . However it still doesn't solve the question, and setting the value to 1/255 (1/256 would be incorrect) doesn't allow to set the color to 0x01 …
|
|
Jul 30, 2023 at 5:57 | comment | added | user43967 | That isn't what Taiyo showed. He actually showed that 0.001 was smaller than one step. As expected, you see 0 for the first 2 steps. Then you see: 1 (0.0039...) for the next 4 steps, 2 for the next 4 steps (0.0078...) and so on. If he is using the shader and it continues to work that way, you should see the value for 5 (0.0195...) in some of the other steps. If the values are really skipped like X Y indicates, that is a different issue. Based on Taiyo's test, all 256 values should be possible. | |
Jul 29, 2023 at 23:37 | comment | added | Markus von Broady | Unfortunately this is not true, as stated by both OP and taiyo | |
S Jul 29, 2023 at 23:18 | review | First answers | |||
Jul 30, 2023 at 2:35 | |||||
S Jul 29, 2023 at 23:18 | history | answered | user43967 | CC BY-SA 4.0 |