Revised colors for Celestia v1.5.0pre4

All about writing scripts for Celestia in Lua and the .cel system
Avatar
Topic author
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Revised colors for Celestia v1.5.0pre4

Post #1by selden » 28.10.2007, 19:59

Being a prerelease, Celestia v1.5.0pre4 still has problems. One of the new features is that it has a revised color palette for lines and labels. On my Windows system the new "Celestial Grid" and constellation border colors are much too dim.

Fortunately, however, one of the new features is that you can use a CELX script to load your own set of colors.

Here's the script that I'm currently using:
colorset4.celx

Code: Select all

-- Title: Alternate Colors: selection #4

celestia:setlabelcolor("stars",            0.5, 0.5, 1.0)
celestia:setlabelcolor("planets",          0.0, 1.0, 0.0)
celestia:setlabelcolor("moons",            0.0, 0.65, 0.0)
celestia:setlabelcolor("asteroids",        0.7, 0.4, 0.0)
celestia:setlabelcolor("comets",           0.0, 1.0, 1.0)
celestia:setlabelcolor("spacecraft",       0.6, 0.6, 0.6)
celestia:setlabelcolor("locations",        0.24,  0.89,  0.43)
celestia:setlabelcolor("galaxies",         0.1, 0.85, 0.85)
celestia:setlabelcolor("nebulae",          0.1, 0.85, 0.85)
celestia:setlabelcolor("openclusters",     0.1, 0.85, 0.85)
celestia:setlabelcolor("constellations",   0.5, 0.0, 1.0)
celestia:setlabelcolor("equatorialgrid",   0.3, 0.7, 0.7)

celestia:setlinecolor ("starorbits",       0.5, 0.5, 0.8)
celestia:setlinecolor ("planetorbits",     0.0, 0.4, 1.0)
celestia:setlinecolor ("moonorbits",       0.3, 0.2, 0.4)
celestia:setlinecolor ("asteroidorbits",   0.35, 0.2, 0.0)
celestia:setlinecolor ("cometorbits",      0.0, 0.5, 0.5)
celestia:setlinecolor ("spacecraftorbits", 0.4, 0.4, 0.4)
celestia:setlinecolor ("constellations",   0.28, 0.0, 0.66)
celestia:setlinecolor ("boundaries",       0.48, 0.2, 0.22)
celestia:setlinecolor ("equatorialgrid",   0.18, 0.48, 0.48)
Selden

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Post #2by Cham » 28.10.2007, 20:07

Much too dim ? It's actually worst than that with wall projectors : the new default grid and many of the galactic labels are almost completely invisible ! :evil: I've tested the palette on three wall projectors used in schools and colleges.

Here's the palette I'm using :

Code: Select all

-- Title: Alternate color palette

celestia:setlabelcolor("stars",            0.500, 0.500, 1.000)
celestia:setlabelcolor("planets",          0.150, 0.740, 1.000)
celestia:setlabelcolor("moons",            0.450, 0.576, 0.612)
celestia:setlabelcolor("asteroids",        0.460, 0.440, 0.360)
celestia:setlabelcolor("comets",           0.840, 0.620, 0.280)
celestia:setlabelcolor("spacecraft",       0.750, 0.740, 0.670)
celestia:setlabelcolor("locations",        0.220, 0.940, 0.440)
celestia:setlabelcolor("galaxies",         0.190, 0.850, 0.710)
celestia:setlabelcolor("nebulae",          0.850, 0.350, 0.290)
celestia:setlabelcolor("openclusters",     0.620, 0.480, 0.540)
celestia:setlabelcolor("constellations",   0.385, 0.280, 0.567)
celestia:setlabelcolor("equatorialgrid",   0.318, 0.439, 0.361)

celestia:setlinecolor ("starorbits",       0.500, 0.500, 0.800)
celestia:setlinecolor ("planetorbits",     0.000, 0.360, 0.900)
celestia:setlinecolor ("moonorbits",       0.220, 0.330, 0.400)
celestia:setlinecolor ("asteroidorbits",   0.280, 0.240, 0.216)
celestia:setlinecolor ("cometorbits",      0.520, 0.320, 0.128)
celestia:setlinecolor ("spacecraftorbits", 0.360, 0.360, 0.360)
celestia:setlinecolor ("constellations",   0.234, 0.090, 0.576)
celestia:setlinecolor ("boundaries",       0.192, 0.079, 0.151)
celestia:setlinecolor ("equatorialgrid",   0.192, 0.248, 0.184)
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

