Ive ported the star database to a mySQL table and have set it up so that
you can turn stars on and off by using an SQL statement.
Doing what you say is as easy as typing: SELECT * FROM star WHERE
spectralType ='O' from the mySQL console that ive integrated into
Or imagine this :
SELECT * FROM star WHERE distFromSol BETWEEN 500 AND 600 AND ra BETWEEN 20
I should be able to implement star marking via SQL statements as well.
I just need to polish it a bit and make a new release which is easy to
install im hoping it will be ready by the week.
<claurel@...> To: celestia-developers@...
Sent by: cc:
celestia-developers-admin@... Fax to:
eforge.net Subject: [Celestia-developers] Added spectraltype method for
04/29/03 04:14 PM
I added a spectraltype method to the object class for Lua scripting. The
following script uses it to mark all type O stars:
obs = celestia:getobserver()
nstars = celestia:getstarcount()
i = 0
while i < nstars do
star = celestia:getstar(i)
first, last = string.find(star:spectraltype(), "O", 1, true)
if first == 1 then
i = i + 1
Since it has to iterate over all stars in the database, it takes a few
seconds to run. You can see how closely confined to the galactic disk all
the O stars are . . . I'm excited about the interesting visualizations
that Lua scripting in Celestia will make possible.
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
Celestia-developers mailing list