4
#****************************************************************************
6
# START.CEL - 셀레스티아 시작 스크립트 *
9
#---------------------------------------------------------------------------*
11
# 이 스크립트는 셀레스티아 시작시 자동으로 로드됩니다. *
13
# 주의: 첫 번째 행과 마지막 행에 있는 중괄호 "{"와 "}"는 삭제하지 마시오. *
14
# 이 파일이 CEL 스크립트라고 명시하고 있습니다. *
16
# 필요에 따라 원하는데로 스크립트를 정의할 수 있습니다. 밑에 사용 할 명령 *
17
# 행의 주석(#)을 삭제하여 쉽게 사용할수 있습니다. *
19
# 스크립트를 수정할 경우 나중에 참조를 위하여 원본을 복사해 두시기 바랍니If*
22
#****************************************************************************
32
preloadtex { object "Sol/Earth" }
33
preloadtex { object "Sol/Earth/Moon" }
36
goto {time 3.0 distance 30}
39
select {object "Sol/Earth"}
41
goto {time 3.0 distance 6.0}
44
print {text "셀레스티아를 시작합니다!" row -3 column 1 duration 3}
47
#****************************************************************************
48
# The lines of code above are the entire start.cel script. Below, is a *
49
# description of what each command does. We go to Sol first, so that when *
50
# we go to Earth, it will be displaying it's sunny side, regardless of *
51
# what your local time might be... *
53
# preloadtex: Tells Celestia to load the textures for the named object. *
54
# Otherwise Celestia would load the texture when the object *
55
# comes into view, which would be noticeable as a small delay. *
57
# select: Tells Celestia what object (planet, moon, spacecraft, etc.) to *
58
# define as the currently selected object. Sol defines our solar *
59
# system, the "/" character is merely a hierarchy divider, Earth *
60
# is the object we want to select. If you wanted to select our *
61
# Moon, the select command would look like the following: *
62
# select {object "Sol/Earth/Moon"} *
64
# goto: Tells Celestia to travel to the currently selected object, just *
65
# like pressing the "G" key on the keyboard. The time parameter *
66
# defines how many seconds it should take to travel there. The *
67
# distance parameter defines how far away from the object to be *
68
# positioned, in units of the object's radius, plus 1. For *
69
# example, if the object's radius is 10000 km, and you specify *
70
# 6.0 for distance, you will be positioned 50000 km from the *
71
# center of the object. *
73
# wait: Since the goto command is telling Celestia to take some time to *
74
# do something, we need to give Celestia that same amount of time *
75
# to actually DO it. When going to Sol, the wait command tells *
76
# Celestia to wait for 3 seconds while the goto takes place (for *
77
# 3 seconds). The duration parameter value is normally the same *
78
# as the time parameter in the goto command. However, there are *
79
# always exceptions (grin). *
81
# When we are going to Earth, the wait command after the goto, *
82
# waits for only 2 seconds. The next command is a print command, *
83
# which displays some text on the screen and has another wait *
84
# command after it, that waits for another 3 seconds. It's all *
85
# just a matter of timing. The goto command allows us to display *
86
# some text on-screen WHILE it is executing. So, we simply make *
87
# sure that the total number of wait duration values, listed *
88
# after a goto, adds up to AT LEAST the time value specified in *
89
# the goto command. It can be longer, if desired. *
91
# follow: Tells Celestia to follow the selected object through space, *
92
# just like pressing the "F" key on the keyboard. You could *
93
# replace the follow {} command with synchronous {}, which allows *
94
# you to remain in a stationary, or geosynchronous orbit above *
95
# the selected object. *
97
# print: Tells Celestia to display (print) some text on the screen. The *
98
# text parameter defines the text to be displayed. The row *
99
# parameter defines how many rows from the bottom of the window to *
100
# start displaying the text at. The column parameter defines how *
101
# many columns from the left edge of the window to start *
102
# displaying the text. The duration parameter defines how many *
103
# seconds the text should be displayed on the screen. Which is *
104
# then followed by the wait command, as described above. *
105
#****************************************************************************
108
#****************************************************************************
109
# If you want to be positioned above YOUR specific location on Earth, use *
110
# the gotolonglat command shown below. Step-by-step instructions... *
112
# * Copy the entire line of code. *
114
# * Paste it below the "goto" command above. *
116
# * Remove the "#" character at the beginning of the line. This UNcomments *
117
# the line of code so it will be executed. *
119
# * Add a "#" character to the beginning of the original goto command. *
120
# This turns the line of code into a comment, so it will NOT be run. *
122
# * Change the longitude and latitude values to those of your location. *
124
# * Since you are going to a specific position on the Earth, it might not *
125
# be daytime there, so you could comment-out the following lines of *
126
# code by adding a "#" character to the beginning of each line... *
127
# select {object "Sol"} *
128
# goto {time 3.0 distance 30} *
129
# wait {duration 3.0} *
130
# If you WANT to display your location in the daytime, use the time *
131
# command described next. *
132
#****************************************************************************
134
# gotolonglat {time 5.0 distance 4.0 longitude 0.0 latitude 0.0}
137
#****************************************************************************
138
# If you would like Celestia to always start at a specific date/time, use *
139
# the time command, as shown below. *
141
# WARNING: Starting Celestia with a pre-determined date/time requires that *
142
# you physically press the "!" (exclamation mark) key in order to *
143
# RESET the time to "current time", whenever you want to do some *
144
# exploring -- IF the actual time makes a difference. *
146
# Step-by-step instructions... *
148
# * Determine if you want to set the date via a calendar UTC date/time *
149
# string, or a Julian day (see below). *
151
# * Copy the one line of code with the time command you want to use. *
153
# * Paste it above the "goto" command above (top of file). *
155
# * Remove the "#" character at the beginning of the line. This UNcomments *
156
# the line of code so it will be executed. *
158
# * Change the date/time value to YOUR required date/time. *
159
#****************************************************************************
161
# Set the time via a calendar UTC date/time string...
162
# time { utc "2003-08-11T09:29:24.0000" }
163
# YYYY-MM-DDTHH:MM:SS.SSSS
164
# Note the "T" .........^ ... (this is required)
166
# Set the time via a Julian day value...
167
# time { jd JulianDate }
168
# U.S. Navy Calendar Date/Time to Julian Date/Time converter:
169
# http://aa.usno.navy.mil/data/docs/JulianDate.html
172
#****************************************************************************
173
# The commands listed below allow you to define several of Celestia's *
174
# settings, that will be set every time you start Celestia. Modify any of *
175
# the settings you want to. *
176
#****************************************************************************
178
# Field of View (UNcomment / modify to meet your needs)...
179
# Default is 25 degrees, at a screen resolution of 1024 x 768
180
# set {name "FOV" value 25.0}
183
# Ambient light level (UNcomment / modify to meet your needs)...
184
# 0.0 to 0.5 is a good Lo-Hi range
185
# set {name "AmbientLightLevel" value 0.1}
188
# Faintest visible star magnitude (brightness)...
189
# (UNcomment / modify to meet your needs)
190
# Celestia UI: 0.8 to 15.2, default is 6.0
192
# setvisibilitylimit {magnitude 6.0}
195
# Faintest auto-magnitude brightness, at 45 degrees, Default is 8.5...
196
# (UNcomment / modify to meet your needs)
197
# setfaintestautomag45deg {magnitude 8.5}
200
# Items to be displayed (rendered):
201
# Do NOT render the following objects (UNcomment to suit your needs)...
202
# renderflags {clear "atmospheres"}
203
# renderflags {clear "automag"}
204
# renderflags {clear "boundaries"}
205
# renderflags {clear "cloudmaps"}
206
# renderflags {clear "comettails"}
207
# renderflags {clear "constellations"}
208
# renderflags {clear "eclipseshadows"}
209
# renderflags {clear "galaxies"}
210
# renderflags {clear "nebulae"}
211
# renderflags {clear "grid"}
212
# renderflags {clear "markers"}
213
# renderflags {clear "nightmaps"}
214
# renderflags {clear "orbits"}
215
# renderflags {clear "planets"}
216
# renderflags {clear "pointstars"}
217
# renderflags {clear "ringshadows"}
218
# renderflags {clear "stars"}
219
# renderflags {clear "partialtrajectories"}
222
# Items to be displayed (rendered):
223
# DO render the following objects (UNcomment to suit your needs)...
224
# renderflags {set "atmospheres"}
225
# renderflags {set "automag"}
226
# renderflags {set "boundaries"}
227
# renderflags {set "cloudmaps"}
228
# renderflags {set "comettails"}
229
# renderflags {set "constellations"}
230
# renderflags {set "eclipseshadows"}
231
# renderflags {set "galaxies"}
232
# renderflags {set "nebulae"}
233
# renderflags {set "grid"}
234
# renderflags {set "markers"}
235
# renderflags {set "nightmaps"}
236
# renderflags {set "orbits"}
237
# renderflags {set "planets"}
238
# renderflags {set "pointstars"}
239
# renderflags {set "ringshadows"}
240
# renderflags {set "stars"}
241
# renderflags {set "partialtrajectories"}
245
# Do NOT label the following objects (UNcomment to suit your needs)...
246
# labels {clear "asteroids"}
247
# labels {clear "constellations"}
248
# labels {clear "galaxies"}
249
# labels {clear "moons"}
250
# labels {clear "planets"}
251
# labels {clear "spacecraft"}
252
# labels {clear "stars"}
256
# DO label the following objects (UNcomment to suit your needs)...
257
# labels {set "asteroids"}
258
# labels {set "constellations"}
259
# labels {set "galaxies"}
260
# labels {set "moons"}
261
# labels {set "planets"}
262
# labels {set "spacecraft"}
263
# labels {set "stars"}
267
# Unmark any objects that are currently Marked and disable Marker display...
268
# (UNcomment to suit your needs)
272
# Minimum orbit diameter to be rendered (in pixels)...
273
# (UNcomment / modify to suit your needs)
274
# set {name "MinOrbitSize" value 1.0}
277
# Furthest visible star distance, default is 1000000...
278
# (UNcomment / modify to suit your needs)
279
# set {name "StarDistanceLimit" value 1000000}
282
# Time rate (1x, 100x, 1000x, etc.)...
283
# (UNcomment / modify to suit your needs)
284
# Negative value = Reverse Time
286
# 1.0 = Real Time (default)
287
# 1000.0 = Good moon orbit motion
292
#****************************************************************************
293
# If you are using large textures, you can have Celestia pre-load them *
294
# into your graphics card memory by listing them below. *
295
#****************************************************************************
297
# preloadtex {object "earth.*"}
298
# preloadtex {object "earth.png"}
301
#****************************************************************************
302
# orbit is a fun command to play with. The axis is specified in [X Y Z] *
303
# order, and each axis can be either 0 or 1. rate = how fast, duration = *
304
# number of seconds. Just make sure you have an object selected. *
305
#****************************************************************************
306
# orbit {axis [0 1 0] rate 10.0 duration 7.0}
309
#****************************************************************************
310
# To learn more about scripting in Celestia, visit: *
312
# * Scripting forum: (http://www.shatters.net/forum/viewforum.php?f=9) *
313
# * Don G's Celestia page: (http://www.donandcarla.com/Celestia/) *
314
# * Harald's Celestia page: (http://www.h-schmidt.net/celestia/) *
316
# Don G's page includes a guide for CEL scripting. Harald's page includes *
317
# a guide for CELX (Lua) scripting. Both also have example scripts and *
319
#****************************************************************************