Re: Revised colors for Celestia v1.5.0pre4

Post #3by ElChristou » 28.10.2007, 21:04

selden wrote:Being a prerelease, Celestia v1.5.0pre4 still has problems. One of the new features is that it has a revised color palette for lines and labels. On my Windows system the new "Celestial Grid" and constellation border colors are much too dim...


Well, sorry to repeat this here, but seems we are in front of some problem of monitor calibration or color profile use.

Selden send me a shot of the result on his config and the result is far from be what I have on screen. So definitively in this condition, I would like to not see my palette for the official release

Since Celestia has no solution to control colors I think it's useless to go again in endless discussions about the color choice.

I suppose the best for now would be to use the old color palette till we find a way to normalize the color profile used by Celestia. This would be also good for textures in general, see Mars example with numerous different tone of textures depending on one taste/or color display...
Image

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Post #4by Cham » 28.10.2007, 21:22

According to all the tests I've made at work, on several PCs, Macs and wall projectors, the monitor's color profile isn't really an issue. The differences I saw were all pretty small. Most colors were about the same on all monitors of various types (LCD, CRT of all sorts of size and quality...).

The fact is, with the new default palette, several items are much too dark and almost invisible.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 1 month

Post #5by BobHegwood » 28.10.2007, 21:25

Selden, just wanted to say THANKS for the script. I did notice the color,
but since you had already gotten to it, I left it alone.

I'll be applying the code here shortly.

Thanks again, Bob
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

Post #6by ElChristou » 28.10.2007, 22:26

Cham wrote:According to all the tests I've made at work, on several PCs, Macs and wall projectors, the monitor's color profile isn't really an issue. The differences I saw were all pretty small. Most colors were about the same on all monitors of various types (LCD, CRT of all sorts of size and quality...).


I use presently a Samsung 19" Widescreen SyncMaster 920nw, it's not a high quality screen but it's a very luminous one; I haven't done a pro calibration because I don't have anymore the use of such fine tuned monitor but the one I use is quite good. The gamma is in the norm, video or photos are just fine. Now despite the settings, IT'S a very luminous monitor and as the palette was tuned on it it's probably why it appear so dim on other config.

What's make me worry a bit more is the difference of tone between Selden's shots and my display... But here, definitively if Celestia don't use a calibrated profile to adjust the display depending on the user monitor I don't really see what to do to define correctly some subtle tones (with vivid colors the problem is not very important...)

This problem will also be very important for some very fine tuned Mie settings for atmospheres. I fear lot of work for whatever results depending on differences in monitors config...

I don't have much time right now, but as soon as possible I'll try to dig the problem; in the meantime let's choose another palette or the old one...
Image

ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 5 months
Location: Rome, ITALY

Re: Revised colors for Celestia v1.5.0pre4

Post #7by ANDREA » 28.10.2007, 23:31

selden wrote:... one of the new features is that you can use a CELX script to load your own set of colors.
Here's the script that I'm currently using:
colorset4.celx......

Sorry Selden, surely I missed some information on the matter during the very long discussions on labels/lines colors, so now I need to put a question:
how can I apply the color celx file?
I mean, if I want the planets orbits be yellow, I'll write
celestia:setlinecolor ("planetorbits", 1.0, 1.0, 0.0)
and save it in Celestia root as e.g. colorsetandrea.celx
Well, and now?
When I launch "The Orrery" show using the icon on my desktop, what have I to do in order to obtain planets orbits in yellow color?
Sorry for my ignorance, beg your pardon. :oops:
Bye

Andrea :D
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Post #8by Cham » 28.10.2007, 23:39

Andrea,

you just need to run the CELX script as any other script, that's all. Define a colors.celx script with your favorite colors in it, as shown above, and use it as any other script.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 5 months
Location: Rome, ITALY

Post #9by ANDREA » 28.10.2007, 23:53

Cham wrote:Andrea, you just need to run the CELX script as any other script, that's all. Define a colors.celx script with your favorite colors in it, as shown above, and use it as any other script.

Cham, I launch Celestia using the desktop icon, that contains this command line:

Code: Select all

