Terminator

Discussion forum for Celestia developers; topics may only be started by members of the developers group, but anyone can post replies.
Topic author
chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 23 years
Location: Seattle, Washington, USA

Terminator

Post #1by chris » 09.04.2008, 02:12

(Not the movie . . .)

The terminator is the boundary between the lit and unlit hemispheres of a planet. A new reference mark lets you precisely where it is:

Image

The reference mark is only appropriate for ellipsoidal bodies; it won't work for irregular bodies such as asteroids. The current code also assumes that the sun is a point. On hot Jupiters, where the star fills a large region of the sky, there can be significant area on the 'dark' side of the terminator where some portion of the star is still visible.

There are a couple interesting places to turn on the terminator mark. One is Mercury: enabling both the planetographic grid and the terminator, and then accelerating time will make it clear just how odd the day-night cycle on this planet is. Relative to the grid, the terminator every so often appears to do a slight 'bounce': this is when the Mercury's 3:2 spin-orbit resonance produces a double sunrise for appropriately located Mercurians.

Another interesting spot is 2003 EL61. Its dramatically non-spherical shape means that its terminator is not the usual circle.

--Chris

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

Re: Terminator

Post #2by ElChristou » 09.04.2008, 11:03

It is in SVN already? One can display only the terminator?
Image

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

Re: Terminator

Post #3by selden » 09.04.2008, 12:20

yes and yes.
Selden

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

Re: Terminator

Post #4by ElChristou » 09.04.2008, 16:00

selden wrote:yes and yes.

:lol:
Nice! Tx!
Image

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

Re: Terminator

Post #5by ElChristou » 09.04.2008, 16:26

:x Got an error in celx_frame.cpp, Command /usr/bin/gcc-4.0 failed with exit code 1...
Image

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 20 years
Location: Nancy, France

Re: Terminator

Post #6by Vincent » 09.04.2008, 17:01

Chris,

This is a great educational addition to Celestia, thanks ! :)

I got a link error when compiling with Visual C++ 2005 Express Edition and makerelease.
I fixed it by adding visibleregion.obj to the list of OBJS in engine.mak.
@+
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: 35
With us: 17 years 11 months
Location: Europe

Re: Terminator

Post #7by duds26 » 10.04.2008, 16:42

A better name would be Illumination boundary instead of terminator.
You see immediatelly what it is by its name.

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

Re: Terminator

Post #8by chris » 10.04.2008, 17:07

duds26 wrote:A better name would be Illumination boundary instead of terminator.
You see immediatelly what it is by its name.

Terminator is the the widely used term, and the appropriate name to use in Celestia:

http://en.wikipedia.org/wiki/Terminator_%28solar%29

