Micrograph is a Python toy that uses ModernGL to render 3D objects.
These instructions will get you a copy of the project up and running on your local machine.
Micrograph requires Python 3.11 or later. You also need to install pipenv
, a tool for managing Python virtual environments. You can install pipenv
by running:
pip install pipenv
- Clone the repository to your local machine:
git clone https://github.com/maxim-xyz/micrograph.git
- Navigate to the root directory of the project:
cd micrograph
- Install the project dependencies using pipenv:
pipenv install
This will install all the necessary dependencies specified in the Pipfile and Pipfile.lock.
Once the dependencies are installed, you can run the main script by executing:
pipenv run python main.py
There currently only is basic profiling available, you can enable it by passing the '--profile' argument:
pipenv run python main.py --profile
This will create a file named output.pstats which you can analyze with tools such as SnakeViz to visualize the profiling data.