Ecliptic patch

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: 22 years 9 months
Location: Seattle, Washington, USA

Ecliptic patch

Post #1by chris » 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:

Code: Select all

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


--Chris

whitejohn29
Posts: 1
Joined: 05.07.2008
With us: 16 years 4 months

Re: Ecliptic patch

Post #2by whitejohn29 » 07.07.2008, 14:32

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}

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

Re: Ecliptic patch

Post #3by ElChristou » 07.07.2008, 14:38

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?
Image


Return to “Ideas & News”