Page 1 of 1

Ecliptic patch

Posted: 30.05.2008, 22:45
by chris
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:

Code: Select all

enabled = celestia:getrenderflags().ecliptic
celestia:setrenderflags{ecliptic = not enabled}


--Chris

Re: Ecliptic patch

Posted: 07.07.2008, 14:32
by whitejohn29
As I understand the following patch should be turned on and off with the following script:

enabled = celestia:getrenderflags().ecliptic
celestia:setrenderflags{ecliptic = not enabled}

Re: Ecliptic patch

Posted: 07.07.2008, 14:38
by ElChristou
whitejohn29 wrote:As I understand the following patch should be turned on and off with the following script:

enabled = celestia:getrenderflags().ecliptic
celestia:setrenderflags{ecliptic = not enabled}

Humm... Are you trolling here?