Compass for Celestia 1.6

Post requests, images, descriptions and reports about work in progress here.
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 » 11.10.2009, 12:37

Following Martin's suggestion, I've extracted the compass from the Lua Edu Tools 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... :wink:

> Below are the download links for both the English and the French version of the compass.

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 when the observer is at a distance of
10 times the radius of the reference object or closer.

Enjoy! :)
Last edited by Vincent on 29.11.2009, 13:56, edited 3 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

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Re: Compass for Celestia 1.6

Post #2by Cham » 11.10.2009, 14:48

Thanks a LOT for this impressive work, Vincent ! :D

This is an ABSOLUTE MUST HAVE addon. IMHO, this is one of these things that should be included in the official code.
"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!"

Avatar
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 7 months
Location: Thyrrenian sea

Re: Compass for Celestia 1.6

Post #3by Fenerit » 11.10.2009, 15:02

Thanks, Vincent! 8) Hope that this isn't the beginning of a LUATOOLS abandon, though. :wink:
Never at rest.
Massimo

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Re: Compass for Celestia 1.6

Post #4by Cham » 11.10.2009, 15:15

Fenerit wrote:Thanks, Vincent! 8) Hope that this isn't the beginning of a LUATOOLS abandon, though. :wink:

The LuaTools was the first Celestia "plug-in" for Celestia (a kind of super Photoshop-like plug-in, as the KPT Tools). IMO, its "problem" is it's too ambitious and needs a complicated configuration from its user. For me, it is just too much. It may be a good alternative to see many smaller plug-ins for Celestia (without any configuration to do). So this compass plug-in is the first of its kind for Celestia.

So we now have "layers" and "multi-layers" (invisible addons with a toggle CELX switch), and now the "plug-ins" ! :mrgreen:
"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!"

Avatar
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 7 months
Location: Thyrrenian sea

Re: Compass for Celestia 1.6

Post #5by Fenerit » 11.10.2009, 15:25

Cham wrote:
Fenerit wrote:Thanks, Vincent! 8) Hope that this isn't the beginning of a LUATOOLS abandon, though. :wink:

The LuaTools was the first Celestia "plug-in" for Celestia (a kind of super Photoshop-like plug-in, as the KPT Tools). IMO, its "problem" is it's too ambitious and needs a complicated configuration from its user. For me, it is just too much. It may be a good alternative to see many smaller plug-ins for Celestia (without any configuration to do). So this compass plug-in is the first of its kind for Celestia.

So we now have "layers" and "multi-layers" (invisible addons with a toggle CELX switch), and now the "plug-ins" ! :mrgreen:

Yeah! I wonder whether Vincent could say more about a Lua project of a Lua library for forms, buttons, tabs etc called VCLua:
http://luaforge.net/projects/vclua/
which seem ready for both Win and Linux (probably also Mac will be added). With this kind of library we could to have more "buttons to press" for somethings... :?:
Never at rest.
Massimo

BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 1 month

Re: Compass for Celestia 1.6

Post #6by BobHegwood » 11.10.2009, 16:00

Just wanted to add my thanks for this add-on...
Excellent addition (and instructions for the Brain-Dead :) )

Thanks again, Bob
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN

Avatar
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 7 months
Location: Thyrrenian sea

Re: Compass for Celestia 1.6

Post #7by Fenerit » 12.10.2009, 13:08

Cham wrote:
Fenerit wrote:Thanks, Vincent! 8) Hope that this isn't the beginning of a LUATOOLS abandon, though. :wink:

The LuaTools was the first Celestia "plug-in" for Celestia (a kind of super Photoshop-like plug-in, as the KPT Tools). IMO, its "problem" is it's too ambitious and needs a complicated configuration from its user. For me, it is just too much. It may be a good alternative to see many smaller plug-ins for Celestia (without any configuration to do). So this compass plug-in is the first of its kind for Celestia.

So we now have "layers" and "multi-layers" (invisible addons with a toggle CELX switch), and now the "plug-ins" ! :mrgreen:

Mmmm... Hey Cham, I do not think that this is the right method for plugins. The lua_edu_tools.lua file will ever be different, and mutually does exclude each one new. Otherwise the main LUATOOls might to works, instead they doesn't work at all when this compass' add-on is installed. :|
Never at rest.
Massimo

Teto
Posts: 19
Joined: 25.03.2009
With us: 15 years 7 months

Re: Compass for Celestia 1.6

Post #8by Teto » 18.10.2009, 15:26

Great job! I like it!

We can be "on" a planet and know where is the north, now... :mrgreen:

I vote for this! (Maybe inside the next distribution?)
Teto.

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 » 03.11.2009, 14:10

Here's another version of the compass with an extra display of the celestial coordinates for the current selection.
The display of coordinates can be toggled on/off using Ctrl+a.
Last edited by Vincent on 29.11.2009, 13:51, 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

Avatar
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 7 months
Location: Thyrrenian sea

Re: Compass for Celestia 1.6

Post #10by Fenerit » 03.11.2009, 22:22

Will these new features also embedded in LUAEDUTOOLS' compass? :twisted:
Never at rest.
Massimo

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Re: Compass for Celestia 1.6

Post #11by Cham » 05.11.2009, 22:17

I just tested the English compass on a fresh official Celestia 1.6.0, on a MacBook Pro 15" with OS X Snow-Leopard (while testing Celestia in an Apple store), and it's working correctly! :D

So I suspect that the users which are experiencing a problem with Snow-Leopard and the compass didn't installed the plug-in correctly.

EDIT : The coordinates are working right too on Snow-Leopard, by the way...

Vincent : There's a small spacing problem with the coordinates from your plug-in, as published here : the coordinates are a bit too close to the standard coordinates given in the HUD. Of course, there isn't any problem of this kind with my personal version (coordinates centered verticaly).
"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
Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Re: Compass for Celestia 1.6

Post #12by Vincent » 07.11.2009, 09:49

Cham wrote:I just tested the English compass on a fresh official Celestia 1.6.0, on a MacBook Pro 15" with OS X Snow-Leopard (while testing Celestia in an Apple store), and it's working correctly! :D
Martin,

Thanks a lot! That is good news.
Still, it would be good to find the cause of the problem ?ivind is exepriencing on his system.

Cham wrote:Vincent : There's a small spacing problem with the coordinates from your plug-in, as published here : the coordinates are a bit too close to the standard coordinates given in the HUD. Of course, there isn't any problem of this kind with my personal version (coordinates centered verticaly).
Yes, that is wanted. After sending you the French version, I chose to place the coordinates just below the standard Selection information in the English version.

Fenerit wrote:Will these new features also embedded in LUAEDUTOOLS' compass? :twisted:
Massimo,

The display of Equatorial Coordinates (Ra / Dec) is already part of the Tools.
As you suggested, I'll add the Ecliptic and Galactic coordinates display as well.
@+
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 #13by Vincent » 08.11.2009, 18:45

I've made the following changes to the compass:
- Disabled the compass for DSO's
- Fixed inverted longitude for bodies with retrograde rotation (Venus, Uranus and Pluto)
@+
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 #14by Vincent » 29.11.2009, 13:47

New update:
- Made the long/lat values match the values read onto the planetographic grid for oblate spheroid bodies.
- Made the compass enabled only for planets (+ Pluto) and planets' major moons.
As to locations and spacecraft, the long/lat values displayed are those of the parent body.

This addon is now considered as finished. An annoucement with download links has been added
to the "Add-on releases" forum: viewtopic.php?f=23&t=15564
Last edited by Vincent on 29.11.2009, 14:29, edited 1 time 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

BobHegwood
Posts: 1803
Joined: 12.10.2007
With us: 17 years 1 month

Re: Compass for Celestia 1.6

Post #15by BobHegwood » 29.11.2009, 14:22

Thanks very much for the updates Vincent...
Will happily apply these shortly. :D

Thanks, Brain-Dead
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN

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 #16by Vincent » 29.11.2009, 14:45

BobHegwood wrote:Thanks very much for the updates Vincent...
Will happily apply these shortly. :D
Bob,

You're welcome. :)
Please let me know how it works 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


Return to “Add-on development”