C:\Programmi\Celestia-TheOrrery\celestia_1.4.1_patch3.exe  --fullscreen --url extras\Addons\TheOrrery\TheOrrery.cel

So you say that instead of launching this I have FIRST to launch the colors.celx , and SECOND the above command line? :?
Please confirm it, thank you.
Bye

Andrea :D
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

Post #10by ElChristou » 29.10.2007, 00:07

No Andrea, you need to launch Celestia first (as always) then you launch the color script as any other script. The change will be done at the instant.

If you find a color palette that please you enough, you can even edit your start.cel to a new start.celx (you will need to change your cfg file) containing the color settings to have the palette at start up...
Image

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Post #11by Cham » 29.10.2007, 00:08

Andrea,

just start Celestia in the usual way. Then use the colors.celx script. That's alll.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 5 months
Location: Rome, ITALY

Post #12by ANDREA » 29.10.2007, 00:27

ElChristou wrote:No Andrea, you need to launch Celestia first (as always) then you launch the color script as any other script. The change will be done at the instant. If you find a color palette that please you enough, you can even edit your start.cel to a new start.celx (you will need to change your cfg file) containing the color settings to have the palette at start up...
Cham wrote:Andrea, just start Celestia in the usual way. Then use the colors.celx script. That's all....

Thank you Chris and Cham.
Now, if I understand correctly, I launch celestia with my show, and when it opens, I have to click on "Files", "Open Script" and then launch the colours.celx file.
Correct?
Well, if this is the way, I think that there is something wrong in the concept itself.
Why cannot we have the colors given in Selden's colors.celx, with all our preferred variations, in the celestia.cfg file?
Why a complex way to obtain the same result, when in cfg file each one could make all the variations he likes, and have them immediately applied at the start of celestia cel or celx file?
I don't think this is the best way, IMHO, sorry. :cry:
But thank you for your explanation, obviously I'll use it.
Bye

Andrea :D
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

Avatar
Topic author
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #13by selden » 29.10.2007, 00:33

Andrea,

Nobody has written the .cel code to do the the many new .celx functions, so they can't be included in start.cel

However, they could be included in start.celx if you want. You can change celestia.cfg to run start.celx instead of start.cel.
Selden

ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 5 months
Location: Rome, ITALY

Post #14by ANDREA » 29.10.2007, 00:57

selden wrote:Andrea, Nobody has written the .cel code to do the the many new .celx functions, so they can't be included in start.cel
However, they could be included in start.celx if you want. You can change celestia.cfg to run start.celx instead of start.cel.

Thank you Selden, but evidently I'm unable to express clearly what I mean, my bad English fault, sorry. :oops:
I mean that I DON'T want to launch celestia with start.cel file, but with other cel files that are all in the extras-->Addons directory.
So I repeat: why is it so difficult to change the cfg file, adding the labels and lines colors chosing possibility? 8O
This IMHO could be the simplest way, and I'm sure I'm not alone in wishing this.
Bye

Andrea :D
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

Re: Revised colors for Celestia v1.5.0pre4

Post #15by ElChristou » 29.10.2007, 00:58

selden wrote:Here's the script that I'm currently using:


Selden, taking your script as example, I want to illustrate one point that seems important to me, the weight of tones.

A trick to appreciate better this point is to take a screenshot and desaturate the pict.
You can see in the instant if lines are "fighting" each others (same weight) or if their weight is different.
The logic tell me that orbits should be more present than guides in general, but perhaps I'm wrong?

Perhaps this trick can help to determinate the choice of colors and intensity...
Image

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Re: Revised colors for Celestia v1.5.0pre4

Post #16by Cham » 29.10.2007, 01:08

ElChristou wrote:You can see in the instant if lines are "fighting" each others (same weight) or if their weight is different.
The logic tell me that orbits should be more present than guides in general, but perhaps I'm wrong?


ELChristou,

Celestia isn't a paint or a picture viewer program. The shades and "weight" depend on the uses. Very often, the planet orbits (as an example) are not what really matters. While leaving ON the orbits, some may want to clearly see the constellations. So the weight you're talking about is extremely dependant on the context, not on some "static layers" concept (planets on the foreground and stars in the back, etc). Sometimes, the celestial grid becomes what is really important to locate some object, so its labels must be clearly readable. They aren't just "decoration" on the background.

