Suggested Demo script improvements

All about writing scripts for Celestia in Lua and the .cel system
Topic author
Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 3 months

Suggested Demo script improvements

Post #1by Malenfant » 16.09.2006, 17:06

I think the demo script could use a bit of fixing. I'm using no extras here, but I am using a compiled 1.5.0 windows executable with the 1.4.1 demo.cel script.

1) I ran it today and for starters, the first part (where it goes to Earth and rotates around it) zooms in too close to the planet, so that the poles are cut off in the field of view. I think the camera should be further away, or have a wider field of view to see the whole planet.

2) Same problem when it goes to the moon and rotates around it, but it's not quite as bad there. But it's kinda hard to note the sun and the earth in the background when the moon takes up most of the view.

3) rotating around the sun is fine

4) going out to view the inner solar system doesn't work well at all - the camera needs to go out further, all I can see is Mercury and Venus and a bit of Earth's orbit (the FOV is 26 deg 6' 21.0" (1.00x) in all this).

5) Saturn is OK, but again the rings are clipped by the FOV.

6) When going to Mimas to show Herschel, it'd help if Herschel was actually visible on the lit hemisphere...

7) Sometimes when I go to Saturn in the demo I end up with Mimas in eclipse, which means I can't see anything on its surface and I can't see the sun to see how faint it is at this distance. Basically, the script needs to be changed so that the things that it is showing are visible - if that means deliberately setting the times to different ones then that's what has to be done.

8 ) When looking at the Big Dipper, it would be useful to turn on the constellation lines then, rather than when we then go to the Little Dipper.

9) It would be useful to set the stars to be fuzzy points or scaled discs within the script to make them more visible. When they're set to Points, you can't really see any obvious patterns without the lines.

10) the rotation around the sky to see the milky way is too long and too dizzying. Also, if you have galaxy rendering on already, the script doesn't turn it off before we get to this stage, so you can already see the milky way before it says that it'll turn it on. This part should just focus on a bit of sky (Cygnus?) and then turn the galaxies on to show the milky way, and maybe follow it along the sky for a bit.

11) When we go to Antares, we aren't "10 times further from it than the Earth is to the sun", the distance to the star shows 22 AU when we stop.

12) The orbit around the milky way doesn't really show it off very well, I think the camera should orbit perpendicular to the galactic disk so we can see the structure more clearly. As it is, it's a bit inclined above the disk, but not by much.
My Celestia page: Spica system, planetary magnitudes script, updated demo.cel, Quad system

hank
Developer
Posts: 645
Joined: 03.02.2002
With us: 22 years 9 months
Location: Seattle, WA USA

Re: Suggested Demo script improvements

Post #2by hank » 16.09.2006, 17:58

Malenfant wrote:I think the demo script could use a bit of fixing...

Perhaps we should hold a contest for a new (or improved) demo script. You, and others, could modify the existing script to improve it (or write a new one from scratch) and then post the results here. Celestia community members could vote on which one they like best. Then Chris and the developer team would make the final selection for inclusion in the next release.

- Hank

Topic author
Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 3 months

Post #3by Malenfant » 16.09.2006, 18:23

Might be an idea... though I don't have time to actually program it myself (got my hands full with other projects). Would it be worth writing it in celx format instead of cel?
My Celestia page: Spica system, planetary magnitudes script, updated demo.cel, Quad system

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

Post #4by ElChristou » 16.09.2006, 18:41

Malenfant wrote:...Would it be worth writing it in celx format instead of cel?


Yes of course, but unfortunatly not so much people are able to script in celx... :?
Image

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Post #5by chris » 16.09.2006, 20:24

Yes, we need a new demo script. I like Hank's idea for a contest . . .

--Chris

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

Post #6by Vincent » 16.09.2006, 21:14

chris wrote:Yes, we need a new demo script. I like Hank's idea for a contest . . .

--Chris


OK,

Then, could you please give us the requested criteria :
- minimum/maximum duration of the script ?
- cel/celx script ?
- objects that have to be visited ?
- ... ?
@+
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

Post #7by Cham » 16.09.2006, 22:05

Personaly, I think we should remove the "D" keyboard shortcut for the demo. The demo script should be selectable from a script menu (a bit like the favorites menu). We need the "D" key for more important things (reference grids !?).

And I agree that the zoom in on Earth is too strong.
"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!"

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

Post #8by ElChristou » 16.09.2006, 23:08

The actual one is no so bad but could be better as pointed by Mal; IMHO a celx would be better for the smooth transition of the camera direction...
Image

hank
Developer
Posts: 645
Joined: 03.02.2002
With us: 22 years 9 months
Location: Seattle, WA USA

Post #9by hank » 17.09.2006, 03:04

Cham wrote:Personaly, I think we should remove the "D" keyboard shortcut for the demo. The demo script should be selectable from a script menu (a bit like the favorites menu). We need the "D" key for more important things (reference grids !?).


On Mac OS X, the demo is available on the Celestia menu. (Perhaps it should be on the Help menu.)

- Hank

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

Post #10by Cham » 17.09.2006, 03:11

I suggest to add a "scripts" menu to the right, just before the help menu. The first item should be the demo (and a separator after that). Then a list of all scripts files names included in a "scripts" folder located inside the CelestiaRessources folder.

