Celestia .CEL Scripting Guide for Celestia 1.3.1+

All about writing scripts for Celestia in Lua and the .cel system
Topic author
don
Posts: 1709
Joined: 12.07.2003
With us: 21 years 4 months
Location: Colorado, USA (7000 ft)

Celestia .CEL Scripting Guide for Celestia 1.3.1+

Post #1by don » 17.06.2004, 20:51

Howdy Everyone,

An updated version (1.0g) of the Celestia .CEL Scripting Guide is now available from my Celestia web page: http://www.donandcarla.com/Celestia/, in .doc, .html, and .rtf file formats.

Please post your comments, suggestions, additions, corrections, etc.!!!

Thank you, and HAPPY SCRIPTING!

-Don G.

PS. If someone wants to convert it to PDF, and make sure that all the cel://URLs and hyperlinks still work, I'd be happy to host it on my web page.
-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.

Bob Hegwood
Posts: 1048
Joined: 19.10.2003
With us: 21 years 1 month
Location: Germantown, Ohio - USA

Post #2by Bob Hegwood » 18.06.2004, 06:10

Hey Don...

Thanks very much for the update to my Bible. :lol:

Only thing I would mention is that some explanation of the gotolonglat command
might be in order when used to display locations on planets or objects which
feature a retrograde rotation. You already know about this, but I discovered
it on my own, and it might be very confusing to someone not familiar with Celestia's
peculiarities.

Just a thought my friend... How are the fingers today? :wink:

Take care, Bob
Bob Hegwood
Windows XP-SP2, 256Meg 1024x768 Resolution
Intel Celeron 1400 MHz CPU
Intel 82815 Graphics Controller
OpenGL Version: 1.1.2 - Build 4.13.01.3196
Celestia 1.4.0 Pre6 FT1

Oni2501

Thanks!

Post #3by Oni2501 » 18.06.2004, 06:53

Thanks for the update Don! I'm still way behind in my scripting knowledge and it's so good to know I have a guide :-)

I watched your short movies and decided to make a couple of my own. The first one was done on the old HP 650 Mhz pc with a TNT graphics card and Celestia version 1.3.0 (I think). Recently made another using a 3.2 Ghz HP with GeForce 5700 graphics card, Celestia version 1.3.2 pre 7 and better add-ons. So much better! I captured both at 720x480 NTSC DVD quality and then pulled the clips into Pinnacle Studio 8 and edited them to music. They are both on a dvd now that I show to friends and I do get some ooh's and ahh's as feedback :-) Unfortunately the files are much too large to post and I have no website that would hold them anyway, but if you're interested in seeing them I'll be happy to make you a dvd and mail it your way. I could also make reduced 320x240 versions, but the details are lost at that res and even then the files are still well into the 3 digit megabyte range. It would take me days to upload it with my slow dial-up :-( If you're interested in a dvd just say so here and I'll get back in touch.

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

Post #4by don » 18.06.2004, 20:53

Bob Hegwood wrote:Thanks very much for the update to my Bible. :lol:
:lol: You're quite welcome Bob!


Bob Hegwood wrote:Only thing I would mention is that some explanation of the gotolonglat command might be in order when used to display locations on planets or objects which feature a retrograde rotation.
Very good idea, Sir Hegwood. Would you mind sending me a PM or e-mail describing what you did to counteract this odd behavior? That is, aside from pulling hair out. :lol:


Bob Hegwood wrote:How are the fingers today? :wink:

Sore, but usable. :) Some days are better than others.

Cheers,
-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.

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

Re: Thanks!

Post #5by don » 18.06.2004, 21:07

Oni2501 wrote:Thanks for the update Don!
You're very welcome.


Oni2501 wrote:I'm still way behind in my scripting knowledge and it's so good to know I have a guide :-)
A new command a day keeps the boredom away. :lol:
I've seen and enjoyed your scripts of Transit cel:// URLs in another thread. Keep it up and you'll be an expert in no time! We should probably copy the latest transit cel:// URLs to the sticky thread in this forum.


Oni2501 wrote:I watched your short movies and decided to make a couple of my own.

Cool! For posting video files on the web ... There are some good, free encoders available out there, that can reduce an AVI file to a fraction of it's original size.

One is from Microsoft (Windows Media Encoder 9), which creates .wmv files. Doesn't Studio have a built-in encoder for QuickTime (.mov)? These seem to be the most popular video formats for the web (aside from DivX).

If you encode at a high enough bit rate, a 320x240 image can be enlarged by the end-user (click-drag the display window) and still have decent quality. It *can* be a pain to balance quality and file size and usually requires a lot of experimenting because it depends a lot on the video content.

Cheers,
-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.

Bob Hegwood
Posts: 1048
Joined: 19.10.2003
With us: 21 years 1 month
Location: Germantown, Ohio - USA

Post #6by Bob Hegwood » 19.06.2004, 05:27

don wrote:Very good idea, Sir Hegwood. Would you mind sending me a PM or e-mail describing what you did to counteract this odd behavior? That is, aside from pulling hair out. :lol:

Sir Goyette,

Methinks also that perhaps one of the *educated* Celestia Elite might have
a better description of the complications caused by a retrograde object. I will
certainly *try* to explain it to you, but Mr. Hutchison had the best explanation
for me when I asked about the complications. Perhaps he could re-iterate the
explanation here if we asked him nicely? :wink:

