Skip to content
This repository has been archived by the owner on Jul 26, 2020. It is now read-only.

An animation rendered frame by frame from PostScript scripts.

Notifications You must be signed in to change notification settings

kantoniak/2019z-gfk-postscript

Repository files navigation

PostScript Movie

Release version preview

This project is an animation rendered frame by frame from PostScript scripts. Written for the computer graphics assignment.

Watch it online:

Implemented features:

  • Path clipping
  • Movement along path with rotation
  • L-system-based plant modeling
  • FPS-independent animations

Building

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.

Build order

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.

Rendering a single frame

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

Debug version preview

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.

About

An animation rendered frame by frame from PostScript scripts.

Topics

Resources

Stars

Watchers

Forks