Colour Listing in TGD (or TGC)

Started by rcallicotte, August 15, 2012, 02:29:40 PM

Previous topic - Next topic

rcallicotte

The color attribute is listed like this - "1 0.9574000239 0.638800025"  in the TGD or TGC.

I'm assuming the first number (1, in this case) is the amount of color, but how do I interpret the other two?  I'm programming something to make TGCs (an experiment) and I want to control the color.
So this is Disney World.  Can we live here?

cyphyr

No I think that each number refers to the amount of Red, Green, and Blue out of a maximum of 1 and minimum of 0, hence pure red will be 1,0,0 and pure blue will be 0,1,0 etc.
This, for example, from a project I'm working on at the moment (0.8434000015 0.7299000025 0.5295000076) is a dull reddish orange.
Cheers
Richard
www.richardfraservfx.com
https://www.facebook.com/RichardFraserVFX/
/|\

Ryzen 9 5950X OC@4Ghz, 64Gb (TG4 benchmark 4:13)

Oshyan

Exactly right Richard. In Calico's example, red just happened to be at 1, which could be confusing with the other two values looking so much different. But it's RGB, and the values all have the same potential numerical precision.

- Oshyan

rcallicotte

Okay.  But, that's weird.  This is the color Yellow.  Red at 1?  I believe you...it's your program.  LOL  But, Yellow has 1 red?  Or does that mean it has no red?
So this is Disney World.  Can we live here?

Oshyan

In the RGB model, Yellow is a combination of Red and Green. Notice you have a lot of Red and a lot of Green, less of Blue. http://en.wikipedia.org/wiki/RGB_color_model

- Oshyan

rcallicotte

Thanks Oshyan.  You have always been so helpful, even to us wanna-bes.



Quote from: Oshyan on August 15, 2012, 11:00:23 PM
In the RGB model, Yellow is a combination of Red and Green. Notice you have a lot of Red and a lot of Green, less of Blue. http://en.wikipedia.org/wiki/RGB_color_model

- Oshyan
So this is Disney World.  Can we live here?

jo

Hi calico,

If you want to understand RGB better just use the RGB sliders in the colour picker.  Set the popup on the right to "RGB 0..1" and the values will be in the same 0 to 1 range that you'll see in the files.

Regards,

Jo

rcallicotte

Good idea.  Thanks Jo!


Quote from: jo on August 16, 2012, 12:02:01 AM
Hi calico,

If you want to understand RGB better just use the RGB sliders in the colour picker.  Set the popup on the right to "RGB 0..1" and the values will be in the same 0 to 1 range that you'll see in the files.

Regards,

Jo
So this is Disney World.  Can we live here?