Compass for Celestia 1.6

All Lua-tools for Celestia in one forum.
Topic author
Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Compass for Celestia 1.6

Post #1by Vincent » 29.11.2009, 14:28

HOW TO INSTALL THE COMPASS ?
1- Unzip the 'compass.zip' package in your 'celestia/' base directory.
    - The 'compass/' dir should go into your 'extras/' dir
    - The 'luahookinit.lua' file should go into your 'celestia/' base dir

2- Add this line to your celestia.cfg file :
Configuration
{
LuaHook "luahookinit.lua" # <-- Line to add
...
HOW TO USE THE COMPASS ?
- The compass, azimuth and elevation are automatically displayed when the observer goes
onto the surface of a planet using the [Ctrl] + [G] keys.
- The longitude and latitude coordinates are displayed for planets (+ Pluto) and planets major moon only,
when the observer is at a distance of 10 times the radius of the reference object or closer.
As to locations and spacecraft, the long/lat values displayed are those of the parent body.
- The display of the celestial coordinates for the current selection can be enabled / disabled using [Ctrl] + [a].
(This feature is only available in the English version with celestial coordinates.)

DOWNLOAD LINKS:
- Compass for Celestia 1.6 (English version):
http://vincent.giangiulio.perso.sfr.fr/ ... ompass.zip
- Compass for Celestia 1.6 (French version):
http://vincent.giangiulio.perso.sfr.fr/ ... ussole.zip
- Compass for Celestia 1.6 + celestial coordinates (English version):
http://vincent.giangiulio.perso.sfr.fr/ ... inates.zip

Enjoy! :)
Last edited by Vincent on 29.11.2009, 14:52, 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

Boux
Posts: 435
Joined: 25.08.2004
With us: 20 years 2 months
Location: Brittany, close to the Ocean

Re: Compass for Celestia 1.6

Post #2by Boux » 29.11.2009, 14:39

Thanks for this nice add-on.
I use it all the time :D
Intel core i7 3770 Ivy Bridge @ 4.4 GHz -16 GB ram - 128 GB SSD cache - AMD Radeon 7970 3 GB o'clocked - Windows 7 64 Ultimate / Linux Kubuntu

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

Re: Compass for Celestia 1.6

Post #3by Vincent » 29.11.2009, 14:48

Boux wrote:Thanks for this nice add-on.
I use it all the time :D
Boux,

You're very welcome! :)
Happy you find it useful.
Please let me know whether it runs fine on your system.
@+
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

Boux
Posts: 435
Joined: 25.08.2004
With us: 20 years 2 months
Location: Brittany, close to the Ocean

Re: Compass for Celestia 1.6

Post #4by Boux » 29.11.2009, 19:08

Vincent wrote:
Boux wrote:Thanks for this nice add-on.
I use it all the time :D
Boux,

You're very welcome! :)
Happy you find it useful.
Please let me know whether it runs fine on your system.

No problem here, Vista 64 and a heavily customized Celestia source code.
My main problem is to keep my own version in phase with the svn updates without making a mess out of it :lol:
Glew and Eigen were a nightmare at some point. But now I think I am in control.
Take care :wink:
Intel core i7 3770 Ivy Bridge @ 4.4 GHz -16 GB ram - 128 GB SSD cache - AMD Radeon 7970 3 GB o'clocked - Windows 7 64 Ultimate / Linux Kubuntu

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Re: Compass for Celestia 1.6

Post #5by t00fri » 29.11.2009, 19:38

Vincent,

nasty little question:

what does your nice compass say if you are getting VERY close to the (magnetic) North pole??
I guess, of course, that your compass just renders the equatorial coordinates and doesn't care about differences of magnetic and true North etc...

Fridger
Image

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

Re: Compass for Celestia 1.6

Post #6by Vincent » 29.11.2009, 20:21

t00fri wrote:Vincent,

nasty little question:

what does your nice compass say if you are getting VERY close to the (magnetic) North pole??
I guess, of course, that your compass just renders the equatorial coordinates and doesn't care about differences of magnetic and true North etc...
Fridger,

Well guessed!
The compass of course points to the geographic north. Integrating the magnetic declination would be quite easy,
but we would need to add the magnetic declination value for every object... And we don't even know these
datas for extrasolar planets. Also, a magnetic compass would be quite useless to give the observer a correct
orientation in Celestia.

Besides, I took care of adding a special case when the observer is precisely located at one geographic pole.
If anybody wants to checking this out, well just download and test... :wink:
@+
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

Avatar
jogad
Posts: 458
Joined: 17.09.2008
With us: 16 years 2 months
Location: Paris France

Re: Compass for Celestia 1.6

Post #7by jogad » 30.11.2009, 17:00

Hello,

Is this a test for a new version of the compass in lua_edu_tools?
It will be great. :D
Because this addon prevents Lua_Edu_Tools to work. Very bad joke! :evil:

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

Re: Compass for Celestia 1.6

Post #8by Vincent » 30.11.2009, 17:39

jogad wrote:Is this a test for a new version of the compass in lua_edu_tools?
It will be great. :D
Because this addon prevents Lua_Edu_Tools to work. Very bad joke! :evil:

Jo?l,

The idea here was to extract the compass from the Lua Edu Tools so as to make it a simplier addon.
I've made this for people who don't need all the Lua Edu Tools stuff, or simply don't want to bother with it.

Of course, all the recent improvements made to this compass have been also applied to the Lua Edu Tools compass,
and will be available in the next release that will come quite shortly. So you shouldn't need to install this version if you're
already using the Lua Tools. Both can't run simultaneously since only one Lua Hook process can be called at a time.
@+
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
Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Re: Compass for Celestia 1.6

Post #9by Vincent » 30.11.2009, 17:42

Boux wrote:No problem here, Vista 64 and a heavily customized Celestia source code.
Boux,

This is great, thanks!
@+
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


Return to “Lua-Tools”