Ecliptic patch
Posted: 30.05.2008, 22:45
Reposted from the dev list...
As long as I was writing the new grid code, I thought it might be nice
to also be able to view the ecliptic. Since Celestia's coordinate
system is based on the ecliptic and mean equinox of J2000, the code to
draw the ecliptic line is trivial. Here's the patch with code for
drawing the ecliptic and turning it on and off via script:
http://www.celestiaproject.net/~claurel/celest ... ptic.patch
Here's a two-line script to toggle the ecliptic visibility:
--Chris
As long as I was writing the new grid code, I thought it might be nice
to also be able to view the ecliptic. Since Celestia's coordinate
system is based on the ecliptic and mean equinox of J2000, the code to
draw the ecliptic line is trivial. Here's the patch with code for
drawing the ecliptic and turning it on and off via script:
http://www.celestiaproject.net/~claurel/celest ... ptic.patch
Here's a two-line script to toggle the ecliptic visibility:
Code: Select all
enabled = celestia:getrenderflags().ecliptic
celestia:setrenderflags{ecliptic = not enabled}
--Chris