Code Monkey home page Code Monkey logo

reactiondiffusion_snlite_b3d's Introduction

Reaction Diffusion with Sverchok SNLite node in Blender

Description

This project includes some examples of Reaction Diffusion (RD) simulation with SNLite node in Blender Sverchok add-on.

This project includes:

  • Python script that simulates 2D RD with C code.
  • Python script that simulates 3D RD with C code.
  • Python script that simulates 3D RD "without" C code.
  • Python script that simulates RD on mesh with C code.
  • Python script that simulates RD on mesh "without" C code.

Python scripts "with C code" uses these C codes as C dynamic libraries. So you have to compile these C codes to generate C dynamic libraries in advance. Though you have to do so, these scripts runs very fast and achieves high performance.

Scripts "without C code" can run without C library. But the processing speed and performance are relatively low.

This project idea is originated from @zeffi's gist and nortikin/sverchok#1734 .

Usage

  • Compile C code and make C dynamic library.

    :: Windows
    cl.exe /D_USRDLL /D_WINDLL Basic_RD_xd.c /MT /link /DLL /OUT:libBasic_RD_xd.dll
    # macOS
    gcc -dynamiclib -o ./libBasic_RD_xd.dylib ./Basic_RD_xd.c
    # Linux
    gcc -c -fPIC Basic_RD_xd.c -o Basic_RD_xd.o
    gcc Basic_RD_xd.o -shared -o libBasic_RD_xd.so
  • Launch Blender and open Sverchok node editor.

  • Add Script Node Lite (SNLite) node.

  • Open Text editor in Blender.

  • Copy and paste one of the Python script to the text buffer.

  • Modify "load_library" arguments in the script to load your library (if you use "with C code" script).

  • Put the the text buffer name to the node and click the right button.

Image of Reaction Diffusion with SNLite

Requirements

  • Blender 2.8 (or later)
  • sverchok add-on 0.6 (or later)

Author

asahidari

Licence

GPL 3

reactiondiffusion_snlite_b3d's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.