Favorite Celestia Views (a cel://URL Repository)

All about writing scripts for Celestia in Lua and the .cel system
symaski62
Posts: 609
Joined: 01.05.2004
Age: 41
With us: 20 years 1 month
Location: france, divion

Post #61by symaski62 » 24.12.2005, 02:30

Hoover wrote:Oh what was I thinking. It is the last line of the Controls Help. Either Ctrl+C or Ctrl+Insert will do it. It places the url in your clipboard, then you can place it on your address line in your browser to test it. Thus, your favorite becomes:

cel://Follow/Sol:1998%20KY26/2015-06-27 ... 39831&lm=0


^^ "%20" :wink:
windows 10 directX 12 version
celestia 1.7.0 64 bits
with a general handicap of 80% and it makes much d' efforts for the community and s' expimer, thank you d' to be understanding.

Hoover
Posts: 55
Joined: 16.06.2004
With us: 20 years

Post #62by Hoover » 24.12.2005, 12:34

Thanks symaski62. Will 1.4 put the %20's in for us?

Juan Marino
Posts: 87
Joined: 08.01.2005
With us: 19 years 5 months

Post #63by Juan Marino » 07.02.2006, 07:19



Reenen
Posts: 7
Joined: 02.10.2006
With us: 17 years 8 months

Re: Favorite Celestia Views (a cel://URL Repository)

Post #65by Reenen » 02.10.2006, 15:16



Hi,

I know nothing of stars, and not much about celestia, but I liked this view, except I am from the southern hemisphere.

What I want is a view that shows me what I can see (approximately) from my backyard. So similar to this view, except not on the north pole looking up, but in cape town (south africa) looking up. (So I could at least know the stars that I can see somewhat)

Could anyone post a link for that (or help me to set it up)?

Cape town (according to Google Earth) is 18?°30' E, and 33?°54' S.

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

Post #66by Chuft-Captain » 02.10.2006, 15:35

What you could do is create an object (perhaps call it "Reenen") and then place it at your latitude/longitude and altitude.
You can then GOTO this object whenever you like
The key part is the LongLat attribute: (and if you're any good at modelling you can even create and associate a model of yourself with it!)
eg.

Code: Select all

"Reenen" "Sol/Earth"
{
...
Radius 0.001   # Assuming you're 2m tall
....
LongLat [ 172.5016 -45.3456 1.5 ]  # eg. 1500 metres altitude, substitute your own values.
...
}


Read the SSC Guide here: http://www.celestiamotherlode.net/catal ... ation.html


P.S. Here's me a few minutes ago :) :
Image
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

Reenen
Posts: 7
Joined: 02.10.2006
With us: 17 years 8 months

Post #67by Reenen » 03.10.2006, 05:19

Ok, got it... but now how do I stay there, and look right up?

At the moment I don't rotate... the world rotates under me.

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

Post #68by Chuft-Captain » 03.10.2006, 05:24

Press "Y" to sync orbit, (actually you shoudn't need to do this if you've used the LongLat method I described)

Code: Select all

"Reenen" "Sol/Earth"
{
Class "Spacecraft"
Radius   0.001
LongLat   [18.5 -33.9 0.001 ]
Orientation   [213.9 1 0 0]      
RotationOffset   18.5
}


The sequence from startup (assuming you've named it "Reenan"):
<ENTER>
ree
<tab>
<ENTER>
G

... then use right-mouse and drag to change your viewpoint.
Last edited by Chuft-Captain on 03.10.2006, 05:44, edited 1 time in total.
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

Reenen
Posts: 7
Joined: 02.10.2006
With us: 17 years 8 months

Post #69by Reenen » 03.10.2006, 05:42

Yup... and press "*" to look away from earth.

But how do I do that in the script?

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

Post #70by Chuft-Captain » 03.10.2006, 05:53

What script? :wink:

That's the first time you've mentioned a script.

Read the CEL Scripting Guide at the link I gave you earlier.

Also, there's lots of useful information which should help you at Selden Ball's Celestia pages: http://www.lepp.cornell.edu/~seb/celestia/
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

Reenen
Posts: 7
Joined: 02.10.2006
With us: 17 years 8 months

Post #71by Reenen » 03.10.2006, 06:04

Well, I didn't (and don't) know how to create an object.

So I figured you've got to open one of those .cel files. I opened "start.cel", and well, they kinda explained how to get you to your own location.

And entering the code you gave me gave me an error. (into the script)

So I just used the "gotolonglat" thingimabob in the new start script (I did not overwrite the old one).

EDIT: Ok, found the "sync orbit"... Use Synchronous {} when you select earth. (Before you select your langitude - dunno if it matters)

Now I just need to know how not to look into the earth's crust, but into the stars above.

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

Post #72by Chuft-Captain » 03.10.2006, 06:28

OK,

It looks like you misunderstood from the beginning.

Here's a step by step...
In C:/Program Files/Celestia, you will see a folder called "extras".
1. In that folder, create a new folder called anything you like, lets say "Reenan"

2. Go to the "Reenan" folder and create a new text file.
Open it with Wordpad or any text editor, and cut and paste the following into it:

Code: Select all

"Reenen" "Sol/Earth"
{
Class "Spacecraft"
Radius   0.001
LongLat   [18.5 -33.9 0.001 ]
Orientation   [213.9 1 0 0]     
RotationOffset   18.5
}


Save it.
Rename the textfile to something like "Reenan.ssc"

That's your object defined at the right location.

You can now restart Celestia and follow the instructions I gave earlier...

Code: Select all

ENTER
ree      (you should see "Reenan" at the bottom of the screen. )
TAB     (to autocomplete)
ENTER   This selects Reenan.
G           This takes you to Reenan.


Then once you are there, reposition until you can see the sky and select any star above the horizon by clicking on it, and press "C" to center that star in the view.

You will find all the same commands in The Cel Scipting Guide, so if you want to do this automatically at startup, you can. All the keyboard commands I've mentioned also have equivalent script commands.

You're on the right track by writing a new start.cel.
"Is a planetary surface the right place for an expanding technological civilization?"
-- Gerard K. O'Neill (1969)

CATALOG SYNTAX HIGHLIGHTING TOOLS LAGRANGE POINTS

Reenen
Posts: 7
Joined: 02.10.2006
With us: 17 years 8 months

Post #73by Reenen » 03.10.2006, 07:06

Ahhh... I understood you... I just didn't know how. :-)

What does the Orientation do?

So I was thinking of basically creating a "bookmark" of myself. :-)


Hoover
Posts: 55
Joined: 16.06.2004
With us: 20 years

Post #75by Hoover » 26.10.2006, 13:56

Also on the same page they had the date of the Transit of Saturn from Neptune in 2061.

To see this one all you have to do is live a long time and hitch a ride on a ship to Neptune. Or you can see it now via the link.

cel://PhaseLock/Neptune/Sol/2061-05-29T18:05:23.71915?x=aF/C6HwlFr8SDQ&y=ac8jj4sbrXv0/////////w&z=/b7p2MW5BOgv/v///////w&ow=-0.028180&ox=0.979895&oy=0.177379&oz=0.086881&select=Sol&fov=0.025121&ts=1.000000&ltd=0&rf=40403&lm=49156

marjinalhakan
Posts: 1
Joined: 20.11.2008
With us: 15 years 7 months

Re: Favorite Celestia Views (a cel://URL Repository)

Post #76by marjinalhakan » 20.11.2008, 15:06

I have yet have new to be Cont.
A little space in the circuit,

Sharing Rep.Url. and program for thank you :wink:
See You, By

Avatar
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 39
With us: 19 years 9 months
Location: MinneSNOWta
Contact:

Re: Favorite Celestia Views (a cel://URL Repository)

Post #77by PlutonianEmpire » 30.11.2008, 06:01

This view of antarctica at 1 hour per second. The time is paused so you'll need to unpause it (pressing the spacebar).

cel://SyncOrbit/Sol:Earth/2008-11-17T07 ... lm=0&ver=2

If you set it to northern summer, you can see the sun as Earth rotates. :)
Terraformed Pluto: Now with New Horizons maps! :D

Avatar
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 39
With us: 19 years 9 months
Location: MinneSNOWta
Contact:

Re: Favorite Celestia Views (a cel://URL Repository)

Post #78by PlutonianEmpire » 09.01.2010, 03:04

Here's something people with widescreen moniters might enjoy:

A fictional planet I added to the Sol system does a small celestial "dance" in the sky seen from Earth:
cel://Follow/Sol:Earth/2131-04-30T14:03:51.26048?x=AIUiH5pedvX//////////w&y=gLMSNqmLFgI&z=gNvLr0Jn0Qo&ow=0.917405&ox=0.0648613&oy=0.333845&oz=-0.206663&select=Sol:Earth&fov=27.075&ts=1e+006&ltd=0&p=1&rf=1873815&lm=4098&tsrc=0&ver=3

When the Field of View is maximized, you can see the dance linked above is part of a much larger "dance":
cel://Follow/Sol:Earth/2130-05-01T07:59:30.33113?x=AIUiH5pedvX//////////w&y=gLMSNqmLFgI&z=gNvLr0Jn0Qo&ow=0.970114&ox=0.0241577&oy=0.117351&oz=-0.211006&select=Sol:Earth&fov=122.867&ts=1e+006&ltd=0&p=1&rf=1873879&lm=4098&tsrc=0&ver=3

Just copy the .zip contents to the "extras" directory, and then you'll be able to see the added planet. The links will work with or without the added planet. You will need to unpause the simulation. The planet is from a sci-fi series of novels from the 1930's.
Terraformed Pluto: Now with New Horizons maps! :D

Avatar
John Van Vliet
Posts: 2940
Joined: 28.08.2002
With us: 21 years 10 months

Re: Favorite Celestia Views (a cel://URL Repository)

Post #79by John Van Vliet » 10.01.2010, 05:18

--- edit ---
Last edited by John Van Vliet on 20.10.2013, 08:22, edited 1 time in total.

surket
Posts: 15
Joined: 25.01.2011
With us: 13 years 5 months

Re: Favorite Celestia Views (a cel://URL Repository)

Post #80by surket » 06.02.2011, 09:58

I have been trying to reproduce some of these views that people have posted to no avail -- apart from the first one (looking up the north pole) by Don. All others produce a dark sky with a few stars. And the time in them is stopped in all of them. Setting to real time or speeding it up make no difference. For example, I clicked on the Hubble link (again by Don) which is define as:

c e l : / / Follow/Sol:Earth:Hubble/2003-06-25T22:57:06.83447?x=Je6A0PC+A8W+DA&y=y9MJeeThFA&z=MAZ9ltFNqQYQ&ow=0.720340&ox=0.062928&oy=0.688935&oz=0.050195&select=Sol:Earth:Hubble&fov=74.854973&ts=0.000000&ltd=0&rf=403&lm=0

When nothing happened I did CTRL+C and this is what I get:

c e l : / / Follow/Sol:Earth:Hubble/2003-06-25T22:57:06.83447?x=AACA7IDjTqG9DA&y=zoE5R3BBHg&z=AM8yhNzXj+3//////////w&ow=0.72034&ox=0.062928&oy=0.688935&oz=0.050195&select=Sol:Earth:Hubble&fov=74.855&ts=0&ltd=0&p=0&rf=403&lm=0&tsrc=0&ver=3

which is quite different from the original.

I must be doing something wrong, but I do not know what.

Ben.


Return to “Scripting”