I am wondering if there is a simple way to tweak the overall tint of the puffy procedural galaxies from a beige / grey to a bluish hue. Too much time spent in digital planetariums for me, I guess. Any ideas?
Thanks,
- Heath Rezabek
Color / tinting of procedural (fluffy) galaxies?
-
Topic authorheath_rezabek
- Posts: 17
- Joined: 30.12.2006
- With us: 17 years 10 months
- Location: Austin, TX
- t00fri
- Developer
- Posts: 8772
- Joined: 29.03.2002
- Age: 22
- With us: 22 years 8 months
- Location: Hamburg, Germany
Re: Color / tinting of procedural (fluffy) galaxies?
heath_rezabek wrote:I am wondering if there is a simple way to tweak the overall tint of the puffy procedural galaxies from a beige / grey to a bluish hue. Too much time spent in digital planetariums for me, I guess. Any ideas?
Thanks,
- Heath Rezabek
I don't understand which galaxies you mean. Please be more precise. Always specify your Celestia version and the Hubble type of galaxies you are interested in! For me 'puffy' is meaningless given that there are 10000+ galaxies in Celestia.
Do you mean the elliptical ones? They have a more orange color than the spirals. Generally I have derived all colors from true color galaxy imaging. So spirals are always blue in the outer zones as it should be. The ellipticals MUST be more reddish/orange, since they are MUCH older than spirals.
So what is your problem specifically?
Bye Fridger
-
Topic authorheath_rezabek
- Posts: 17
- Joined: 30.12.2006
- With us: 17 years 10 months
- Location: Austin, TX
- t00fri
- Developer
- Posts: 8772
- Joined: 29.03.2002
- Age: 22
- With us: 22 years 8 months
- Location: Hamburg, Germany
heath_rezabek wrote:Ah, I understand.
I understand and respect the official striving for realism, and your views on fantasy space-art I've noted. That said, I would simply like to experiment. Where, then, is the coloration for The Milky Way set?
Respectful thanks,
- Heath
Look in the source code file
src/celengine/galaxy.cpp
in the method
void InitializeForms()
i.e. on line 627...632
The color is set in the HSV color basis and then transformed with the method hsv2rgb to the RGB color space. This has a number of advantages.
That's for the spirals. For elliptical galaxies, the color profile in line 627 is then simply stretched out (with a scale factor) , which makes them more orange. See line 664ff.
Bye Fridger
-
Topic authorheath_rezabek
- Posts: 17
- Joined: 30.12.2006
- With us: 17 years 10 months
- Location: Austin, TX