Feature Request: Object Filters for Target Auto-Completion

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
TimMc
Posts: 48
Joined: 09.03.2004
With us: 20 years 8 months
Location: Danbury, London, U.K.

Feature Request: Object Filters for Target Auto-Completion

Post #1by TimMc » 11.03.2004, 09:02

It would be nice to be able to specify classes of objects to display in the auto-complete Target name selection field that comes up after hitting the [Enter] key from the main screen in Celestia. E.g. The filter could be set to "Asteroids", and only asteroid targets then show up when you call up the Auto-complete target selection field. Other categories could include "Galaxies" (or "Nebula" or "Deep Space Objects"), "Planets", "Stars" (+ filters for sub-classes such as spectral class? e.g. "Stars G2 V"), "Spacecraft", "Moons".

Such a facility would allow more educational exploring of the Universe.

Tim Mc

don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 4 months
Location: Colorado, USA (7000 ft)

Post #2by don » 12.03.2004, 03:32

Howdy Tim,

Sounds like a good idea.

How about implementing it (somewhat) via a celx script, until a real implementation can be done?

The user selects from a list (such as you proposed) and then the script "marks" all of the requested items Celestia has in it's database. Then, the script ends and the user can select and travel to the marked objects.

Just an idea. :)

Cheers,

-Don G.

Topic author
TimMc
Posts: 48
Joined: 09.03.2004
With us: 20 years 8 months
Location: Danbury, London, U.K.

Possible celx script to classify targets

Post #3by TimMc » 12.03.2004, 11:43

Don

I'll put your suggestion on my TODO list. It might take a while to surface unless I give up my day job!

I still look forward to an embedded facility in Celestia.

Regards, Tim Mc

don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 4 months
Location: Colorado, USA (7000 ft)

Post #4by don » 12.03.2004, 21:04

Hi Tim,

The idea came from an example celx script in the CVS repository, that marks stars with a specific spectral type (below). That might give you some ideas. :)

Code: Select all

function mark_spectraltype(x)
    local obs = celestia:getobserver()
    local nstars = celestia:getstarcount()
    local i = 0
    while i < nstars do
        star = celestia:getstar(i)
        first, last = string.find(star:spectraltype(), x, 1, true)
        if first == 1 then
            star:mark("#ff99ff", "triangle", 10)
        end
        i = i + 1
    end
end

spectral = "O"
celestia:flash("Marking all " .. spectral .. " stars.")
mark_spectraltype(spectral)
-Don G.
My Celestia Scripting Resources page

Avatar: Total Lunar Eclipse from our back yard, Oct 2004. Panasonic FZ1 digital camera (no telescope), 36X digital zoom, 8 second exposure at f6.5.

don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 4 months
Location: Colorado, USA (7000 ft)

Re: Possible celx script to classify targets

Post #5by don » 12.03.2004, 21:06

TimMc wrote:I still look forward to an embedded facility in Celestia.

Yes, by all means! :)
-Don G.

My Celestia Scripting Resources page



Avatar: Total Lunar Eclipse from our back yard, Oct 2004. Panasonic FZ1 digital camera (no telescope), 36X digital zoom, 8 second exposure at f6.5.


Return to “Development”