3D scatter plots with Blender

posted Apr 25, 2011, 7:20 AM by Mathieu Gibert   [ updated Mar 6, 2013, 4:21 AM ]

Here is a little python script to import a set of points into blender.
This is a way of getting very nice 3D plot rendered by a professional software!

data_test.txt is a data sample file containing the positions (x,y,z), the velocities (vx,vy,vz), and the accelerations (ax,ay,az) of the particles (careful this is not the input file for the python script...)

testPY.txt is the input file for the python script. It contains ten column : x,y,z,a1,a2,a3,r,g,b,size
Where (x,y,z) are the positions, (a1,a2,a3) are planed to be angles that will represent the particles rotation, (r,g,b) are the RGB values for the color of the particles (in that case computed based on the velocity amplitude), and size is the diameter of the particles.

TracksTest1.txt is a "track file format" downloadable HERE
It is just one column that reads that way:

Nb of tracks in the file - ntrk
(ntrk times){
    Trk index (from 0 to ntrk)
    Nb of frames (how long is the track) - nbfr
    First timestamp at which the track start
    (nbfr times){

This is what you get out of this code! ;-)
"Simultaneous 3D measurement of the translation and rotation of finite-size particles and the flow field in a fully developed turbulent water flow."
Simon Klein, Mathieu Gibert, Antoine Bérut, Eberhard Bodenschatz (2013).
Measurement Science and Technology special issue on « Advances in 3D velocimetry » 

Example of Eulerian data type

posted Jul 19, 2009, 11:14 PM by Mathieu Gibert

Eulerian measurements.
Testing file only!!!

Curriculum Vitae

posted May 17, 2009, 8:44 AM by Mathieu Gibert   [ updated May 24, 2011, 10:15 AM ]

Version June 2011

1-3 of 3