Planetside Software Forums

General => Terragen Discussion => Topic started by: rcallicotte on August 15, 2012, 02:29:40 PM

Title: Colour Listing in TGD (or TGC)
Post by: rcallicotte on August 15, 2012, 02: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.
Title: Re: Colour Listing in TGD (or TGC)
Post by: cyphyr on August 15, 2012, 04: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
Title: Re: Colour Listing in TGD (or TGC)
Post by: Oshyan on August 15, 2012, 04: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
Title: Re: Colour Listing in TGD (or TGC)
Post by: rcallicotte on August 15, 2012, 10:56:51 PM
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?
Title: Re: Colour Listing in TGD (or TGC)
Post by: 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
Title: Re: Colour Listing in TGD (or TGC)
Post by: rcallicotte on August 15, 2012, 11:05:43 PM
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
Title: Re: Colour Listing in TGD (or TGC)
Post by: 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
Title: Re: Colour Listing in TGD (or TGC)
Post by: rcallicotte on August 16, 2012, 12:15:16 PM
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