Code Monkey home page Code Monkey logo

kaikostack / bullet-constraints-builder Goto Github PK

View Code? Open in Web Editor NEW
132.0 25.0 21.0 29.15 MB

Add-on for Blender to connect rigid bodies via constraints in a physical plausible way. (You only need the ZIP file for installation in Blender. Click the filename and at the next page "Download", right click and "Save As" won't work!)

Home Page: https://inachuslaurea.wordpress.com

License: GNU General Public License v2.0

Python 100.00%
blender bullet-physics-engine simulation catastrophic-events discrete-element-method rigid-body-dynamics destruction

bullet-constraints-builder's Introduction

Bullet Constraints Builder for Blender

Short description: Add-on for Blender to connect rigid bodies via constraints in a physical plausible way.

Project description: The Finnish Laurea University of Applied Sciences is taking part in an EU funded project, named Inachus. The project in general examines measures to improve the first response in case of catastrophic events like earthquakes or explosions etc. A particular part of this project is the simulation of the effects that catastrophic events have on built structures. Within the three year lasting project Laurea researches the application of the discrete element method DEM to virtually simulate collapsing building structures. The DEM approach will be compared with the finite element method FEM and the applied element method AEM.

Add-on for Blender: We are developing an add-on that complements the bullet physics engine in Blender. The add-on will allow to attribute realistic structural dependencies between building elements such as pillars, walls, beams, slabs etc. The tool set in conjunction with the bullet physics engine should deliver satisfactory simulation results. Kai Kostack and Martin Felke have for many years laid a solid ground work for the current development. Kai Kostack has now finished a first script version that automatically sets multiple constraints to enable several force evaluations on precise junction points between rigid objects. The script also automatically calculates the breaking threshold values for each of the constraints based on material properties.

Expectations: We expect, that we will be able to simulate failing building structures under hazardous impact to a degree that allows predictions, what building parts will resist the impact and where falling debris will accumulate. In a best case scenario the simulation will indicate where spatial pockets will be likely to be formed, that allow victims to survive.

Contact: Kai Kostack: [email protected]; Oliver Walter: [email protected]

Links: https://inachuslaurea.wordpress.com; http://www.inachus.eu

bullet-constraints-builder's People

Contributors

kaikostack avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bullet-constraints-builder's Issues

Error Build

Hi, I have my model (it is an unique volume exported from rhino) and I followed all the tutorial instructions. The dots were generated but when I tried to run the "build" I obtanied an error: List index out of range

Can you help me to solve it, please?

Im trying to simulate the response of the model under an earthquake (Italy 2012), do you have any suggestion for the ground motion data?

[https://ibb.co/bZ3aFq] <- error pic

Loading a new .ifc model into existing simulation -- intense explosions on earthquake motion

Hello, been experimenting with your simulation setup in Blender... Very nice work!

A question: we tried loading different models of various building shapes to see how well the simulation can handle them. They were exported from various other tools like SketchUp models, or others as .ifc. Most loaded successfully, descritization and running all preprocessing tools appears to work for most models, but some make Blender crash. In the console window there seems to be graph problems or odd edges and some other errors. The models that do complete however, with earthquake motion, appear to "explode" very intensely while your original model nearby appears to fall apart "normally" as per your simulation. This suggests our building material properties imported are not somehow set and may be too "light weight". How to easily configure the material building properties similarly to the multifamily building sample you have? Thanks!

Copying elements with constraints alters the geometry of the elements

I notice that when applying the constraints to elements, the elements are adjusted eg scaled down by a small %. A problem arises when copying such elements as these copies are scaled down also, and some elements no longer meet the minimal criteria that holds them to adjacent elements, hence they fall down as they are not connected to anything. This makes building blends difficult.

Is there a way to: 1) avoid the initial geometric adjustment of elements, 2) alternatively, is there a way to avoid geometric adjustments of copied elements that have constraints already assigned?

The KeyError

Dear Kai,
I want to learn BCB. When I follow the steps, when I click Discretize of Preprocessing Tools, the following error will appear

KeyError:"bpy_prop_collectiom [key]:key "Solidify" not found

I hope you can answer this question, thank you!

Blender 2.8+ port - again.

Its been about 3 years since the Blender 2.8+ series of versions have come out, and by now most Blender tools and artist have moved on to these versions. It would be very convinient to have a port for newer Blender versions, for example for usage with the Eevee renderer and the better multicore support.

Issues regarding Standard Multi-Family House tutorial

