rgb

General discussion about the development of the open source Blender

Moderators: jesterKing, stiv

Post Reply
Mats78
Posts: 100
Joined: Thu Oct 17, 2002 5:06 pm
Location: Vantaa, Finland

rgb

Post by Mats78 » Wed Aug 13, 2003 10:25 am

Is there a way to use rgb values (ranging from 0-255) in blender? The current scale seems to be between 0-1.000. If not, well, this would be some kind of a feature request then =) I like blender for all sorts of graphic work, also web graphics where I need hex or "normal" rgb values.

Or should I just convert everything by hand (and calculator)? not nice...

thanks,
Mats

Goofster
Posts: 108
Joined: Mon Oct 14, 2002 12:26 pm

Post by Goofster » Wed Aug 13, 2003 10:34 am

If you press N-key over the material buttons you get a popup for hex values etc.

Roel

ton
Site Admin
Posts: 350
Joined: Wed Oct 16, 2002 12:13 am
Contact:

Post by ton » Wed Aug 13, 2003 11:55 am

Jeez, a hidden feature I didnt know yet! :)

In my honest personal opinion, colors ranging from 0-255 is a convention from the past we should really get rid of.
The predecessor of Blender (before 1995) used it. At that time I already saw software moving to floating point 'normalized' values. We're hip & cool!

Goofster
Posts: 108
Joined: Mon Oct 14, 2002 12:26 pm

Post by Goofster » Wed Aug 13, 2003 12:33 pm

Just don't try to take it away you!
I always use a shadeless material with the N key to find nice colors for webdesigns :wink:

Roel

ilac
Posts: 131
Joined: Mon Oct 14, 2002 8:24 am

Post by ilac » Wed Aug 13, 2003 1:31 pm

Goofster wrote:If you press N-key over the material buttons you get a popup for hex values etc.

Roel
...And the world buttons,
...and the vertex colours too!

Cool! :D

JWalton
Posts: 58
Joined: Sun Oct 13, 2002 7:39 pm
Contact:

Post by JWalton » Wed Aug 13, 2003 2:36 pm

ton wrote:Jeez, a hidden feature I didnt know yet! :)

In my honest personal opinion, colors ranging from 0-255 is a convention from the past we should really get rid of.
The predecessor of Blender (before 1995) used it. At that time I already saw software moving to floating point 'normalized' values. We're hip & cool!
besides, some sgi machines use 48 bit color with 12 bit components.
how does that work with 0-255? or did I miss something :-)

dreamsgate
Posts: 62
Joined: Thu Oct 17, 2002 10:47 pm

Post by dreamsgate » Wed Aug 13, 2003 2:50 pm

http://reblended.com/www/dreamsgate/PDF ... Values.pdf

I already calculated alot of RGB values, you can find the list here.

stiv
Posts: 0
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Post by stiv » Wed Aug 13, 2003 5:58 pm

Pitiful Humans! I sneer at your puny 8-bit displays!

Just to throw some more gasoline on this fire, Industrial Light and Magic is pushing a high dynamic range file format called OpenEXR that uses 16 or 32 bit floats. The 16 bit type is compatible with Nvidias Cg shader half data type.

Cinepaint ( was Film GIMP ) uses floats of some type for its color channels.

You can always smush a float down into a tiny int by throwing away the details. Better too much than not enough, I say.

theeth
Posts: 500
Joined: Wed Oct 16, 2002 5:47 am
Location: Montreal
Contact:

Post by theeth » Wed Aug 13, 2003 6:28 pm

stiv wrote:Just to throw some more gasoline on this fire, Industrial Light and Magic is pushing a high dynamic range file format called OpenEXR that uses 16 or 32 bit floats. The 16 bit type is compatible with Nvidias Cg shader half data type.
Do you have the file spec of that format somewhere? How is it any different/better than HDR file?

Martin
Life is what happens to you when you're busy making other plans.
- John Lennon

Mats78
Posts: 100
Joined: Thu Oct 17, 2002 5:06 pm
Location: Vantaa, Finland

Post by Mats78 » Wed Aug 13, 2003 6:38 pm

wohoo.. thanks guys.. I really thought this is a feature that simply has to be there (knowing the program) =)

great

cheers,
Mats

leinad13
Posts: 192
Joined: Wed Oct 16, 2002 5:35 pm

Post by leinad13 » Wed Aug 13, 2003 8:59 pm

Another hiden feature that only Ex NaN employees know about, i hear that there is Raytracing feature too, but no one can unlock it in the code :wink:

Anyway keep up the good work guys
-------------
Over to you boffins

L!13

theeth
Posts: 500
Joined: Wed Oct 16, 2002 5:47 am
Location: Montreal
Contact:

Post by theeth » Wed Aug 13, 2003 9:22 pm

For your information, Goofster isn't Ex NaN, he's just well informed. :)

I'm surprised Ton didn't know about that feature though.

Really handy when you want stuff to blend in the background of web pages.

Martin
Life is what happens to you when you're busy making other plans.
- John Lennon

stiv
Posts: 0
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Post by stiv » Wed Aug 13, 2003 10:09 pm

theeth wrote: Do you have the file spec of that format somewhere? How is it any different/better than HDR file?
Unknown. It may be YAHDRF ( Yet Another High Dynamic Range Format) or it may be the answer to all our prayers or c) none of the above.

The Technical Details sound cool though. And it does have the Imperial Majesty of ILM behind it.

It has its own webpage: http://www.openexr.com

I suspect this sort of thing will become increasingly common as toolchains get longer and you have more and more programs munching on the data.

theeth
Posts: 500
Joined: Wed Oct 16, 2002 5:47 am
Location: Montreal
Contact:

Post by theeth » Wed Aug 13, 2003 10:37 pm

seems like the file format also accepts addition added info (they use it for camera matrice, which is plain brilliant).
Additionally, a C-callable version of the programming interface supports reading and writing OpenEXR files from programs written in C.
Sounds interesting.
Anyone would be kind enough to look at how hard it would be to implement?

Martin
Life is what happens to you when you're busy making other plans.
- John Lennon

Post Reply