I'm not a programmer, but I suspect this should be easy, ... or is it ?
"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!"

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

Post #11by ElChristou » 17.09.2006, 03:44

Cham wrote:I suggest to add a "scripts" menu to the right, just before the help menu. The first item should be the demo (and a separator after that). Then a list of all scripts files names included in a "scripts" folder located inside the CelestiaRessources folder.


Cham, the script folder do not appear in all platform...
Concerning adding a script menu, I fear there is no room for this on a 1024...
Image

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

Post #12by Cham » 17.09.2006, 03:47

ElChristou wrote:Cham, the script folder do not appear in all platform...
Concerning adding a script menu, I fear there is no room for this on a 1024...


Huh !? There's a textures folder, a models folder, a data folder, and so on. So why not a scripts folder too ?

And on a 1024 pixels wide screen, you're sure there isn't any room left for another menu ? I'll check this monday on the portable I'm using at work.
"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
Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 3 months

Post #13by Malenfant » 17.09.2006, 04:31

As usual I agree with Cham ;) - there's no reason why there can't be a scripts folder in Celestia if there isn't one already - I think it makes sense to have a separate folder for them myself.

A nice interface in Celestia to access them wouldn't go amiss either. Maybe that could bring up a separate window (like the Star or Eclipse Finder) that lists the scripts that can be run, along with a brief one line summary (taken from a specific comment line in the script?) saying what the script does.
My Celestia page: Spica system, planetary magnitudes script, updated demo.cel, Quad system

hank
Developer
Posts: 645
Joined: 03.02.2002
With us: 22 years 9 months
Location: Seattle, WA USA

Post #14by hank » 17.09.2006, 04:51

Cham wrote:I'm not a programmer, but I suspect this should be easy, ... or is it ?

SMOP.

- Hank

Topic author
Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 3 months

Post #15by Malenfant » 17.09.2006, 04:54

I have some time to kill and thought I'd just see if I could make minor tweaks to the demo and it's a right nightmare (distances are measured in radii? bwuh?) ! I'll see if I can at least tweak the first few points anyway...

and what's a SMOP?
My Celestia page: Spica system, planetary magnitudes script, updated demo.cel, Quad system

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

Post #16by Cham » 17.09.2006, 04:59

Malenfant wrote:Iand what's a SMOP?


According to these pages :

http://en.wikipedia.org/wiki/SMOP

and

http://www.catb.org/jargon/html/S/SMOP.html

it's a kind of irony. :oops:
"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!"

hank
Developer
Posts: 645
Joined: 03.02.2002
With us: 22 years 9 months
Location: Seattle, WA USA

Post #17by hank » 17.09.2006, 06:16

Malenfant wrote:and what's a SMOP?

Simple Matter of Programming. "Used ironically by the intended victim when a suggestion for a program is made which seems easy to the suggester, but is obviously (to the victim) a lot of work." (from The Jargon File)

There's no shortage of good ideas here, just a shortage of programmers. This suggestion wouldn't actually be difficult, just tedious. And it would have to be done for each platform, since the Celestia GUI is platform-dependent. The problem is finding a programmer with the time and interest to do it.

- Hank

Avatar
Chuft-Captain
Posts: 1779
Joined: 18.12.2005
With us: 18 years 11 months

Post #18by Chuft-Captain » 17.09.2006, 06:20

Malenfant wrote:...distances are measured in radii...

There's a very good reason for this. It makes script writing easier. (Have another think about it). :wink:
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

Topic author
Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 3 months

Revised demo.cel available!

Post #19by Malenfant » 17.09.2006, 06:39

Actually I think I fixed most of the points I had issues with :) - download my modified version from here into your Celestia folder (rename your existing demo.cel script to demo.old though if you want to restore it afterwards, because this will overwrite it!):

http://www.evildrganymede.net/art/celestia/demo.cel

This version is also quite a bit shorter, the waits and durations have been cut down a bit so you don't die of old age or boredom halfway through.

I turned the equatorial grid on when we're looking at Polaris, just to show it's the north star, ideally it might be nice to rotate around this but I couldn't figure out how to do that.

I also tried to get the "spin around the sky" to follow the milky way... I got close but not quite there. Anyone know what angle you have to go to get more aligned with the milky way? (Crux is smack bang in the middle of it, so it's a good place to start from, all we need to do is get the angle right...).

What do you think?
Last edited by Malenfant on 17.09.2006, 08:07, edited 2 times in total.
My Celestia page: Spica system, planetary magnitudes script, updated demo.cel, Quad system

Topic author
Malenfant
Posts: 1412
Joined: 24.08.2005
With us: 19 years 3 months

Post #20by Malenfant » 17.09.2006, 06:41

Chuft-Captain wrote:
Malenfant wrote:...distances are measured in radii...
There's a very good reason for this. It makes script writing easier. (Have another think about it). :wink:


I don't think it does, if you write in km then at least that's the same for all bodies... if you use radii then you never know quite how far you're going to be from the object in km.

I guess it just depends on what you're doing... ;)
My Celestia page: Spica system, planetary magnitudes script, updated demo.cel, Quad system


Return to “Scripting”