Hollywood-style viewpoint/camera movements?

All about writing scripts for Celestia in Lua and the .cel system
Avatar
Topic author
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 40
With us: 20 years 4 months
Location: MinneSNOWta
Contact:

Hollywood-style viewpoint/camera movements?

Post #1by PlutonianEmpire » 20.01.2012, 03:57

Are there any .cel or .celx commands, or combinations of commands, that can have the viewpoint behave in a manner similar to the viewpoint movements of, say, a movie?

Example: The viewpoint slowly travels through interstellar space, approaches a planet, and then a surface point on the planet, with the viewpoint leveling with the horizon as it approaches the surface point at a low angle, with both the ground and the sky in the view.

Alternatively, the viewpoint would track the target planet while looping around the star system as it approaches, by flying past various objects while hopefully keeping those objects out of view (using ReferencePoints with no objects around them might also work for that, eliminating the need to keep them out of view), and then leveling with the horizon as it approaches the surface point.

Admittedly, I haven't touched the scripting arena of Celestia, save for a few simple .cel script files and "start.cel" modifications.
Terraformed Pluto: Now with New Horizons maps! :D

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

Re: Hollywood-style viewpoint/camera movements?

Post #2by selden » 20.01.2012, 13:25

Yes.

Crafting appropriate tour scripts by hand can be tedious, though.

There's at least one program (written in perl) which can generate tour scripts for you.

See the thread viewtopic.php?t=4757
The link to the tour generator is about 3/4 of the way down.
Selden

Avatar
Topic author
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 40
With us: 20 years 4 months
Location: MinneSNOWta
Contact:

Re: Hollywood-style viewpoint/camera movements?

Post #3by PlutonianEmpire » 20.01.2012, 23:53

selden wrote:Yes.

Crafting appropriate tour scripts by hand can be tedious, though.

There's at least one program (written in perl) which can generate tour scripts for you.

See the thread http://www.celestiaproject.net/forum/viewtopic.php?t=4757
The link to the tour generator is about 3/4 of the way down.
Thanks, but how do I use it?
Terraformed Pluto: Now with New Horizons maps! :D

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

Re: Hollywood-style viewpoint/camera movements?

Post #4by selden » 21.01.2012, 13:15

Sorry, I've never used it. Perl scripts are plain text files which are interpreted by the Perl executable. You can use Notepad or other text editor to view the tour script. It seems to contain in-line documentation.

You'll also have to install a version of Perl on your computer. There are several freeware versions available.
Selden


Return to “Scripting”