/xmastree2020

My 500 LED xmas tree

Primary LanguagePythonMIT LicenseMIT

SDF Christmas Tree

This is in principle a renderer that outputs to a volumetric display.

Video by Stand-up Maths

Instructions

To render this on your local machine

  • Open3D conda install -c open3d-admin open3d
  • numpy
  • Stuff I forgot

To use the accelerated GPU version (set CUDA to True in lib.py):

  • cupy pip install cupy-cuda101

Seems to make little to no difference tho


Julia Set

  • numpy-quaternions conda install -c conda-forge quaternion
  • numba pip install numba
  • scipy pip install scipy

Run test_render.py

Note: this program blocks the window close button, and I am too lazy to fix it. Know how to force close it

Admire the preview.

To change the rendered scene, go to the top of the file and change this line

from scenes.[SCENE_NAME] import render_point, tick, set_palette_mode

Demo of scenes

Growing Sphere