Getting From One Side of the Planet to the Other

All about writing scripts for Celestia in Lua and the .cel system
Topic author
Bob Hegwood
Posts: 1048
Joined: 19.10.2003
With us: 21 years 3 months
Location: Germantown, Ohio - USA

Getting From One Side of the Planet to the Other

Post #1by Bob Hegwood » 25.01.2004, 10:56

This is a question for Mr. Goyette, I think. Maybe Selden?

While revising my MarsTour script lately, I've noticed that there is no easy way to get from one side of the planet to the other.

Let me explain...

If I'm on the Spirit landing site, for example, and I then wish to view the Opportunity landing site, Celestia simply goes through the planet in order to get to the next location. I don't like this, and I tried to go to interim locations (In other words, places located half way around Mars, 1/4 of the way around Mars, etc.), but with less than satisfactory results.

Is there a more elegant solution to this problem?

Just thought I'd ask before I spent another sleepless night trying to zoom around the planet again.

Thanks, 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

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 4 months
Location: NY, USA

Post #2by selden » 25.01.2004, 13:37

Unfortunately, the current version of Celestia always goes straight from one location to another. Maybe that'll change in a future version.

However, one thing you might try is to use "follow" instead of "synch orbit", set the time forward or back by about 12 hours and then goto the location. In other words, let Mars rotate under the viewpoint.
Selden

ElPelado
Posts: 862
Joined: 07.04.2003
With us: 21 years 9 months
Location: Born in Argentina
Contact:

Post #3by ElPelado » 25.01.2004, 13:55

Thats what i was going to say: or change the time or accelerate...
---------X---------
EL XENTENARIO
1905-2005

My page:
http://www.urielpelado.com.ar
My Gallery:
http://www.celestiaproject.net/gallery/view_al ... y-Universe

Harry
Posts: 559
Joined: 05.09.2003
With us: 21 years 4 months
Location: Germany

Re: Getting From One Side of the Planet to the Other

Post #4by Harry » 25.01.2004, 16:43

Bob Hegwood wrote:If I'm on the Spirit landing site, for example, and I then wish to view the Opportunity landing site, Celestia simply goes through the planet in order to get to the next location. I don't like this, and I tried to go to interim locations (In other words, places located half way around Mars, 1/4 of the way around Mars, etc.), but with less than satisfactory results.

Maybe the orbit command would help? You could orbit Mars until you are on the other side, and then use a goto which wouldn't travel through the planet.

Harald

Guest

Post #5by Guest » 25.01.2004, 16:48

selden wrote:However, one thing you might try is to use "follow" instead of "synch orbit", set the time forward or back by about 12 hours and then goto the location. In other words, let Mars rotate under the viewpoint.


Now THERE's an idea worth pursuing... Thanks again Mr. Ball. You ARE the MAN!

Take care, Bob

Topic author
Bob Hegwood
Posts: 1048
Joined: 19.10.2003
With us: 21 years 3 months
Location: Germantown, Ohio - USA

Re: Getting From One Side of the Planet to the Other

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

Harry wrote:Maybe the orbit command would help? You could orbit Mars until you are on the other side, and then use a goto which wouldn't travel through the planet. Harald


I take it back Selden, it's now my opinion that Harry IS the MAN! :wink:

I tried the orbit approach as you suggested Harry, and it works a helluva lot better than anything ELSE I've tried.

Thanks very much for the tip.

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

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

Post #7by chris » 26.01.2004, 17:37

Celestia also has a goto mode that moves along an arc instead of a straight line. You can see it in action when you move between two locations on the surface of the same object. Unfortunately, it's not yet exposed through the script interface, so orbit is your best bet for now.

--Chris

Topic author
Bob Hegwood
Posts: 1048
Joined: 19.10.2003
With us: 21 years 3 months
Location: Germantown, Ohio - USA

Post #8by Bob Hegwood » 27.01.2004, 15:33

chris wrote:Celestia also has a goto mode that moves along an arc instead of a straight line. You can see it in action when you move between two locations on the surface of the same object. Unfortunately, it's not yet exposed through the script interface, so orbit is your best bet for now. --Chris


Thank you Chris - and thanks very much to Harry. I've modified the MarsTour to use the orbit commands with great success. Celestia is simply an AMAZING program.

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”