Possible Enhancement for the Solar System Browser

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
Guckytos
Posts: 439
Joined: 01.06.2004
With us: 16 years 6 months
Location: Germany

Possible Enhancement for the Solar System Browser

Post #1by Guckytos » 23.06.2009, 16:18

While playing around with the Solar System Browser I had an idea for a sensible enhancement (IMHO).

The "problem" I was facing was that in the Solar System Browser ALL objects are listed, even if (in case of satellites, probes, stations) their time has already ended.

For example, you can see in the browser the Mir, but if you select it and make "GoTo" you end up in the orbit and see nothing. To now finally see the Mir you have either to know when it was in orbit or look it up in an external program or open the SSC and look there (and probably then convert into another date format).

As these objects have already starting and/or ending dates in the SSC, why not use this data to show it in the solar system browser, together with a button that allows to set the time either to "Starting" or Ending".

This would greatly improve the usability of Celestia.

Just my 2 cents.

Regards,

Guckytos

Avatar
Adirondack M
Posts: 525
Joined: 01.03.2004
With us: 16 years 9 months

Re: Possible Enhancement for the Solar System Browser

Post #2by Adirondack » 02.07.2009, 10:04

Christian,

there was a similar feature in Vincent's first LuaEduTools (for 1.4.1).
When you did select e.g. 'Mir', Celestia (with the Lua Tools installed) automatically
set the correct time to display the station.
Maybe this feature can be resurrected in one or another way... Vince?

Adirondack
We all live under the same sky, but we do not have the same horizon. (K. Adenauer)
The horizon of some people is a circle with the radius zero - and they call it their point of view. (A. Einstein)

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

Re: Possible Enhancement for the Solar System Browser

Post #3by Vincent » 03.07.2009, 08:07

Adirondack wrote:there was a similar feature in Vincent's first LuaEduTools (for 1.4.1).
When you did select e.g. 'Mir', Celestia (with the Lua Tools installed) automatically
set the correct time to display the station.
Maybe this feature can be resurrected in one or another way... Vince?
Ulrich, Christian,

Actually, this feature is already available in the qt-4 version.
For those who can't build the qt-4 version, the following script bounds the 'D' key
to go to the selection lifespan start date, if it exists.

Code: Select all

-- Title: Goto lifespan start date

function GotoStartDate()
    sel = celestia:getselection()
    t0 = sel:getinfo().lifespanStart
    if t0 and math.abs(t0) > 1e-10 then
        celestia:settime(t0)
    end
end

keyhandlers =
{
   ["d"] = GotoStartDate,
   ["D"] = GotoStartDate
}

function handlekey(k)
    handler = keyhandlers[k.char]
    if handler ~= nil then
        handler()
        return true
    else
        return false
    end
end

celestia:registereventhandler("key", handlekey)

[edit]Fixed typo in script code[/edit]
Last edited by Vincent on 04.07.2009, 08:24, 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

Avatar
Adirondack M
Posts: 525
Joined: 01.03.2004
With us: 16 years 9 months

Re: Possible Enhancement for the Solar System Browser

Post #4by Adirondack » 03.07.2009, 22:01

Vincent wrote:Actually, this feature is already available in the qt-4 version.
Yep. But I thought, that we maybe could add it to the LuaEduTools (1.2) again since the request is current.

Adirondack
We all live under the same sky, but we do not have the same horizon. (K. Adenauer)

The horizon of some people is a circle with the radius zero - and they call it their point of view. (A. Einstein)

Topic author
Guckytos
Posts: 439
Joined: 01.06.2004
With us: 16 years 6 months
Location: Germany

Re: Possible Enhancement for the Solar System Browser

Post #5by Guckytos » 05.07.2009, 06:35

Hi Vincent,

good to hear that the next big version will have such a useful feature. Makes Celestia a lot more useable, if trying to get to a specific mission for a spacecraft.

Thanks for the script. Let me guess, it's .CELX.

Best regards,

Guckytos

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

Re: Possible Enhancement for the Solar System Browser

Post #6by Vincent » 14.07.2009, 14:33

Adirondack wrote:there was a similar feature in Vincent's first LuaEduTools (for 1.4.1).
When you did select e.g. 'Mir', Celestia (with the Lua Tools installed) automatically
set the correct time to display the station.
Maybe this feature can be resurrected in one or another way... Vince?
I've finally added some 'goto start/end date' buttons for spacecraft into the Solar System Browser of the Lua Edu Tools.
See here for more details: viewtopic.php?f=11&t=13162&p=116490#p116490
@+
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 “Development”

Who is online