(or terminateur in French: http://fr.wikipedia.org/wiki/Terminateur)

--Chris

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

Re: Terminator

Post #9by ElChristou » 10.04.2008, 19:36

ElChristou wrote::x Got an error in celx_frame.cpp, Command /usr/bin/gcc-4.0 failed with exit code 1...

Today svn just build fine. Tx for the fix.

No smooth lines for both terminator and planetographic grid?
One can also display planet grid and terminator on spacecraft; is this useful? (if yes, the term should change depending on the selected object ("planetographic" grid for a spacecraft... bof...))

Last remark, the contextual menu now display 6 options that could perhaps been displayed in a "Guides" submenu to make it less obtrusive... (and perhaps then, mark/unmark could also go under Guides...)
Image

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

Re: Terminator

Post #10by ElChristou » 10.04.2008, 19:45

duds26 wrote:A better name would be Illumination boundary instead of terminator.
You see immediatelly what it is by its name.

H?h?... well sorry but if you talk about the terminator of a planet, perso I see immediately what you are talking about... Let's use the existing terms when they exist! :wink:
Image

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

Re: Terminator

Post #11by chris » 11.04.2008, 00:21

ElChristou wrote:
ElChristou wrote::x Got an error in celx_frame.cpp, Command /usr/bin/gcc-4.0 failed with exit code 1...

Today svn just build fine. Tx for the fix.

No smooth lines for both terminator and planetographic grid?
One can also display planet grid and terminator on spacecraft; is this useful? (if yes, the term should change depending on the selected object ("planetographic" grid for a spacecraft... bof...))

It's easy enough the add line smoothing, but there was talking about whether it was actually an improvement. I usually run with full-scene antialiasing on and smooth lines off. I can turn on line smoothing though, and you can see which you like better.

I don't know if the grid is useful for spacecraft; it is interesting to enable it when body axes are turned on. Certainly, the name should change :) The terminator should probably be disabled for any non-ellipsoidal object--not just spacecraft, but asteroids as well.

Last remark, the contextual menu now display 6 options that could perhaps been displayed in a "Guides" submenu to make it less obtrusive... (and perhaps then, mark/unmark could also go under Guides...)

Agreed. In the other versions of Celestia, there is a reference marks submenu. The KDE and Qt4 versions have another submenu for markers that lets you select the marker shape.

--Chris

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

Re: Terminator

Post #12by chris » 11.04.2008, 00:22

I modified the terminator and planetographic grid reference marks so that there's less of a gap between the lines and the planet surface. I think that this improves their appearance significantly.

--Chris

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

Re: Terminator

Post #13by ElChristou » 11.04.2008, 01:28

chris wrote:It's easy enough the add line smoothing, but there was talking about whether it was actually an improvement. I usually run with full-scene antialiasing on and smooth lines off. I can turn on line smoothing though, and you can see which you like better...

Would be cool for those who don't have full-scene AA; I suppose we are not a lot but... :wink:
Image

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years
Location: Montreal

Re: Terminator

Post #14by Cham » 11.04.2008, 02:14

The planetary grid needs some refinements. It's still crude at close range (too much polygonal feel), and the degree symbol should be shown for the coordinates.

There's also some 'interferences' between the clouds layer (in the case of Earth) and the terminator circle and the planetary grid.
"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!"

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

Re: Terminator

Post #15by chris » 11.04.2008, 02:28

Cham wrote:The planetary grid needs some refinements. It's still crude at close range (too much polygonal feel), and the degree symbol should be shown for the coordinates.

I disagree about the degree symbol--it would just add visual clutter when it's already quite clear what the numbers indicate. I'm planning on adding more segments to the grid at close range, but should probably implement some sort of culling strategy in order to avoid drawing a lot of unseen line segments.

There's also some 'interferences' between the clouds layer (in the case of Earth) and the terminator circle and the planetary grid.

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.

--Chris

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years
Location: Montreal

Re: Terminator

Post #16by Cham » 11.04.2008, 02:37

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).
"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!"

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

Re: Terminator

Post #17by chris » 11.04.2008, 05:41

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).

Setting the color is already possible with Vincent's latest celx checkin.

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:

visregion.png


(There's no UI for this right now; I had to write a very simple script. For ISS and Hubble, this is all that I had to do:

Code: Select all

earth = celestia:find("Sol/Earth")
iss = celestia:find("Sol/Earth/ISS")
hubble = celestia:find("Sol/Earth/Hubble")

earth:addreferencemark{type = "visible region", color = "green", target = iss, tag = "vr iss" }
earth:addreferencemark{type = "visible region", color = "green", target = hubble, tag = "vr hubble" }


Credit goes to Vincent for implementing the celx commands to add and remove reference marks.

--Chris

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years
Location: Montreal

Re: Terminator

Post #18by Cham » 11.04.2008, 16:34

chris wrote:Setting the color is already possible with Vincent's latest celx checkin.

Chris, please, could you give the proper celx command to change the color of the planetary grid ?
"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!"

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 20 years
Location: Nancy, France

Re: Terminator

Post #19by Vincent » 11.04.2008, 16:39

Cham wrote:
chris wrote:Setting the color is already possible with Vincent's latest celx checkin.

Chris, please, could you give the proper celx command to change the color of the planetary grid ?
Martin,

The colors of the planetographic grid elements can be changed using the setlinecolor/setlabelcolor methods:

Code: Select all

sel = celestia:getselection()

celestia:setlinecolor("planetographicgrid", 0.35, 0.35, 0)
celestia:setlinecolor("planetequator", 0.7, 0.5, 0)
celestia:setlabelcolor("planetographicgrid", 0.6, 0.4, 0)

sel:addreferencemark{type = "planetographic grid"}
Last edited by Vincent on 11.04.2008, 16:47, edited 2 times in total.
@+
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: 23 years
Location: Seattle, Washington, USA

Re: Terminator

Post #20by chris » 11.04.2008, 16:45

Cham wrote:
chris wrote:Setting the color is already possible with Vincent's latest celx checkin.

Chris, please, could you give the proper celx command to change the color of the planetary grid ?

setlinecolor and setlabelcolor, just as for other colors.

I don't advocate actually using these particular colors, but here's an example:

Code: Select all

celestia:setlinecolor("planetographicgrid", 0.5, 0.5, 0.8)
celestia:setlinecolor("planetequator", 0.9, 0.9, 1.0)
celestia:setlabelcolor("planetographicgrid", 0.0, 1.0, 1.0)


We should probably make the terminator color settable as well.

--Chris


Return to “Ideas & News”