Take care, Bob
Bob Hegwood

Windows XP-SP2, 256Meg 1024x768 Resolution

Intel Celeron 1400 MHz CPU

Intel 82815 Graphics Controller

OpenGL Version: 1.1.2 - Build 4.13.01.3196

Celestia 1.4.0 Pre6 FT1

ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 5 months
Location: Rome, ITALY

Re: Celestia .CEL Scripting Guide for Celestia 1.3.1+

Post #7by ANDREA » 19.06.2004, 22:13

don wrote:Howdy Everyone, An updated version (1.0g) of the Celestia .CEL Scripting Guide is now available from my Celestia web page: http://www.donandcarla.com/Celestia/, in .doc, .html, and .rtf file formats. Please post your comments, suggestions, additions, corrections, etc.!!!Thank you, and HAPPY SCRIPTING!
Don G.

Don, first of all thank you again for your precious and appreciated guide. :D
And in order to make it even more useful, could you mark in any way the MODIFIED wording (BOLD+ITALIC+underline, or a side black line, e.g.), in order to give immediate evidence of the changes from the previous version? :wink:
This could be useful and less time consuming, IMO (please remember that in Celestia forum there are a lot of non-English speaking people, like me, and that reading ALL the guide is truly a fatigue, while probably all the changes are in a few pages only). :oops:
Thank you anyhow

Andrea :D
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 5 months
Location: Rome, ITALY

Re: Celestia .CEL Scripting Guide for Celestia 1.3.1+

Post #8by ANDREA » 19.06.2004, 22:22

ANDREA wrote:
don wrote:Don, ..... in order to make it even more useful, could you mark in any way the MODIFIED wording (BOLD+ITALIC+underline, or a side black line, e.g.), in order to give immediate evidence of the changes from the previous version? :wink:
Andrea :D

Sorry Don, I just arrived to page 52, where is clearly shown what has been changed. :oops: :oops: :oops: :oops:
Forget about my previous script. :wink:
By and thank you again

Andrea :D
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

Bob Hegwood
Posts: 1048
Joined: 19.10.2003
With us: 21 years 1 month
Location: Germantown, Ohio - USA

Post #9by Bob Hegwood » 20.06.2004, 01:04

don wrote:Would you mind sending me a PM or e-mail describing what you did to counteract this odd behavior? That is, aside from pulling hair out. :lol:

Don,

I can do better than that... Go to THIS thread and read it from the
beginning. Will make more sense than my explanation would. :wink:

As to how I handled the problem, I simply turned the universe upside-down
at the begiining of the script, so that we could approach Venus using the gotolonglat
command to get to its dark side. Then, I rotated the planet from North to South
in order to view the daylight side which would *now* be rotating in the correct
direction. Lost yet? :lol: If you simply use gotolonglat to get to the daylight
side directly, then the planet is rotating in the wrond direction, AND you're looking
at it upside-down. See what fun this is? 8O

Take care, Bob
Bob Hegwood

Windows XP-SP2, 256Meg 1024x768 Resolution

Intel Celeron 1400 MHz CPU

Intel 82815 Graphics Controller

OpenGL Version: 1.1.2 - Build 4.13.01.3196

Celestia 1.4.0 Pre6 FT1

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

Re: Celestia .CEL Scripting Guide for Celestia 1.3.1+

Post #10by don » 20.06.2004, 20:18

ANDREA wrote:Sorry Don, I just arrived to page 52,

No need to be sorry. I thought of your idea too, thus the section at the end of the guide. However, there are a couple of changes that are not in that section, and I can't remember what the specific changes were. So now, I am sorry. :(
-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.

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

Post #11by don » 20.06.2004, 20:29

Bob Hegwood wrote:Go to THIS thread and read it from the
beginning. ... As to how I handled the problem, ...

Thank you very much Bob!
-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.

Oni2501

Movies

Post #12by Oni2501 » 21.06.2004, 22:47

Cool! For posting video files on the web ... There are some good, free encoders available out there, that can reduce an AVI file to a fraction of it's original size.

One is from Microsoft (Windows Media Encoder 9), which creates .wmv files. Doesn't Studio have a built-in encoder for QuickTime (.mov)? These seem to be the most popular video formats for the web (aside from DivX).

If you encode at a high enough bit rate, a 320x240 image can be enlarged by the end-user (click-drag the display window) and still have decent quality. It *can* be a pain to balance quality and file size and usually requires a lot of experimenting because it depends a lot on the video content.


Hey Don

Thanks for the info and sorry for the late reply. Had a lot of yard work and a Nephew to take care of over the weekend :-) I don't have Windows Media Encoder 9 (yet) and my version of Studio doesn't have QuickTime options. I do however have DivX so I'll play around with that and see if I can make something that's both small in file size while keeping the quality level and resolution. If I can get them small enough I may be able to find a site that will host them at least long enough for others to download. Will keep ya posted on my progress.

I'm holding off on updating the Transits script to see what other cel url's they post in that thread. Then I can copy it over here.

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

Post #13by don » 22.06.2004, 04:26

Hi Oni2501,

Sounds like you had a fun weekend! :P

Depending on the size of the file, I can probably host it for you on my site for a while.

Looking forward to seeing it! :D

Cheers,
-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 “Scripting”