Git Product home page Git Product logo

blendersciviz's Introduction

BlenderSciViz

Preliminary code for plotting data in Blender.

###What this project hopes to achieve?
Show various ways in which the Blender Python API, called bpy, can be used to generate meshes, shaders and vector graphics. These examples are intended to help you code your own visualizations, and can be used on their own or as part of the sci_viz module.

###Useful code snippets

These are tagged depending on if they are visible in a render or only in the 3d viewport. Where it makes sense, examples of both are given.

Scatter plots

Line plots

3D surface plot

Node scripting

  • mini node connection grammar, simplifies connecting existing nodes. example grammar: "Node.001|Color > MixRGB.002|0". Full grammar specs are in the file.

General obj utility scripts

  • bounding box tools, provides mix, max and distance for an object, calculated in world or local coordinates

The sci_viz module
The sci_viz module can be placed inside the blender scripts folder like ../scripts/modules/sci_viz , to conveniently import the various utilities. For example if you need to make a series of node links then add these lines to the top of your python script and you can use the node mini grammar to connect nodes.

import sci_viz 
from sci_viz.node_tools import make_link

Recipes

Here's a broad collection curated recipes. (still work in progress): https://github.com/zeffii/BlenderPythonRecipes/wiki

Gallery

waveform zheight shader

###Useful addons

blendersciviz's People

Contributors

zeffii avatar

Watchers

James Cloos avatar Nishan Singh Mann avatar  avatar

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.