Need Help with a Basic Camera Move

All about writing scripts for Celestia in Lua and the .cel system
Topic author
Dave M
Posts: 9
Joined: 24.02.2011
With us: 8 years 4 months

Need Help with a Basic Camera Move

Post #1by Dave M » 24.02.2011, 20:22

I'm trying to make a shot for a documentary film that shows the way the water currents move in Hudson's Bay, all the way through to the Atlantic Ocean.....and I've been able to make a script that moves to the points (latitude/longitude) but I don't know how to make it move smoothly without stopping. I can only get it to move to each point, stop, then move to the next point. I've uploaded a version of what I've done and I'm wondering if anyone can help me with how to do this exact shot without the camera stopping at each point, but moving slowly on this path (like a camera move in a film).

Here is my clip
http://www.youtube.com/watch?v=kn4T56AUYak

Avatar
selden
Developer
Posts: 10051
Joined: 04.09.2002
With us: 16 years 9 months
Location: NY, USA

Re: Need Help with a Basic Camera Move

Post #2by selden » 24.02.2011, 21:47

One technique would be to define an SSC object with an xyz trajectory relative to the rotating Earth. Have the viewpoint follow that object. Its motion will be smooth if the xyz positions are evenly spaced. xyz trajectories don't use latitude and longitude, so they're somewhat more awkward to generate.
Selden

Avatar
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 12
With us: 12 years 2 months
Location: Thyrrenian sea

Re: Need Help with a Basic Camera Move

Post #3by Fenerit » 24.02.2011, 23:53

Maybe I do not have well caught the question, but is the camera's path shown in your video, the path to be assigned to an object representing the water currents, or both to the water currents and to the camera?
Never at rest.
Massimo

Topic author
Dave M
Posts: 9
Joined: 24.02.2011
With us: 8 years 4 months

Re: Need Help with a Basic Camera Move

Post #4by Dave M » 25.02.2011, 23:25

The water currents will be added into the shot later in an effects program....All I'm trying to do in Celestia is create a script that follows that general path without stopping. And right now all I know how to do is make it move to each of those points of longitude and latitude but it stops at each point for a second instead of continuing smoothly.

I don't really know how to do any scripting stuff at all, everything I did in that video example is from things I've copied from other people's scripts, and most of the reading I've done has not been very helpful. It also doesn't help that I'm not very good with scripting type stuff to begin with.

the SSC object suggestion from selden sounds like it could work but it's also kind of confusing (to me anyway). Does anyone know where I could find a script that might have something similar that I could copy the scripting from and modify? Because I wouldn't really know where to begin with the writing of it. Or if it's not that complicated could someone tell me the kind of text I would have to write? Thanks

Avatar
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 12
With us: 12 years 2 months
Location: Thyrrenian sea

Re: Need Help with a Basic Camera Move

Post #5by Fenerit » 25.02.2011, 23:54

Here : http://www.youtube.com/watch?v=mS59CihZu_I you can see a video made by Jogad that shows in a smooth way the path motion of the camera amongst points. Such points have been sampled through its wondrous script makers. That is, a script makers of scripts. You can find the thread and the download's link here: http://www.shatters.net/forum/viewtopic.php?f=9&t=16165 The script is an automatic recorder of your control's actions: keyboard, mouse, joystick. Your points will be b-spline-interpolated, no pauses amongst them.
Never at rest.
Massimo

Topic author
Dave M
Posts: 9
Joined: 24.02.2011
With us: 8 years 4 months

Re: Need Help with a Basic Camera Move

Post #6by Dave M » 26.02.2011, 04:29

^ thank you. That scripting program has helped a lot. I've been able to create the smooth movement I want...the only problem is that program is very glitchy and it often crashes Celestia when I try to run the script that I made multiple times....and if I try to modify the 'recorded' script, it crashes and won't work....has anyone else had this problem?

Avatar
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 12
With us: 12 years 2 months
Location: Thyrrenian sea

Re: Need Help with a Basic Camera Move

Post #7by Fenerit » 26.02.2011, 18:53

Maybe do you have the Celestia official 1.6.0 version? Notice that the script maker is for Celestia 1.6.1 (SVN version). You can download such a version from the script's thread above (.exe compiled by Jogad).
Never at rest.
Massimo

Topic author
Dave M
Posts: 9
Joined: 24.02.2011
With us: 8 years 4 months

Re: Need Help with a Basic Camera Move

Post #8by Dave M » 01.03.2011, 05:13

No that's not the problem. I did download the 1.6.1 version....it's still pretty glitchy and if I try to edit the script or change the name of the file or do anything to it the script crashes the program.


Return to “Scripting”

Who is online

Users browsing this forum: 1 guest