Converting color numbers into Blender color numbers?

Hello,

I have PhotoImpact and other photo/drawing/image editing software in which each uses RBG colors with numbers ranging from 0 to 255 to describe the colors. Yet, Blender uses 0.000 to 1.000.

Anyone know a way to convert rom the integer colors to the Blender real number colors?

Thanks,
edsager

RGB/255=Color

Yeah, it’s simple.

RGB runs from 0 to 255 for each of red, green, and blue, with zero meaning none and 255 meaning full. Blender uses RGB from 0 to 1. Physically, a 1 in the blender system must mean the same thing as 255 in the integer system, and zeros mean the same thing. Doing a type of ‘unit conversion’, we find it’s not really that hard at all:

x int units * ( 1 blend units / 255 int units ) = y blend units

So, as you can see, all you have to do is divide the integer by 255. :slight_smile:

Thank you, Aurrin. I wondered if it was that simple.

Thanks,
edsager

hit N in the material window and you get to enter hex [#A0B0FF for example]

Math is teh good.