Examples, Tips and Customization
Gravit Home / Documentation Index
Overview
Some things to do for when you get bored!
Screen Saver on a single simulation
You can make your screen saver only work on one simulation automatically.
- The first thing you need to do is start a (large) simulation with many particles and galaxies or whatever you want!
- Record a few frames to see how it goes, if there aren't too many self exploding galaxies save your simulation:
save myscreensaver
- Now that you have a simulation for your screen saver to work on, backup your current screensaver.cfg and make a new one:
# Run gravit.cfg to get the colour scheme and a few other settings
exec gravit.cfg
# Go fullscreen, like a screensaver would
videofullscreen 1
# Hide the on screen display, to make it look like a screensaver
drawosd 0
# load up the simulation
load myscreensaver
# start recording
record
# automatically save every 10 frames
saveauto 10
# rotate your view automatically
autorotate 0 0.01 0
- Make sure the value of g is the same as when you saved your simulation originally, or you may get wierd results.
- Test the screensaver.cfg:
exec screensaver.cfg
- When the screensaver is running, you can hit space at any time to use Gravit.
- Now you can make a huge simulation and not worry about manually running Gravit!