Heya Yes I know the basic conversion but that dont match the program.
Basically if I set the color to be 0.25/0.25/0.25 of range value 0-1 And then read the value that get processed to program it actually is (0.044156629592180252, 0.044154495000839233, 0.044151946902275085) Which makes me think that its being either gamma correct or something else in mean time. I thought that I was facing simply vector conversion but it looks like i have to find and reproduce the math for the curved emmm values in order to match the app. Bit annoying for the moment I found work around but I'd still want to know how to reproduce the match - or reverse engineer I guess? Thanks for help. On Friday, 24 January 2014 16:48:25 UTC, damonshelton wrote: > > 255.0 * each element for each color will give you what those 0-255 rgb > values are, but not sure where you got your initial percentages versus > values came from. > 25% of 1.0 would be (.25, .25, .25) > > > On Fri, Jan 24, 2014 at 6:41 AM, Daz <[email protected] <javascript:>>wrote: > >> Heya >> >> I'm trying to remap 3 dimensional vector to values of 0-255 >> >> Can some1 suggest what algorithm I need to use to convert those vector >> values to more human rgb values? >> >> I know that >> >> 0% = (0.0, 0.0, 0.0) - black >> 25% = (0.044156629592180252, 0.044154495000839233, 0.044151946902275085) >> 50% = (0.18418028950691223, 0.18418741226196289, 0.18419596552848816) >> 75% = (0.48274806141853333, 0.48278585076332092, 0.48283094167709351) >> 100% = (0.99991166591644287, 1.0000128746032715, 1.0001327991485596) - >> white >> >> Thanks, bye. >> >> > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/0ff4eb6a-d890-4de2-966d-428758aa8d46%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
