### Author Topic: Colour Listing in TGD (or TGC)  (Read 2276 times)

#### rcallicotte

• Member
• Posts: 9542
##### Colour Listing in TGD (or TGC)
« on: August 15, 2012, 06:29:40 PM »
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

• Member
• Posts: 3953
##### Re: Colour Listing in TGD (or TGC)
« Reply #1 on: August 15, 2012, 08:04:48 PM »
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.richardfraser.co.uk
/|\

i7 5930 @3.5Ghz, 32Gb (TG3 benchmark 6:04)
i7 980 OC'd @3.9Ghz, 16Gb (TG3 benchmark 6:30)

#### Oshyan

• Planetside Staff
• Posts: 12809
• Holy snagging ducks!
##### Re: Colour Listing in TGD (or TGC)
« Reply #2 on: August 15, 2012, 08:17:46 PM »
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

• Member
• Posts: 9542
##### Re: Colour Listing in TGD (or TGC)
« Reply #3 on: August 16, 2012, 02:56:51 AM »
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

• Planetside Staff
• Posts: 12809
• Holy snagging ducks!
##### Re: Colour Listing in TGD (or TGC)
« Reply #4 on: August 16, 2012, 03:00:23 AM »
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

• Member
• Posts: 9542
##### Re: Colour Listing in TGD (or TGC)
« Reply #5 on: August 16, 2012, 03:05:43 AM »
Thanks Oshyan.  You have always been so helpful, even to us wanna-bes.

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

• Planetside Staff
• Posts: 1729
##### Re: Colour Listing in TGD (or TGC)
« Reply #6 on: August 16, 2012, 04: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

#### rcallicotte

• Member
• Posts: 9542
##### Re: Colour Listing in TGD (or TGC)
« Reply #7 on: August 16, 2012, 04:15:16 PM »
Good idea.  Thanks 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
So this is Disney World.  Can we live here?