Saturn Script

All about writing scripts for Celestia in Lua and the .cel system
Topic author
Rich

Saturn Script

Post #1by Rich » 15.06.2004, 12:10

Hi,
A humble little Saturn cel script. Probably kind of klugey...
One small segment uses the Cassini probe addon ("cassini xyz.ssc" is the ssc followed here) - but still looks OK without the probe addon.
-Rich

###### ===== Saturn === ######
{
cancel {}
print { text "(loading texture)" row -2 duration 4}
preloadtex { object "saturn" }
wait { duration 7 }
cancel {}
seturl { url
"cel://Freeflight/2004-04-07T14:04:55.10893?x=INkyNfN/XbOcDA&y=uwJyzQE+8uX+/////////w&z=pI3kaRs40Qx1/////////w&ow=-0.053089&ox=0.408325&oy=-0.908957&oz=-0.065192&select=Sol:Saturn&fov=23.077036&ts=1.000000<d=0&rf=120727&lm=0" }
renderflags { clear "ringshadows|galaxies"}
renderflags { clear "markers"}
cancel {}
print { text "Where are we now...?" row -2 duration 8}
wait { duration 4 }
cancel {}
timerate {rate 800}
wait { duration 6 }
timerate {rate 0}
wait { duration 0 }
select {object "saturn"}
#
gotoloc {
time 3
x "wPKHaZiq8racDA"
y "m7Mw8vbcdOf+/////////w"
z "RGg1lw8rUQ51/////////w"
ow 0.857461
ox 0.240528
oy -0.447066
oz -0.083898 }
wait { duration 4 }
follow {}
print { text "The planet Saturn" row -2 duration 8}
timerate {rate 1000}
wait { duration 6 }
goto {time 4 distance 9 upframe "geographic"}
wait { duration 3 }
cancel {}
wait { duration 4 }
select {object "saturn"}
follow{}
goto {time 4 distance 9 upframe "geographic"}
orbit { axis [ 1 0 0 ] rate 6 duration 16 }
goto {time 5 distance 15 }
wait { duration 10 }
#
cancel {}
seturl { url
"cel://SyncOrbit/Sol:Saturn/2004-04-11T14:11:02.11073?x=IHY/GjLQzlOcDA&y=01TcsQrBX+n+/////////w&z=3Hi+r10e/yB1/////////w&ow=0.114308&ox=-0.264888&oy=0.957080&oz=0.027656&track=Sol&select=Sol:Saturn&fov=51.005165&ts=1.000000<d=0&rf=116627&lm=0" }
renderflags { clear "markers"}
cancel {}
set { name "StarStyle" value "scaleddiscs"}
renderflags { clear "galaxies"}
wait { duration 2 }
select {object "saturn"}
synchronous {}
print { text " A beautiful sunrise on Saturn" row -2 duration 10}
select {object "sol"}
track {}
set { name "StarStyle" value "scaleddiscs"}
timerate {rate 250}
wait { duration 6 }
timerate {rate 500}
wait { duration 8 }
timerate {rate 1000}
print { text "You can see Mercury, Venus & Earth to the right of the Sun." row -2 duration 8}
wait { duration 9 }
timerate {rate 500}
print { text "Some of Saturn's moons are visible near the ring" row -2 duration 5}
wait { duration 7 }
timerate {rate 250}
print { text " A Saturn sunset." row -2 duration 5}
wait { duration 10 }
set { name "StarStyle" value "fuzzypoints"}
cancel {}
timerate {rate 400}
wait { duration 5 }
print { text "One last close look at Saturn's rings, passing in front of the sun" row -2 duration 5}
wait { duration 5.5 }
renderflags { set "galaxies"}
set { name "StarStyle" value "points"}
wait { duration 7 }
select {object "saturn"}
timerate {rate 600}
center {time 5}
wait { duration 12}
timerate {rate 6000}
wait { duration 5}
timerate {rate 100}
wait { duration 1}
#
cancel {}
seturl { url "cel://Freeflight/2004-06-11T15:12:00.50440?x=yajxqBRBWeWVDA&y=LD5QUVaK7UD//////////w&z=7pHSO6RLh0F3/////////w&ow=-0.038411&ox=-0.510863&oy=-0.005418&oz=0.858787&select=Sol:Saturn:Phoebe&fov=15.963135&ts=0.000000<d=0&rf=57235&lm=0"}
cancel {}
print {text "On June 11, 2004 the probe Cassini passes near Saturn's moon Phoebe." row -22 column 2 duration 8}
wait {duration 1}
select {object "cassini xyz"}
follow {}
select {object "phoebe"}
lock {}
wait {duration 1}
timerate {rate 300}
wait {duration 5}
timerate {rate 1100}
wait {duration 11}
timerate {rate 500}
wait {duration 7}
timerate {rate 900}
wait {duration 13}
}
#---------------------------------------------------

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

Re: Saturn Script

Post #2by ANDREA » 15.06.2004, 12:57

Rich wrote:Hi,
A humble little Saturn cel script. Probably kind of klugey...
One small segment uses the Cassini probe addon ("cassini xyz.ssc" is the ssc followed here) - but still looks OK without the probe addon.
-Rich

Hello Rich, I've just run your script, and enjoyed it.
Very nice and dynamic, well done. :D
Go on this way, please. :wink:
Thank you

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

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

Post #3by don » 16.06.2004, 08:16

Howdy Rich,

Nice script! :D

I especially enjoyed the set-up for the sunrise--sunset, with the three planets next to the sun. Very creative. 8)

Good work Rich!
-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 #4by Bob Hegwood » 17.06.2004, 05:45

Rich...

I thought I knew something about cel scripting, but your Saturn script just blew
me away. Great views and perspectives on the ringed planet. I've stashed your
script into my Celestia folder so that I can learn something about the techniques
you used in that script. Really cool effects, and I hope I ain't too brain-dead
to learn some of them. :wink:

Again, really nice script. Thanks for the education. :lol:

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
Rich

Saturn Script

Post #5by Rich » 17.06.2004, 15:51

Thank you all for the nice comments. :oops:
The saturn script is actually a small part of what is becoming an unwieldly "cool things" script which I originally intended to be an educational animation for my daughter, but kind of went off-track... I had to break it up into bite-sized chunks to keep my sanity when I replay & work on it. Again, as I am learning, the scripts tend to be way klugey.
The script ties in with the cel url questions I've had, because I basically have 2 functions in mind with the "master script" I'm making: A) I'm trying to put some basic solar system & space info in it, and B) I essentially find any cool places or happenings as a cel URL, then build a script around it - like the saturn sunrise.... As a 3D artist by trade, I guess I subconciously approach it as I would any 3D image I'd create - so my scripts end up being heavier on the eye-candy but pretty light on the hard educational information! :? (I'll have to add that stuff in later)

PS: btw Bob, your scripts are great - very informative and fantastic navigation.

-Rich

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

Re: Saturn Script

Post #6by Bob Hegwood » 17.06.2004, 17:05

Rich wrote:PS: btw Bob, your scripts are great - very informative and fantastic navigation.

Thanks, but they don't have anywhere NEAR the eye-candy that your Saturn
script has. Envious sigh... :wink: Like I said, though. I'll be looking at the cel to
see what I can learn. Thanks again.

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


Return to “Scripting”