Downloads‎ > ‎

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){
        x
        y
        z
        vx
        vy
        vz
        ax
        ay
        az
    }
}

CoverMST_feb2013
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 » 

ċ
CreateScene.py
(3k)
Mathieu Gibert,
Apr 25, 2011, 7:23 AM
ċ
data_test.txt
(405k)
Mathieu Gibert,
Apr 27, 2011, 2:27 AM
ą
Mathieu Gibert,
Apr 25, 2011, 7:23 AM
ą
render6.png
(1771k)
Mathieu Gibert,
May 10, 2011, 9:58 AM
ċ
testPY.txt
(374k)
Mathieu Gibert,
Apr 27, 2011, 2:31 AM
Comments