2024-01-25 10:07:21 +01:00
2022-03-31 10:51:10 +02:00
2023-05-16 16:42:29 +02:00
2023-06-20 15:58:51 +02:00
2023-06-20 13:24:22 +02:00
2023-03-13 09:57:55 +01:00
2022-06-27 22:14:03 +02:00
2024-01-23 13:05:50 +01:00
2023-07-04 15:13:55 +02:00
2022-03-15 16:19:24 +01:00
2022-03-29 10:43:57 +02:00
2022-03-15 16:18:40 +01:00
2022-09-29 12:52:05 +02:00

tomcat_blender

lstopo

Scripts to automate TOMCAT data visualization in blender with python. TODO:

  • make cool logo from current sketch
  • build into python module with classes
  • maybe wrap system call of blender
  • add cupy/cucim support (partly done)
  • use openvdb for volume import in blender

required packages: xarray, scikit-image, trimesh, numpy

How to use

  1. Create data files usable in blender

    1. Extract series stl-files for desired time series with e.g. 01_extract_surfaces.py

    or

    1. Convert numpy arrays to openvdb files, e.g. 04_npy_to_openvdb_in_blender.py . OpenVDB is very useful https://www.youtube.com/watch?v=cqLhhjxch2s. You can load the vdb files as Animation in blender and then do everything there without the following steps.
  2. Choose appropitate time step to set up scene and everything (e.g. cycles-render) in blender, do a test render, save the blend-file

  3. Run the animation script from command line

    Windows

    <path_to_binary>blender.exe blend-file.blend --background --python testanimscriptfull.py
    
  4. (optional) adjust frame and sampling rate, better option: create separate avi-files, merge and convert to mkv, e.g. combining ImageJ and ffmpeg

Description
Robert's scripts to automate TOMCAT data visualization in blender with python (migrated from https://gitlab.psi.ch/fcsd_5422/tomcat-blender)
Readme 2.4 MiB
Languages
Python 98.1%
Shell 1.9%