Skip to content

OliverHofkens/bubble_chamber_bpy

Repository files navigation

Bubble Chamber BPy

Bubble chamber simulation in Blender + Python

Small example render of simulation

A spiritual successor to my previous 2D project written in Rust+Amethyst, this time written in Python and rendering in 3D with Blender. It simulates the phenomena that occur in bubble chambers or cloud chambers where decaying, charged particles leave spiraling trails as they move through a magnetic field.

Requirements

  • Blender 2.80 or higher

Installation

  • Clone the repository and run pipenv install inside the project.

Usage

  • Run blender -P <path_to_repo>/bubble_chamber_bpy/blender.py
  • The simulation should run and Blender should open up with a fully populated scene + animations
  • Hit 'Render Animation' or play around with the scene/animations.

Development

Environment Setup

  • Clone this repository
  • cd bubble_chamber_bpy
  • Run pipenv install --dev

Tests & Linting

  • Run make lint to run linting and type checking.
  • Run make test to run tests.
  • Run pipenv run tox to do the above in dedicated environments and across all configured Python versions.

Releases

No releases published

Packages

No packages published