interactivecomputergraphics / blenderpartiotools Goto Github PK
View Code? Open in Web Editor NEWBlenderPartioTools is an open-source add-on to import particle data in Blender.
License: MIT License
BlenderPartioTools is an open-source add-on to import particle data in Blender.
License: MIT License
Hi,
I'm able to install and import particles into Blender 2.80. I'm using the .bgeo
file format and the following field names: id
, position
, pscale
.
When I import the particles into Blender, they appear correct and I am able to animate through the frames in layout mode.
However, as soon as I change certain settings, e.g. turn off physics for the particle system, the particles blow up and get scattered all around the place. If I do not change anything and just render the sequence of frames straight away, there also appears to be some gravity/physics/collision detection applied and the particles do not end up rendered as initially shown in the layout editor. They fall through the ground plane or sometimes get split and go in different directions.
I realize this might not be an issue with the import script itself, but would someone happen to know what might be causing this?
Unable to render fluid particles. They do not load or the blender closes.
This applies to rendering animations.
Hello.
Today I learned about the existence of this add-on.
I am very glad that you created it.
I tried importing bgeo files into blender 2.80 and everything works.
But blender 2.81 (official release, windows os) does not work.
Prints this error to the console:
[<function load_post at 0x000000000EF6FA68>, <function load_post at 0x0000000010
60F9D8>, <function loadPost at 0x000000001220D168>]
Frame Change 2
TypeError: __call__() takes 2 positional arguments but 3 were given
And I have some questions:
Do you have plans to make blender scene exporter in json format?
Will a polygon fluid surface generator and a foam generator be added to the splishsplash simulator?
I am using the addon from this commit:
bdc3b99
Blender Version: 2.82 (OS Windows 10)
I created a simulation using SPlisHSPlasH.
Here is the json file:
{
"Configuration":
{
"pause": true,
"timeStepSize": 0.005,
"numberOfStepsPerRenderUpdate": 2,
"particleRadius": 0.025,
"density0": 1000,
"simulationMethod": 4,
"gravitation": [0.0, -9.81, 0.0],
"cflMethod": 0,
"cflFactor": 0.5,
"cflMaxTimeStepSize": 0.05,
"maxIterations": 100,
"maxError": 0.05,
"maxIterationsV": 1000,
"maxErrorV": 0.5,
"stiffness": 50000,
"exponent": 7,
"velocityUpdateMethod": 0,
"enableDivergenceSolver": true,
"boundaryHandlingMethod": 2,
"enablePartioExport": true,
"dataExportFPS": 30
},
"Fluid":
{
"density0": 1000,
"colorField": "velocity",
"colorMapType": 1,
"renderMinValue": 0.0,
"renderMaxValue": 5.0,
"surfaceTension": 1.0,
"surfaceTensionMethod": 0,
"viscosity": 2000.0,
"viscosityMethod": 7,
"viscosityBoundary": 1000.0,
"vorticityMethod": 0,
"vorticity": 0.0,
"viscosityOmega": 0.05,
"inertiaInverse": 0.5,
"maxEmitterParticles": 150000,
"emitterReuseParticles": false,
"emitterBoxMin": [-4.0,-1.0,-4.0],
"emitterBoxMax": [0.0,4,4.0]
},
"Emitters": [
{
"width": 8,
"height": 8,
"translation": [0.0, 0.0, 0.0],
"rotationAxis": [0, 0, 1],
"rotationAngle": -1.57,
"velocity": 3,
"emitStartTime": 0,
"type": 1
}
],
"RigidBodies": [
{
"geometryFile": "collision.obj",
"color": [0.1, 0.4, 0.6, 1.0],
"isDynamic": false,
"isWall": true,
"mapInvert": false,
"mapThickness": 0.0,
"mapResolution": [20,20,20],
"samplingMode": 1
}
]
}
collision.obj
v -2.000000 -1.261899 2.000000
v 2.000000 -1.261899 2.000000
v -2.000000 -1.261899 -2.000000
v 2.000000 -1.261899 -2.000000
v -2.000000 1.229817 2.000000
v 2.000000 1.229817 2.000000
v -2.000000 1.229817 -2.000000
v 2.000000 1.229817 -2.000000
v -2.833201 1.229817 2.833201
v 2.833201 1.229817 2.833201
v -2.833201 1.229817 -2.833201
v 2.833201 1.229817 -2.833201
v -2.833201 -2.448940 2.833201
v 2.833201 -2.448940 2.833201
v -2.833201 -2.448940 -2.833201
v 2.833201 -2.448940 -2.833201
vn 0.0000 1.0000 0.0000
vn -1.0000 0.0000 0.0000
vn 1.0000 0.0000 0.0000
vn 0.0000 0.0000 1.0000
vn 0.0000 0.0000 -1.0000
vn 0.0000 -1.0000 0.0000
s off
f 2//1 3//1 1//1
f 6//1 12//1 8//1
f 6//2 4//2 2//2
f 7//3 1//3 3//3
f 8//4 3//4 4//4
f 5//5 2//5 1//5
f 16//5 11//5 12//5
f 7//1 9//1 5//1
f 8//1 11//1 7//1
f 5//1 10//1 6//1
f 15//6 14//6 13//6
f 13//4 10//4 9//4
f 14//3 12//3 10//3
f 15//2 9//2 11//2
f 2//1 4//1 3//1
f 6//1 10//1 12//1
f 6//2 8//2 4//2
f 7//3 5//3 1//3
f 8//4 7//4 3//4
f 5//5 6//5 2//5
f 16//5 15//5 11//5
f 7//1 11//1 9//1
f 8//1 12//1 11//1
f 5//1 9//1 10//1
f 15//6 16//6 14//6
f 13//4 14//4 10//4
f 14//3 16//3 12//3
f 15//2 13//2 9//2
When I import bgeo files, blender writes to the console. Particles are not imported:
Traceback (most recent call last):
File "C:\Users\Pavel_Blend\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\BlenderPartioTools.py", line 89, in __call__
particles.foreach_set("location", pos)
RuntimeError: internal error setting the array
Particles are imported in this commit:
24ee41d
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.