Author : disting


Reply
Reply
 
Thread Tools Display Modes
oXYnary's Avatar
Old (#1)
Hey ok so I cant figure out this. What is the industrial numerical standard for 32bit color. Percentage wise 0-100% for each channel, or like Photoshop displays, as behind the decimal point (.0-1).?

Last edited by oXYnary; 12-16-2009 at 08:11 PM..
Offline , veteran polycounter, 4,605 Posts, Join Date Oct 2004, Location Seattle, WA Send a message via AIM to oXYnary Send a message via MSN to oXYnary  
   Reply With Quote

renderhjs's Avatar
Old (#2)
32bit as in 24bit RGB + 8bit alpha = 32 bit?
  • 8bit Red channel
  • 8bit Blue channel
  • 8bit Green channel
  • 8bit grayscale alpha

in that case for each channel 0 - 255 or 1-256 depending on the scripting language.
Offline , veteran polycounter, 3,037 Posts, Join Date Mar 2008, Location Sydney Australia Send a message via AIM to renderhjs Send a message via MSN to renderhjs  
   Reply With Quote

LoTekK's Avatar
Old (#3)
I was just looking through Unity's docs last night, and I think their JS scripting uses 0-1 for each rgb value.
FlowMap Painter v0.9.2

teckArtist.com
LoTekK.com

"Has anyone really been far even as decided to use even go want to do look more like?" -DKK
Offline , dedicated polycounter, 1,395 Posts, Join Date Jan 2006, Location Singapore Send a message via MSN to LoTekK Send a message via Skype™ to LoTekK  
   Reply With Quote

renderhjs's Avatar
Old (#4)
thats just a floating value representation, in the end its stored as a 8bit short value (integer from 0-255).
What unity does in the background is simply multiplying that number with 255 and convert it to a integer value.

For web development especially in the area of Flash Hexadecimal values are very speedy to work with because you don't have to copy and paste multiple entries but just 1 string to represent 24 and or even 32 bit color values, like 0FFF006C1 for a solid pink. They also work great in After Effects, Photoshop and Dreamweaver. Unfortunately many other industry applications haven't yet fully adopted that model like 3dsmax. In that case you always have to swap applications and copy paste all 3 RGB/A values over.
Offline , veteran polycounter, 3,037 Posts, Join Date Mar 2008, Location Sydney Australia Send a message via AIM to renderhjs Send a message via MSN to renderhjs  
   Reply With Quote

Adam L. Gray's Avatar
Old (#5)
Quote:
0FFF006C1
Wait a min, perhaps slightly off-topic but I thought hex only used 6 digits? As in:

#FF9900 being 255-153-00

So how exactly would it work if you got nine digits?

#0FFF006C1 = 025-125-?? I'm confused :[
Adam L. Fransson - Freelance Environment Artist... Nyu~
Offline , triangle, 444 Posts, Join Date Mar 2009, Location Sweden - Varberg  
   Reply With Quote

renderhjs's Avatar
Old (#6)
#AARRGGBB
it depends on the app and if it supports it, otherwise you are right its just 6 for the RRGGBB. The first 2 of the 8 digits are the alpha value.
But I guess hex values don't matter much here since autodesk doesn't know about them in their apps.
Offline , veteran polycounter, 3,037 Posts, Join Date Mar 2008, Location Sydney Australia Send a message via AIM to renderhjs Send a message via MSN to renderhjs  
   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright 1998-2012 A. Risch