Script Menu

Discussion forum for Celestia developers; topics may only be started by members of the developers group, but anyone can post replies.
Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #41by t00fri » 31.05.2007, 19:25

Christophe wrote:
t00fri wrote:Is it really true that Linux is now 'behind' as to the script menue...Wow.

Gna gna gna...

But the Windows GUI uses the main script directory which is normaly not the one used by a Linux user, so the adaptation would require a bit of refinement, may be scanning all the extrasdirs for scripts? or adding a scriptdir config option?


The latter seems most sensible from my modest point of view ;-) . I guess you don't want to implement "Beagle's tail" into Celestia ;-)

Bye Fridger
Image

Avatar
LordFerret M
Posts: 737
Joined: 24.08.2006
Age: 68
With us: 18 years 3 months
Location: NJ USA

Post #42by LordFerret » 31.05.2007, 22:56

Does this mean only the one meta-tag will be available (Title) ?

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

Post #43by Cham » 31.05.2007, 23:13

Chris,

can you remap the "D" shortcut to the nebulae ? Currently, it's an ackward shortcut "^" which doesn't even work on my keyboard. And since the demo script now belongs to the new script menu, I suggest to use the "D" key for the nebulae. Or better : use "N" for nebulae, and "D" for the spacecraft labels (since "N" doesn't make any sense for "spacecraft" anyway).
"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!"

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

Post #44by Vincent » 09.06.2007, 21:59

chris wrote:Anyone want to volunteer to write the new official demo scripts? I think that the current one is very dated.
ElChristou wrote:What about something simple, no text, just to show what Celestia is able to do?

The demo could star near earth on dark side (kind what's the hell is this? all is dark, nothing to see?), then when the Sun appears, a simple, long zoom out, passing near various bodies: sapcecraft (ISS), asteroid, planets, stars (with exo planets) then Milky Way, local group, ending on a general view of the deepsky catalog, a few seconds of rotation, then a quick come back to earth and stop...

What about the following script as a start ?
http://vincent.gian.club.fr/celestia/fr ... axies.celx

Then, we could add ElChristou's "Dark Side scenario" ( :wink: ) at the beginning of the script, and switch some labels on when needed...
@+
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

ElChristou
Developer
Posts: 3776
Joined: 04.02.2005
With us: 19 years 9 months

Post #45by ElChristou » 09.06.2007, 22:37

Vincent wrote:What about the following script as a start ?
http://vincent.gian.club.fr/celestia/fr ... axies.celx

Then, we could add ElChristou's "Dark Side scenario" ( :wink: ) at the beginning of the script, and switch some labels on when needed...


Vince, Celestia need something a bit more sophisticated; I suppose it would be nice to see at least an asteroid (slow motion when passing near it), another planet of the SS, a binary system whould be also nice, why not an exosystem etc... to achieve this a simple zoom seems a bit poor :?
Image

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

Post #46by Vincent » 10.06.2007, 08:12

ElChristou wrote:Vince, Celestia need something a bit more sophisticated; I suppose it would be nice to see at least an asteroid (slow motion when passing near it), another planet of the SS, a binary system whould be also nice, why not an exosystem etc... to achieve this a simple zoom seems a bit poor :?

OK Chris. Anyway, this was just a first starting up. Just wanted to know if everybody here agreed with this kind of movement from the Earth to a view of the large scale universe. I'll try to add what you suggested. Does anybody here have an objection with this kind of scenario ?
@+
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
dirkpitt
Developer
Posts: 674
Joined: 24.10.2004
With us: 20 years 1 month

Post #47by dirkpitt » 10.06.2007, 09:22

This idea is on the right track, and as ElChristou says it could be made better with some flybys of planets or other interesting objects along the way. Now if only there was a way to record and playback a non-linear motion path with scripts... is this possible?

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

Post #48by Vincent » 10.06.2007, 11:21

dirkpitt wrote:Now if only there was a way to record and playback a non-linear motion path with scripts... is this possible?

DW,

Yes we can do that.
In the script, the speed is increasing linearly with the distance from Earth, which gives a constant acceleration motion:

Code: Select all

function move_obs(dist_limit)
   local dist = get_dist_to_earth()
   local speed = 0
   local speedfactor = 1   -- change this value to set the travelling speed
   while dist < dist_limit do
         dist = get_dist_to_earth()
         local speed = - dist * 5e-8 * speedfactor
         local obs = celestia:getobserver()
         obs:setspeed(speed)
         wait (0)
   end
end


We can easily change the move_obs function to get, as you suggested, a non-constant accelerated motion.
@+
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
dirkpitt
Developer
Posts: 674
Joined: 24.10.2004
With us: 20 years 1 month

Post #49by dirkpitt » 10.06.2007, 14:44

Actually what I meant was not the speed, but recording motion along a path that's not necessarily a straight line or a regular orbit. Think of it as creating a sort of ssc path which records the movements you take inside of Celestia.

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

Post #50by Vincent » 10.06.2007, 17:47

dirkpitt wrote:Actually what I meant was not the speed, but recording motion along a path that's not necessarily a straight line or a regular orbit. Think of it as creating a sort of ssc path which records the movements you take inside of Celestia.

Yes, I realized what you meant after I had posted my answer.
Moving the observer along curved trajectories can also be done in celx scripting.
@+
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

Post #51by BobHegwood » 17.11.2007, 00:46

Sorry I'm late here, but I'd like to say that the "Name Only"
script listing is in my heart's desire.

If you guys fill the scripts menu up with a bunch of stuff that I'm
not going to use, I'll simply delete the scripts...

I think that the USER should decide what populates the scripts
directory. And - in that case - Filenames are entirely adequate.

Just my two cents worth. Remember though, you GET what you PAY
for. :wink:

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

Toti
Developer
Posts: 338
Joined: 10.02.2004
With us: 20 years 9 months

Post #52by Toti » 17.11.2007, 02:05

dirkpitt wrote:This idea is on the right track, and as ElChristou says it could be made better with some flybys of planets or other interesting objects along the way. Now if only there was a way to record and playback a non-linear motion path with scripts... is this possible?

Yes it is. I have a celx script that does exactly this stuff. I coded it like two years ago: it outputs a text file with some "keypoints" and then you use this as input for another script that rebuilds the trajectory as a B-spline curve. You can see the neat results here (needs Celestia ~1.3, I think it won't work in 1.5 because of the frame change):

http://www.celestiamotherlode.net/creators/toti/MarsFlightSlow.zip

Sorry for the late jump: I am not in touch with what's been discussed here lately.
Cheers


Return to “Ideas & News”