This project is an animation rendered frame by frame from PostScript scripts. Written for the computer graphics assignment.
Watch it online:
- Path clipping
- Movement along path with rotation
- L-system-based plant modeling
- FPS-independent animations
Bash script generates PostScript files for each frame (see frames-ps
folder). Each frame script provides variables like FPS, current frame, current time etc. Then it runs main script file (frame.ps
) which renders the frame. All frames all converted to a movie using ffmpeg
.
To build the movie enter the main directory and run:
./setup-deps.sh
./setup-frames.sh
./render-frames.sh # It takes a while!
./render-movie.sh
See constants.ps
for FPS settings etc.
To render a single frame run:
./setup-deps.sh
./setup-frames.sh
./render-frame.sh <frame-num>
For subsequent renders you can just run render-frame.sh
.
Debug mode renders some helper curves on top of the animation. Debug mode is enabled by default. To turn it off, set /debug
to 0
in the frame.ps
file.