Mac Lab Report
Putting Your Own Pictures into Stellarium
- 2004.09.29
Our planetarium gets installed next week, and when the dust settles it will be time for us to install our projectors and get to work. We are using a special 180° fisheye projector for one of our star projectors, and with it we can project images from programs such as Stellarium, which I have discussed before in this column.
Stellarium is an open-source, free software program developed by Fabien Chéreau. It shows a very realistic sky from the earth. Any location or time can be specified, and the user can scroll around and look in other directions. A zoom feature lets you zoom in on objects such as the moon, planets, and the Messier objects.
Since I and my students have taken a number of photographs of deep sky objects, I thought it would be nice to have the zoom feature present our own images when activated instead of the built-in images. There are no instructions for how to do this that I could find, but I figured there might be a resource file somewhere I could replace. You can do this with Starry Night and The Sky, for example.
It turned out to be easier than I thought.
Most OS X programs are presented to the user as a single icon. Most users don't know this, but the icon is actually a folder containing the actual executable code plus separate resource files. Double-clicking the icon for an OS X app starts the software like any other program. The advantage of this system over Windows-style installations is that all support files (with some exceptions, such as Library support files meant to support several applications and preferences files) are stored together, so when you delete the program, you just throw one thing in the Trash. In Windows, you have to run an uninstaller that gathers all the files that have been scattered all over the hard drive and deletes them.
I started by control-clicking (right-clicking if you have a 2-button mouse) on the Stellarium icon and then selected "Show Package Contents." This opened a window revealing the contents of the Stellarium "application + resources" folder. If you close this window, you have to "Show Package Contents" again.
Inside is a single folder marked "Contents." I opened that to reveal a series of files and folders. The only relevant one to this task is the one marked "Resources." Opening that reveals a number of folders, and through trial-and-error clicking I found that "textures" contains all of the images Stellarium uses when displaying zoomed images. The image files are in .png format, which GraphicConverter can translate from anything it opens.
For my test case I selected M13, a globular cluster in Hercules. Here is M13 as it appears in Stellarium (from a screen shot on the site): http://stellarium.free.fr/gfx/m13.jpg
Using GraphicConverter, I determined that the picture was exactly 256 x 256 pixels. Several others were as well, so I knew I needed to convert my picture to this size as well. Here's my version:
Then I simply "saved as" PNG format, replaced the original file with mine, and presto, Stellarium is customized. Now I can assign my planetarium students the task of converting and replacing our images on the planetarium computer. And if they're reading this (and they will), they should come ask me where the original files are stored on our server.
We're actually using a version of the program not available on the website. James Lowery built an OS installer for the latest version (0.6.0) that shows a 360 degree panorama in a circular display on the monitor and sent us a copy as a favor. James, you should post your installer on the Stellarium site - others might want it.
Anyway, we're going to have a very busy week next week, so I'd better get back to work on that. Until next time....
Jeff Adkins is a science teacher who isn't afraid to state his preferences in computing platforms. In his classroom he has everything from a beige All-in-One to a a G4 XServe, and they all work together nicely. He calls himself the "poster child for technology integration" in the classroom. He was the 2006 Outstanding Educator of the Year for the California Computer Using Educators (CUE) organization. He also maintains a site for astronomy teachers at www.AstronomyTeacher.com.
Recent Mac Lab Reports
- Microsoft Word 2004 vs. iWork Pages 1.0 for writing a book, 2008.01.10. Microsoft Word is great for technical writing, powerful yet slow, while Pages lets you concentrate on just writing, making it great for novels.
- iWeb a great tool for quickly creating an attractive website, 2007.09.11. Apple's iWeb software isn't just easy to use, it also integrates nicely with .mac and other programs in the iLife bundle.
- Use your Bluetooth phone to control your Mac? Maybe, 2007.02.27. Salling Clicker software turns many Bluetooth phones into remote controls for Bluetooth-equipped Macs.
- More in the Mac Lab Report index.
Links for the Day
- Mac of the Day: Macintosh Portable, introduced 1989.09.20. The nearly 16 lb. behemoth was innovative but not a smashing success.
- February 13 in LEM history: 01: Layoffs may hurt Mac market - 02: Unix for the Mac - Rage against the Macintosh - 03: Options to move data from PCs to Macs - 04: Low cost RAM for older 'Books - 06: Apple, IBM, and Intel - 07: Picking the right cheap computer, new or used - 08: I needed to find an older Mac
- Support Low End Mac
Recent Content on Low End Mac
- Fix Home Button Delay, Tablet the Ultimate Mobile PC, iPad Notebook a Possibility, and More, iOS News Review, 2012.02.10. Also using your iPad at work, two photo editors, a new iPad text editor, Macally's magnetic iPad 2 stand, and more.
- White MacBook Goes End-of-Life, Logitech Touch Mouse Supports Gestures, Firmware Updates, and More, The 'Book Review, 2012.02.10. Also MacBook Air better than any Ultrabook, docks for MacBook Pro models, Intel offers improved SSDs, and more.
- Mac and iOS Browsers: Options Galore, Freeware Forum, 2012.02.10. Safari is adequate on Mac and great on iOS, but the range of good alternatives is stunning. LEM writers share their favorites.
- Apple's Support Lead Shipping, Smartphones Outsell PCs, OS X Ported to ARM by Intern, and More, Mac News Review, 2012.02.10. Also the power of Tex-Edit Plus, Google and Twitter are already censoring the Web, Snow Leopard Security Update, and more.
- LogMeIn: Remote Screen Sharing for the Rest of Us, Alan Zisman, Zis Mac, 2012.02.09. Configuring the Mac's built-in screen sharing to work over the Internet can be difficult or impossible. LogMeIn makes it easy.
- 15 Years Ago Motorola Unveiled the PowerPC G3, Low End Mac Round Table, 2012.02.06. The G3 processor was optimized for real world Mac software and made a big leap forward in efficiency.
- Don't Kill Caps Lock, Learning to Love the iOS Keyboard, and an Adaptive iPad Keyboard, Charles W. Moore, Miscellaneous Ramblings, 2012.02.06. The Caps Lock key has a useful function, the iPad's keyboard really is useful, and checking out an adaptive keyboard for the iPad.
- More links in our archive.
Recent Deals
- Best MacBook Air Deals
- Best iBook G4 Deals
- Best iPad Deals
- Best Classic Mac OS Deals
- Best Apple TV Deals
- Best 15" MacBook Pro Deals
- Best Power Mac G4 Deals
- Best Mac OS X 10.6 Deals
- More deals in our archive.
About LEM Support Usage Privacy Contact
Follow
Low End Mac on Twitter
Join Low End Mac
on Facebook
Low End Mac Reader Specials
TypeStyler 11 is now in the Mac App Store!! -- Special Introductory Price of $59.95!! -- To Buy From The Mac App Store Click Here Now!! Or buy direct
from Strider Software.
Don't install Parallels to play poker online! Poker Mac will show you how to download and install a native Mac poker and Mac Casino applications in minutes.
Favorite Sites
MacSurfer
Cult of Mac
Shrine of Apple
MacInTouch
MyAppleMenu
InfoMac
The Mac Observer
Accelerate Your Mac
RetroMacCast
PB Central
MacWindows
The Vintage Mac Museum
DealMac
Deal Brothers
Mac2Sell
Mac Driver Museum
JAG's House
System 6 Heaven
System 7 Today
the pickle's Low-End Mac FAQ
Affiliates
Amazon.com
The Apple Store
The iTunes Store
PC Connection Express
GainSaver
Parallels Desktop for Mac
eBay

