Forum: Poser - OFFICIAL


Subject: numbers for colors in Poser files

Francemi opened this issue on Jul 20, 2004 ยท 18 posts


kuroyume0161 posted Tue, 20 July 2004 at 4:56 AM

  1. Yes, that is correct. All color triplets in all Poser files (PZ3, PZ2, CR2. etc.) are decimal values between 0.0 and 1.0 (instead of the usual 0 to 255 8-bit integer format). But they transfer identically: 0.0 = 0, 1.0 = 255 - I think that values inbetween should be obvious. ;0) The fourth value is 'intensity' or 'strength' and should be set to '1' in most cases. One way to set the colors is to get the color you want in, for instance PSP or Photoshop, and convert as follows: decimal value = integer value / 255 Going the other way requires rounding: integer value = INT((decimal value * 255) + 0.5) - where INT() truncates the decimal portion (255.5 becomes 255). Kuroyume

C makes it easy to shoot yourself in the foot. C++ makes it harder, but when you do, you blow your whole leg off.

 -- Bjarne Stroustrup

Contact Me | Kuroyume's DevelopmentZone