Written using a Semi-Autonomous Production Engine instance (SAPE), these visual simulations explore various concepts in mathematics and physics, along with some imaginative and made-up scenarios.
To use the simulations provided in this repo, follow these steps:
- Download and install Processing from processing.org.
- Clone this repo or download a specific simulation from the
simulations/processingfolder. Each simulation folder contains the necessary files.
- Navigate to the simulation's folder and open
sim.pdein Processing.
- Ensure
initializeRenderingis set totrueinsim.pde. - Hit play in Processing to start the simulation.
- After running the simulation:
- Navigate to the
renderfolder. - Open the folder with the latest rendering session (e.g.,
"001"). - Open
commands.txtand copy the full rendering command. - Open a terminal at the root folder of the simulation and paste the command.
- Execute the command in the terminal.
- Navigate to the
- The video will be rendered as
output_final.mp4in the respective render session folder.
- Make sure
initializeRenderingis set tofalseinsim.pde. - Hit play in Processing to run the simulation.
- Clone this repo or download a specific simulation from the
simulations/pygamefolder. Each simulation folder contains the necessary files.
- To run the simulations, you need to have the following libraries installed:
pygame,opencv-python,moviepy, andpydub. You can install these dependencies using pip:
pip install pygame opencv-python moviepy pydub- Each simulation is contained within its own folder in the
simulations/pygamedirectory.
- Open
sim.py. - Ensure the
RENDER_VIDEOvariable is set toTrue. - Run the script.
- The simulation will render a video file named
simulation_with_audio.mp4in the simulation's folder.
- Open
sim.py. - Ensure the
RENDER_VIDEOvariable is set toFalse. - Run the script.