English
Quick start
This tutorial builds rise-origin from source on Linux and opens a window with a pile of rigid and soft boxes. The first build compiles the engine and its libraries and takes most of the time.
Before you start, your machine needs:
- Linux on x86_64 with an NVIDIA GPU from Volta to Hopper, or a newer one with the
cuda13backend. - The CUDA toolkit, with
nvccon yourPATH. - Python 3.10 or newer, CMake 3.22 or newer, a C++ compiler,
nasmandmeson.
Build the engine
Clone the repository and enter it:
bashgit clone https://github.com/iffiX/rise-origin cd rise-originCreate a virtual environment and activate it:
bashpython3 -m venv venv source venv/bin/activateInstall the engine's GPU backend and the Python package. This step compiles the engine:
bashpip install ./rise_origin/cuda12 .Confirm that the package imports:
bashpython -c "import rise_origin; print(rise_origin.__file__)"The command prints a path inside your virtual environment.
Run a world
Run the first example:
bashpython examples/basic/boxes.pyA window opens, and sixteen rigid and soft boxes fall and settle into a pile.
Close the window, then record the same world to a video:
bashRISE_MODE=record RISE_OUT=boxes.mp4 RISE_DURATION=4 python examples/basic/boxes.pyThe script opens no window and writes
boxes.mp4when four seconds of the world have passed.