jumpto function doco?

Have a question about using Celestia? Check here first for FAQs and helpful advice.
Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Topic author
primaveranz
Posts: 4
Joined: 08.01.2010
With us: 9 years 10 months

jumpto function doco?

Post #1by primaveranz » 21.09.2013, 05:25

Hi,
I am a newbie trying to record a simple panning and zooming motion from the Sun to the Earth but am making a real hash of it ;)

I was hoping to stick with using a CEL script rather than having to understand the CELX equivalent but finally downloaded the Celxmaker script which records your manual actions. I wanted to tweak the result but can't find any documentation on the "jumpto" function anywhere.

Or can anyone explain how I can achieve my aim smoothly using CEL code in Celestia 1.6.1?

The issues I have been finding are that the Earth shoots in from random positions on the screen and that the camera doesn't pan or zoom smoothly towards the Earth but accelerates then "jams the breaks on" which is a bit disconcerting.
Any pointers greatly appreicated.

Cheers,
John

Avatar
jogad
Posts: 458
Joined: 17.09.2008
With us: 11 years 2 months
Location: Paris France

Re: jumpto function doco?

Post #2by jogad » 21.09.2013, 22:18

Hi,

Unless you kwow exactly what you are doing, do not try to tweak the jumpto function or any function of the "autocelxfunctions.lua" which is the core module of the celxmaker program. :!:
Just for information the jumto fonction is an easy way to use the celx goto function with a table as explained here
http://en.wikibooks.org/wiki/Celestia/C ... 28table.29
Some elements of the table are provided as parameters of the function an some other are defined at the beginning of the generated script.

Instead, you can tweak the resulting script generated by celxmaker.
An efficient way to smooth your path is to modify the first parameter of the generated functions stepto or orbitto within the script.
These instructions bring you to the next position and the first parameter is the time in second to reach it.

When you record the keyboard actions, think also to plan your moves to have the simplest way to achieve your aim.

The Celxmaker-readme.txt explains diferent ways to build your path.
Some trial an errors are sometime necessary to learn how they work. :wink:

Topic author
primaveranz
Posts: 4
Joined: 08.01.2010
With us: 9 years 10 months

Re: jumpto function doco?

Post #3by primaveranz » 23.09.2013, 00:12

Thanks for the reply Jogad. I will try and work through the documentation you linked to and figure it out.


Return to “Help Central”

Who is online