I am working on the Standard Multi-Family House tutorial. I followed the steps in the tutorial, However, the building will always collapse without deleting any elements and simulating earthquakes. I run the preprocessing one by one, and then I load the configure data and build. If I run preprocessing steps automatically, I will not have the load configure data options. Thank you for your time to take a look at this issue.

Question about BCB

Hi Kai,

I am learning to use BCB. What key should be pressed to achieve the effect of dividing buildings and viewing the interior, just like the effect in your video.

Thank you!
1712118308217

Element Groups in v2.45 not saved in Blender 2.78a

When creating a default element group eg RC Columns, then saving the .blend and exiting blender, reopen blender and open the previously saved blend, no Element Groups are shown in the list under the Bullet Constraints Builder.

Building not working

I cant build and cant turn groups into element groups, when I try I get an error and I tried using the tutorial too, it could be that I am too unexperienced but I cant do it, here is the image and the blend file:
unfinished destruction.zip
image

BCB for masonary infills

Hi Kai,

can you please explain how to build constraints for masonary walls (masonary infills in RC frame structures) using the BCB add-on?
Thank you.

Wish you a great day!

Export displacement time history

Dear Kai,

is there a way to increase the time increment for the export of the displacement time history? Regardless of the steps per second I choose, the time increment for the displacement time history is always 0.04 s in the exported csv file which is in my case too inaccurate. Thanks in advance.

Building causes spaces in-between objects

After preprocessing, I built the structure I made, but then all the objects became spaced out. I tried looking for a setting to disable this but it doesn't seem to exist.

Before building:
image

After building:
image

Bullet Constraints Builder crashes when clearing constraints

A common crash/error issue is reported by the Bullet Constraints builder when trying to clear the constraints. Once the error occurs (see screenshot) the blend can no longer be used by the bullet constraints builder tool and the constraints cannot be cleared as the error repeats each time.

Is there a way to reliably clear all constraints without this error occurring or is a fix needed? Appears to occur when deleting an element, then clearing the constraints, although this does not happen all the time.

Using v2.45 with blender 2.78a

blender bullet error

Cheers

Problem Using On Laptop

I can install the addon but when i click on the addon in blender to use it, it has a error code

Doesn't Build

Doesn't build, I'm not using your example projects, I got my own model and it doesn't build when I press the button
And sometimes when I press the build button blender gets stuck in the not responding state

addon installation error for blender version 3.4.1

Hi,
I am having issues trying to activate the installed BCB (latest version) on blender 3.4.1 about ;
'bpy.app' object has no attribute 'binary_path_python'

please see below screenshot for details

any help is appreciated,
thanks
Erhan

image

Blender 2.8 update

The 2.8 update has effectivly removed the toolshelf (which this plugin relys on).Will there be any update to the plugin or should I find some other way of doing this?

bcb.get_config() crashes when run as script

Dear Kai,

I am new to Blender and scripting, so this might as well be a general Blender thing, but since the affected method belongs to BCB, I thought I'd post here.

When I run the command bpy.ops.bcb.get_config() within the Blender Python console, it works like expected, i.e. the Element Group List is loaded correctly from file.


However, when creating this simple Python script mwe.py

import bpy
bpy.ops.bcb.get_config()

and calling it with blender --background "MY_BLEND_FILE.blend" --python mwe.py will produce the following error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\...\mwe.py", line 3, in <module>
    bpy.ops.bcb.get_config()
  File "C:\Users\...\Blender 2.79\2.79\scripts\modules\bpy\ops.py", line 189, in __call__
    ret = op_call(self.idname_py(), None, kw)
RuntimeError: Error: Traceback (most recent call last):
  File "C:\Users\...\Blender 2.79\2.79\scripts\addons\kk_bullet_constraints_builder\gui_buttons.py", line 72, in execute
    warning = getConfigDataFromScene(scene)
  File "C:\Users\...\Blender 2.79\2.79\scripts\addons\kk_bullet_constraints_builder\build_data.py", line 409, in getConfigDataFromScene
    elemGrps = mem["elemGrps"]
KeyError: 'elemGrps'

location: C:\Users\...\Blender 2.79\2.79\scripts\modules\bpy\ops.py:189

Any idea why the command only works from within the Blender UI?

Clamped support condition

Dear Kai,

I would like to define clamped supports (Mx, My, Mz) on column bases. In the BCB add-on I can only find support conditions for X, Y and Z (under "Fix Foundation"). Can you please explain me how to define a support against moment action?
Thank you very much.

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.