Terminator

Discussion forum for Celestia developers; topics may only be started by members of the developers group, but anyone can post replies.
Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Re: Terminator

Post #21by Vincent » 11.04.2008, 16:51

chris wrote:We should probably make the terminator color settable as well.
Chris,

The terminator color (and opacity), as well as any visible region mark color, is already settable using:

Code: Select all

earth = celestia:find("Sol/Earth")
sol = celestia:find("Sol")

earth:addreferencemark{type = "visible region", color = "red", opacity = 0.5, target = sol}
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

Topic author
chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Re: Terminator

Post #22by chris » 11.04.2008, 16:56

Vincent wrote:
chris wrote:We should probably make the terminator color settable as well.
Chris,

The terminator color (and opacity), as well as any visible region mark color, is already settable using:
[code]earth = celestia:find("Sol/Earth")
sol = celestia:find("Sol")

earth:addreferencemark{type = "visible region", color = "red", opacity = 0.5, target = sol}

Right--I mean that the default visible region color should be settable.

--Chris

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

Re: Terminator

Post #23by ElChristou » 11.04.2008, 17:01

Vincent wrote:
chris wrote:We should probably make the terminator color settable as well.
Chris,

The terminator color (and opacity), as well as any visible region mark color, is already settable using:

Code: Select all

earth = celestia:find("Sol/Earth")
sol = celestia:find("Sol")

earth:addreferencemark{type = "visible region", color = "red", opacity = 0.5, target = sol}

One would have to define each bodies? no general setting like other elements (via setlinecolor)?
Image

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

Re: Terminator

Post #24by ElChristou » 11.04.2008, 17:04

chris wrote:Here's an interesting usage of visibility circles. The visible regions of GPS satellites are drawn in cyan, and the the visible regions of ISS and Hubble are green:

Interesting! Another display for an eventual contextual Guides submenu... :wink:
Image

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

Re: Terminator

Post #25by Cham » 11.04.2008, 18:58

Thanks guys, the color commands are nicely working. Here are the colors I'm using in my start.celx script :

Code: Select all

celestia:setlinecolor("planetographicgrid", 0.15, 0.525, 0.525)
celestia:setlinecolor("planetequator", 0.4, 0.9, 1.0)
celestia:setlabelcolor("planetographicgrid", 0.2, 0.9, 1.0)
"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: Terminator

Post #26by ElChristou » 11.04.2008, 21:35

Haven't tested your set Cham, but this stuff should stay neutral in the official release; the yellow terminator seems fine at it is related to the sun vector and to the common idea sun = yellow...
The equator in green seems fine to me too cause if I'm not wrong it's the color used in many maps no?
Image

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Re: Terminator

Post #27by Vincent » 12.04.2008, 09:12

ElChristou wrote:One would have to define each bodies? no general setting like other elements (via setlinecolor)?
Chris,

The color field is optional. If not precised, the default yellow color is used.
Then, you're right, there's currently no way to change this default color via setlinecolor.
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

duds26
Posts: 328
Joined: 05.02.2007
Age: 34
With us: 17 years 9 months
Location: Europe

Re: Terminator

Post #28by duds26 » 12.04.2008, 10:12

Cham wrote:
chris wrote:I'm trying to decide what to do about that--should the grid be displayed over the cloud layer when clouds are enabled and on the ground otherwise? Selden and I discussed this issue briefly and agreed that that seemed the best option.

I think it would be much better to see the grid above the clouds and the ground, in all cases.

Also, the grid color used should be a parameter in the start script (as all other colors...), since there may be some confusion between the grid lines and spacecraft trajectories (especially in the case of labels and grid coordinates).

Please make the grid on the ground or over the clouds a setting that can be adjusted, so everybody will be happy.


Return to “Ideas & News”