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/processing
folder. Each simulation folder contains the necessary files.
- Navigate to the simulation's folder and open
sim.pde
in Processing.
- Ensure
initializeRendering
is set totrue
insim.pde
. - Hit play in Processing to start the simulation.
- After running the simulation:
- Navigate to the
render
folder. - Open the folder with the latest rendering session (e.g.,
"001"
). - Open
commands.txt
and 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.mp4
in the respective render session folder.
- Make sure
initializeRendering
is set tofalse
insim.pde
. - Hit play in Processing to run the simulation.
- Clone this repo or download a specific simulation from the
simulations/pygame
folder. 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/pygame
directory.
- Open
sim.py
. - Ensure the
RENDER_VIDEO
variable is set toTrue
. - Run the script.
- The simulation will render a video file named
simulation_with_audio.mp4
in the simulation's folder.
- Open
sim.py
. - Ensure the
RENDER_VIDEO
variable is set toFalse
. - Run the script.