Celestia is also used with a projector in planetariums, conference talks, classroom, etc. So every element must be readable.
Last edited by Cham on 29.10.2007, 01:13, edited 1 time in total.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

Post #17by ElChristou » 29.10.2007, 01:10

ANDREA wrote:I mean that I DON'T want to launch celestia with start.cel file, but with other cel files that are all in the extras-->Addons directory.
So I repeat: why is it so difficult to change the cfg file, adding the labels and lines colors chosing possibility? 8O


I think Andrea mean it would be logical to have such color setting into the cfg file...
Now the cool think of such scripted system is that you can change on the fly the color palette without having to restart Celestia...

Andrea, for your show, you start Celestia with a specific cel script as start.cel?
Then you can always change your script in a .celx with first the color settings, something like:

Code: Select all

celestia:setlabelcolor("
...
...
...

CEL([[

Your old cel script here

]])
Image

ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 5 months
Location: Rome, ITALY

Post #18by ANDREA » 29.10.2007, 01:23

[quote="ElChristou"]
I think Andrea mean it would be logical to have such color setting into the cfg file...
Andrea, for your show, you start Celestia with a specific cel script as start.cel?
Then you can always change your script in a .celx with first the color settings, something like:

Code: Select all

celestia:setlabelcolor("
...
...
...

CEL([[

Your old cel script here

]])

Both replies are yes.
Regarding your suggestion, Chris, this looks very interesting, I forgot the possibility to insert cel commands in a celx file. :oops:
Here is very late now (2:20 AM LT), so I'll try it tomorrow.
Bye and thank you very much.

Andrea :D
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

Re: Revised colors for Celestia v1.5.0pre4

Post #19by ElChristou » 29.10.2007, 01:24

Cham wrote:
ElChristou wrote:You can see in the instant if lines are "fighting" each others (same weight) or if their weight is different.
The logic tell me that orbits should be more present than guides in general, but perhaps I'm wrong?

ELChristou,

Celestia isn't a paint or a picture viewer program. The shades and "weight" depend on the uses. Very often, the planet orbits (as an example) are not what really matters. While leaving ON the orbits, some may want to see clearly the constellations. So the weight is extremely dependant on the context, not on some "static layers" concept (planets on the foreground and stars in the back, etc). Sometimes, the celestial grid becomes what is really important to locate some object, so its labels must be clearly readable. They aren't just "decoration" on the background.


Who talk of "decoration"? :wink:
The purpose of constellations is to help in finding stars, no?
The purpose of boundaries or of the Celestial grid is also to help in locating stars or any other object, right?
Now what do you look at? what is more important? the line that will help you or the object that you are searching?
Perso I think the guides MUST be visible to do their job but not at the cost of the objects themselves.
Since 1.5pre4 we are able to determinate clearly that guides are only guides and to me that means that they should not compete too much with a dim galaxy or simply with the orbit of the comet I'm following...
Now I do agree that labels of the grid must be visible of course.
Image

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Re: Revised colors for Celestia v1.5.0pre4

Post #20by Cham » 29.10.2007, 01:40

ElChristou wrote:Now what do you look at? what is more important? the line that will help you or the object that you are searching?

Both ! The stars and the grid don't compete, they are complementary. When we need both at the same time, both must be clearly visible. Especially on the wall, in front of a large audience. And also on a simple PC screen. I'm not asking to have a vivid grid, but a visible one nonetheless. It's a matter of compromise.

And there happens some cases where the grid itself may become more important than the objects ! (when we have to explain what are the conventions used for the celestial coordinates, or to show all the various coordinates systems, for example).

ElChristou wrote:The purpose of constellations is to help in finding stars, no?


Not necessarily. The constellations may be seen as "objects" in their own right, with some historical signification (mythology, religion, etc). Sometimes, the chart itself (grid, constellation lines, borders) may be more interesting than the objects (stars) it's supposed to map.

The constellations borders are very much alike the countries borders on a terrestrial globe : In some topics, they may be more important that the countries details enclosed inside the borders.

EDIT : This reminds me a feature that could be fun, for the celestial grid itself : When you press the ";" key, the grid appears smoothly with some fade-in effect. When you turn it OFF, it goes away with a smooth fade-out effect, like in Stellarium.
Last edited by Cham on 29.10.2007, 02:14, edited 1 time in total.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"


Return to “Scripting”