The idea is strongly inspired by the picture box of lua-plugins. But I wanted to display images and text in a free order without being bound to a particular selection in celestia.
And I especially wanted something that anyone without scripting knowledge can use as easily as possible.
All ideas that allow easy usage are welcome.
For now, I am at this point:
Each slide consists of one, two or three of the following
- an image
- a text
- A position in celestia (cel://url)
This last possibility is only available with the next version of Celestia (1.6.1) or a recent SVN versions
Here are some interesting features:
- Images can be moved and resized with the mouse
- It is allowed to have an image of any size an the dimensions of its sides are absolutely free.
- You don't have to rename your image files to use them
- We can move the text with mouse like pictures.
- The text can be left or right justified or centered.
- We can even chose the colour of the text.
- We have a complete control on how text and images are attached on the screen (relative to the borders or to the center horizontal and vertical axes)
- recording these different elements is done easily from within Celestia.
- It is possible to search for a particula slide in stealth mode and we can continue to use Celestia normally when a slide is displayed or between two slides.
There is a description file that defines the slideshow display order of the slides. Manual intervention on this file is limited to type the text to be displayed (and maybe the picture files names if you have linux)
An incorrect syntax do not prevent the program to run.
Together with the other lua plugins we can get cool layouts like this:
I) - Installing the program
This plugin works only with Celestia version 1.6
If you want to enjoy the Cel://Url feature to record your Celestia position in slides, you must have the upcomming version 1.6.1 of Celestia or one of the last SVN version.
Lua Plugins must be installed before the Slideshow plugin. Because the slideshow doesn't work well with the first version of lua plugins, I suggest to take the last modification by Vincent HERE: http://gvince.perso.sfr.fr/celestia/lua/lua_plugins2.zip
1) If you have a customized version of the config.lua file, save it before.
2) download the beta Slideshow plugin from HERE
3) unzip the archive as usual in the celestia/extras directory
4) You can optionnally add a custom key to start the plugin. If you do not, it will be "r"
OK. The program is installed but we still do not have slides to show.
II) Creating a slideshow
By default the directory that contains the slides is 'slides'.
In order to work, it must contain images to be displayed if any and a description file that must necessarily be called "_slidecatalog.txt"
1) Copy some images in this folder.
Images must be in jpg format (or jpeg) png or dds. Images can be of any size. No need for a special relationship between width and height. And of course no need of power-of-two-mania.
For this little introduction, I have already filled the slides folder with some pictures.
2) Creating the catalog file "_slidecatalog.txt".
We'll start by creating a very minimal catalog.
a) pictures definition
If you're running Windows, double click on the file "makeSlideCatalog.bat" located in the slideshow directory. The file_slidecatalog.txt will be created automatically and open with your default editor. You get this.
Code: Select all
- Slide catalog description
- For slideshow in Celestia
aristote.png
copernic.jpg
Galilee.jpg
kepler.jpg
newton.jpg
ptolemee.jpg
russell.png
systeme_ptolemee.png
Rearrange a bit to have them in chronological order instead of alphabetical.
If you're not running Windows, type yourself the names of picture files.
This file is basic but perfectly usable as is.
But I promised that text can be displayed with pictures. So we will do that immediately.
In fact, the catalog file does not even need pictures. You might as well write it with only text. Associated with cel://URLs, this would also be a way to make slideshows quickly.
b) definition of text
Voila! I added some text and some comments
Code: Select all
-- Slide catalog description
-- for slideshow in Celestia
--------------------------------------
-- just a test and a demo for slide show
-- Please do not pay attention to the
-- inexactitude of the text.
----------------------------------------
'Aristote
aristote.png
ARISTOTE
"
Philosophe grec
384 ? 322 av JC
-------------------------------------
-- the following slide has only
-- text to continue the previous one
-------------------------------------
-- Aristote la suite
Il reprend l'id?e d'Eudoxe
qui repr?sente assez bien le
mouvement des plan?tes au
moyen de sph?res concentriques.
Pour lui les sph?res sont r?elles
et sont dou?es de mouvement
spontan?.
---------------------------------------------------------
'you have noticed that the previous picture is not erased
'when the next slide has only text and no picture
'if you actually want to erase the previous picture
'the trick is to add "no.jgp" as the picture file name
'(if you have an actual no.jpg file, rename it !)
---------------------------------------------------------
'petite pause
no.jpg
Aristote n'?tait pas vraiment un astronome
mais sa vision de l'Univers a influenc? la
connaissance scientifique jusqu'au moyen ?ge
"
Une petite pause pour souffler
et nous continuons notre visite.
--Ptol?m?e
ptolemee.jpg
Ptol?m?e
Astronome et astrologue,
il v?cut ? Alexandrie et son
travail nous est parvenu par son
oeuvre majeure, L'Almageste, qui
est le trait? d'astronomie le plus
complet depuis l'antiquit? et
jusqu'au moyen ?ge.
'Syst?me de Ptol?m?e
systeme_ptolemee.png
Son syst?me g?ocentrique du cosmos
n'a pas la pr?tention de repr?senter
la r?alit? physique de l'univers, mais
permet de calculer la position des
astres avec une grande pr?cision.
'Copernic
copernic.jpg
Nicolas Copernic
"
Reprend les travaux des astronomes anciens
mais a l'id?e de mettre le soleil au
centre de son syst?me.
L'ouvrage qui expose son syst?me ne
sera publi? qu'? sa mort.
'K?pler
kepler.jpg
Johannes Kepler
Calculateur infatiguable, il reprend
les observations de Tycho Brahe et d?couvre
que les plan?tes suivent des orbites
elliptiques avec un mouvement non uniforme
autour du Soleil
'Galil?e
Galilee.jpg
Galileo Galilei
"
N? ? Pise en Italie, il fait progresser
l'astronomie aussi bien que la physique.
Il construit la premi?re lunette
astronomique qui lui permet de d?couvrir
les quatre principaux satellites de
Jupiter
'Newton
newton.jpg
Isaac Newton
Savant math?maticien, physicien, alchimiste et astronome.
Il met au point les outils math?matiques qui lui
permettront d'?tablir la th?orie de la gravitation
universelle.
'Russell
russell.png
Henry Norris Russel
Astronome am?ricain 1877 - 1957
"
Il ?tablit une classification des ?toiles
en fonction de leur luminosit? et de leur
classe spectrale, r?sum? par le diagramme
de Hertzsprung-Russell.
Il analysa aussi syst?matiquement les
?toiles binaires ? ?clipses ainsi que la
variation de leur magnitude.
This is only dummy text for example purpose. Don't ask for a translation. You use this text as is or write something more intelligent before saving it as "_slidecatalog.txt".
This text is already in the "examples" directory. If you want to use it, delete the _slidecatalog.txt then copy the _slidecatlog2.txt to the "slides" directory and rename it into "_slidecatalog.txt". (Because there are French accents in it, it is an UTF-8 text. So do not simply copy the code above, or pay attention to recode it in UTF-8)
It should not be blank lines between the different elements of the same slide. Contrariwise, it is strongly advised to separate the slides by at least one blank line.
Comments start at will with -- or ' as the first non blank char.
The text is written directly or can be preceded by "
This lets a line of empty text not to be interpreted as a separation between two slides.
Do not try to make presentation here. This will be done in Celestia
The comment just before the first element of the slide has a special meaning. This is the title of the slide and will be used for display in the stealth mode of the slideshow.
c) definition of positions in Celestia (cel://Urls)
Far too complicated to be done by hand! This will be done much more easily in Celestia.
III) Visualization in Celestia
You activate the slideshow by pressing the 'r' key.
You see the first slide show and a small remote control. This remote is meant to be as unobtrusive as possible and we can move on the screen with the mouse.
Since we did not include a position for the image and text, pictures are centered and texts are in the bottom left corner of the screen.
We are in the normal display mode. The green arrows on the remote control allow respectively to
- - jump at the first slide
- come back to the previous slide
- go to the next slide
- jump forward 5 slides (this can be customized in the config.lua file)
You'll notice a small square in the upper right images. You can use it to resize images.
In this mode the position and size of text and pictures will not be saved.
The red button on the left lets enter in stealth mode. Images and text are not displayed and the URLs are not enabled in Celestia. Instead, we can see briefly appear on the slide number and title (if you've provided one) in the bottom left of the screen. This allows you to quickly scroll through the slides to find the one you want.
A new click on this button returns to normal mode.
An alternative browser method is to press 'r'. This disables the slideshow.
- Continue to use Celestia
When you press again 'r', you will resume the slideshow at the next slide.
IV) Saving the slides
Make up your slide and when you're ready, press the last button (with orange arrows) on the remote.
The buttons change and you get something like this:
In this mode it is still possible to use Celestia and continue to modify the layout on the screen.
When in saving mode, some keys may have been stolen to Celestia:
'j' cycles between left justified, center, right justified
'k' cycles between available colors. (you can add your own colors)
- The buttons with white triangles correspond to the anchor of text. In the case of the slide above, we can see that the text follows the left edge and the bottom edge. It suits us and we do not touch these buttons.
- The buttons with green triangles correspond to the image.
In our case they indicate that the image is attached to the center of the screen, horizontally and vertically.
I prefer the image is linked to right and top edges of the screen. So I click on the green triangles for this
The following button indicates whether the position will be saved in celestia when I return to normal mode. The red cross indicates that it is not the case. As this would be a shame not to keep my beautiful presentation I click on this button
That's it!
I click again on the orange arrows to return to normal mode to validate the change and not to risk destroying my presentation.
Have fun presenting other slides, quit Celestia, and see how _slidecatalog.txt file has been modified.
With my presentation, I get this:
Code: Select all
-- Slide catalog description
-- for slideshow in Celestia
--------------------------------------
-- just a test and a demo for slide show
-- do not pay attention to the
-- real meaning of the text.
----------------------------------------
-- pr?sentation
cel://Follow/Milky%20Way/2010-03-03T20:50:30.24984?x=AAAAAAAAfDgrcxf25v///w&y=AAAAAADA97JCpLbu+v///w&z=AAAAAACAc4x9/JK6+f///w&ow=-0.617474&ox=0.150106&oy=-0.772135&oz=-0.00106112&select=Milky%20Way&fov=7.24318&ts=1<d=0&p=0&rf=1890071&lm=4&tsrc=0&ver=3
D?s l'antiquit? et probablement m?me
bien avant, les hommes ont ?t? curieux
et on cherch? ? comprendre l'Univers.
"
Ce diaporama nous montre quelques-uns
des personnages c?l?bres qui ont
contribu? ? l'histoire des sciences
et de l'astronomie en particulier
# 0 1 -183 -513 1 7
'Aristote
aristote.png 210 -45 417 0 0
cel://SyncOrbit/Sol:Earth/2010-03-01T10:34:40.03296?x=ZeD4CkGRSg&y=45r0EC/wOQ&z=zIfSxDpN7P///////////w&ow=-0.589119&ox=-0.0267761&oy=0.743539&oz=0.315233&select=Sol:Earth&fov=33.604&ts=1<d=0&p=0&rf=1890071&lm=4&tsrc=0&ver=3
ARISTOTE
384 ? 322 av JC
# 0 0 282 -117 1 2
-------------------------------------
-- the following slide has only
-- text to continue the previous one
-------------------------------------
-- Aristote la suite
Il reprend l'id?e d'Eudoxe
qui repr?sente assez bien le
mouvement des plan?tes au
moyen de sph?res concentriques.
Pour lui les sph?res sont r?elles
et sont dou?es de mouvement
spontan?.
# 0 0 199 -241 1 2
---------------------------------------------------------
'you have noticed that the previous picture is not erased
'when the next slide has only text and no picture
'if you actually want to erase the previous picture
'the trick is to add "no.jgp" as the picture file name
'(if you have an actual no.jpg file, rename it !)
---------------------------------------------------------
'petite pause
no.jpg
cel://Follow/Sol:Earth/2010-03-01T10:39:04.17025?x=fAYUefMBRQ&y=tOve9g5WQw&z=7hdhwz0YCA&ow=0.878284&ox=0.299365&oy=-0.27692&oz=-0.249624&fov=35.2855&ts=1<d=0&p=0&rf=1890079&lm=12&tsrc=0&ver=3
Aristote n'?tait pas vraiment un astronome
mais sa vision de l'Univers a influenc? la
connaissance scientifique jusqu'au moyen ?ge
"
Une petite pause pour souffler
et nous continuons notre visite.
# 0 0 -221 -73 1 5
--Ptol?m?e
ptolemee.jpg 36 -429 368 -1 1
cel://Freeflight/2010-03-01T10:33:31.22263?x=wFez/Con8ynx/////////w&y=JymzYb9Wbw&z=zDRdJ2PrbcD6/////////w&ow=-0.651599&ox=-0.347071&oy=0.673936&oz=0.0277609&select=Sol:Earth&fov=33.604&ts=-10<d=0&p=1&rf=1890067&lm=20&tsrc=0&ver=3
Ptol?m?e
Astronome et astrologue,
il v?cut ? Alexandrie et son
travail nous est parvenu par son
oeuvre majeure, L'Almageste, qui
est le trait? d'astronomie le plus
complet depuis l'antiquit? et
jusqu'au moyen ?ge.
# 0 1 -162 -269 0 2
'Syst?me de Ptol?m?e
systeme_ptolemee.png -365 -421 354 1 1
Son syst?me g?ocentrique du cosmos
n'a pas la pr?tention de repr?senter
la r?alit? physique de l'univers, mais
permet de calculer la position des
astres avec une grande pr?cision.
# 0 1 -186 -231 2 2
'Copernic
copernic.jpg -158 -501 480 0 1
cel://SyncOrbit/Sol:Earth/2010-03-01T10:38:41.02329?x=iwjkFLZF6LZU&y=1q5YMiZ1h2/M&z=JrjTa5w/clBM&ow=-0.520093&ox=-0.182156&oy=0.568862&oz=0.610506&select=Sol&fov=33.604&ts=1<d=0&p=0&rf=1890103&lm=6&tsrc=0&ver=3
Nicolas Copernic
"
Reprend les travaux des astronomes anciens
mais a l'id?e de mettre le soleil au
centre de son syst?me.
L'ouvrage qui expose son syst?me ne
sera publi? qu'? sa mort.
# 0 1 -508 -305 2 7
'K?pler
kepler.jpg -1122 -179 481 1 0
cel://Follow/Sol/2010-03-01T10:37:50.81961?x=AACWaICd4Y0z&y=AADUMMcTUL1M&z=AADrf9x5vv8K&ow=0.667079&ox=0.369958&oy=-0.594133&oz=-0.25523&select=Sol:Mars&fov=34.8556&ts=1<d=0&p=0&rf=1890103&lm=6&tsrc=0&ver=3
Johannes Kepler
Calculateur infatiguable, il reprend
les observations de Tycho Brahe et d?couvre
que les plan?tes suivent des orbites
elliptiques avec un mouvement non uniforme
autour du Soleil
# -1 -1 35 96 0 1
'Galil?e
Galilee.jpg -468 -548 478 1 1
cel://Follow/Sol:Jupiter/2010-03-01T10:33:25.52900?x=gNqAfy+smAw&y=AGBB/MJzhi8B&z=ALCOANJ/1+H//////////w&ow=-0.518776&ox=-0.527708&oy=0.490501&oz=0.460222&fov=33.604&ts=-1<d=0&p=0&rf=1890103&lm=6&tsrc=0&ver=3
Galileo Galilei
"
N? ? Pise en Italie, il s'int?resse
? la physique et ? l'astronomie.
Il construit la premi?re lunette
astronomique qui lui permet de d?couvrir
les quatre principaux satellites de
Jupiter
# -1 -1 50 82 0 1
'Newton
newton.jpg 66 -174 559 0 0
cel://Follow/Sol:Earth:Moon/2010-03-03T20:51:14.74041?x=6JlsW1eb4A&y=SH3YKYqWvf///////////w&z=kGpKTPubXQE&ow=0.957891&ox=-0.103122&oy=-0.260463&oz=-0.0630126&select=Sol:Earth:Moon&fov=7.386&ts=1<d=0&p=0&rf=10278775&lm=16&tsrc=0&ver=3
Isaac Newton
Savant math?maticien, physicien, alchimiste et astronome.
Il met au point les outils math?matiques qui lui
permettront d'?tablir la th?orie de la gravitation
universelle.
# -1 -1 20 96 0 1
'Russell
russell.png -555 -304 632 0 0
cel://Follow/61%20Cyg/2010-03-03T20:58:44.09323?x=AAAA6pjatp9VJw&y=AAAAmM5TMjVBcQ&z=AAAAtDLPHpU+Qw&ow=0.616005&ox=0.240403&oy=-0.448638&oz=-0.601222&select=Algol&fov=7.386&ts=1<d=0&p=0&rf=1890103&lm=16&tsrc=0&ver=3
Henry Norris Russel
Astronome am?ricain 1877 - 1957
"
Il ?tablit une classification des ?toiles
en fonction de leur luminosit? et de leur
classe spectrale, r?sum?e par le diagramme
de Hertzsprung - Russel.
Il analysa aussi syst?matiquement les
?toiles binaires ? ?clipses ainsi que la
variation de leur magnitude.
# 0 0 63 -273 2 3
If you want to see it in Celestia, delete (or rename) your _slidecatalog.txt, then copy the _slidecatalog3.txt to the "slides" directory and rename it into _slidecatalog.txt
Enjoy!
This is a beta version. My mind is not fixed on all points.
My intention is to make a tool as easy as possible to use for most people.
All remarks, suggestions, bug reports etc.. are greatly appreciated.
Thank you for your insight and your help.