Lightning/electric-arc mesh generator using laplacian growth. #27189
Closed
opened 2011-04-27 06:48:52 +02:00 by Thomas Eldredge
·
15 comments
No Branch/Tag Specified
main
blender-v4.0-release
new-color-presets-addons
blender-v3.3-release
blender-v3.6-release
blender-v3.5-release
brush-assets-project
blender-v2.93-release
blender-v3.4-release
xr-dev
blender-v3.2-release
blender-v3.1-release
screenshots-manual
gltf_vtree
blender-v2.83-release
blender-v3.0-release
xr-controller-support
studio-sprite-fright
asset-browser-poselib
blender-v2.92-release
blender-v2.91-release
blender-v2.90-release
greasepencil-addon
xr-world-navigation
soc-2019-openxr
blender-v2.82-release
blender-v2.81-release
filebrowser_redesign
blender-v2.80-release
blender2.7
blender-v2.79b-release
blender-v2.79a-release
blender-v2.79-release
fbx_experiments
blender-v2.78b-release
collada-2
blender-v2.78-release
rigify_fixes
fbx_io_export_ignore_parents
v3.6.4
v3.6.3
v3.3.11
v3.6.2
v3.3.10
v3.6.1
v3.3.9
v3.6.0
v3.3.8
v3.3.7
v2.93.18
v3.5.1
v3.3.6
v2.93.17
v3.5.0
v2.93.16
v3.3.5
v3.3.4
v2.93.15
v2.93.14
v3.3.3
v2.93.13
v2.93.12
v3.4.1
v3.3.2
v3.4.0
v3.3.1
v2.93.11
v3.3.0
v3.2.2
v2.93.10
v3.2.1
v3.2.0
v2.83.20
v2.93.9
v3.1.2
v3.1.1
v3.1.0
v2.83.19
v2.93.8
v3.0.1
v2.93.7
v3.0.0
v2.93.6
v2.93.5
v2.83.18
v2.93.4
v2.93.3
v2.83.17
v2.93.2
v2.93.1
v2.83.16
v2.93.0
v2.83.15
v2.83.14
v2.83.13
v2.92.0
v2.83.12
v2.91.2
v2.83.10
v2.91.0
v2.83.9
v2.83.8
v2.83.7
v2.90.1
v2.83.6
v2.90.0
v2.83.5
v2.83.4
v2.83.3
v2.83.2
v2.83.1
v2.83
v2.82a
v2.82
v2.81a
v2.81
v2.80
v2.80-rc3
v2.80-rc2
v2.80-rc1
v2.79b
v2.79a
v2.79
v2.79-rc2
v2.79-rc1
v2.78b
v2.78a
v2.78
v2.78-rc2
v2.78-rc1
v2.77a
v2.77
v2.77-rc2
v2.77-rc1
v2.76a
v2.76
v2.76-rc3
v2.76-rc1
v2.75
v2.75-rc2
v2.75-rc1
v2.74
v2.74-rc4
v2.74-rc3
v2.74-rc2
v2.74-rc1
v2.73a
v2.73
v2.73-rc1
v2.72
v2.72-rc1
v2.71
v2.71-rc1
v2.70a
v2.70
v2.70-rc
v2.69
v2.68
v2.67b
v2.67a
v2.67
v2.66a
v2.66
v2.65a
v2.65
v2.64a
v2.64
v2.63a
v2.63
v2.62
v2.61
v2.60a
v2.60
v2.59
v2.58a
v2.58
v2.57b
v2.57a
v2.57
v2.56a
v2.56
v2.55
v2.54
v2.53
Labels
Clear labels
Apply labels
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
Milestone
Set milestone
Clear milestone
No items
No Milestone
Projects
Set Project
Clear projects
No project
Assignees
Assign users
Clear assignees
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#27189
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Project: Blender Extensions
Tracker: Py Scripts Contrib
Python: 3.2
Blender: 2.61
Author(s): teldredge
Script name: Laplacian Lightning Generator
Homepage: http://www.funkboxing.com
Wiki page: http://www.funkboxing.com/wordpress/?p=301
Category: Object
SVN Download: https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons/object_laplace_lightning.py
Status: Buggy
%%%Features:
Uses a variation of DBM (Dielectric Breakdown Model) to simulate Laplacian growth.
Mainly used to create lighting and electric arcs but can also be setup to create other interesting shapes. Currently these arcs are not animated by the script but they can serve as a good starting point for many effects.
Setup:
copy object_laplace_lightning.py to /<Blender-Install-Folder/2.5x/scripts/addons/
enable addon in user prefs. (Object > Laplacian Lightning)
UI is in View3D > Tool Shelf > Laplacian Lightning (object mode)
Manual:
First Try:
press 'create setup objects'
press 'generate lightning'
Test File:
contains script and material/compositor presets for rendering lighting.
Options:
setup mainly involves the placement of the origin and ground/cloud. this defines a starting and ending point for the bolt/arc. insulator object can be placed to restrict growth in area of bounding. settings can be manipulated to tune the look of the bolt.
Settings:
iterations – maximum number of cells to create (more needed for larger structures)
grid unit size – size of a cell in BU (grid resolution)
straightness – user variable to control branchiness/straightness of bolt (2-10, 6.3 for lighting)
origin object - object to use a starting point
use ground object – object to use a ground plane. loop will terminate if bolt reaches this
ground charge – charge of ground plane
use cloud object – object to use a cloud. loop will terminate if bolt reaches this
ground charge – charge of each cell in cloud
use insulator object - lightning cannot travel through objects bounding box
mesh – create vert/edge mesh from data
cube – create cube objects from data
voxel – create a 64x64x64 voxel data file from data outputs to 'FSLGvoxels.raw'
Output:
default output is 'mesh'. this will create 3 meshes, one for main bolt, one for 'secondary' branches, one for 'tips'. in EXAMPLE file these are automatically assigned materials with varying EMIT settings for decent lighting effect. These can also be converted to curves and better material settings chosen.
cube and voxel output are mainly for testing and experimentation.%%%
Changed status to: 'Open'
This task was automatically closed as archived as part of migration, because it was determined to be no longer active.
The authoritative list of addons is on the wiki, we no longer have a report for each addon to track bugs and updates. Bugs can be reported individually and assigned to the addon developers. See the #Addons project page for more information on the workflow.
Changed status from 'Open' to: 'Archived'
%%%hi & welcome to Blender Extensions%%%
%%%updated script available (see wiki page)
slight speedup and added 'single mesh' output for use with build modifier.%%%
%%%another script update -
http://www.funkboxing.com/wordpress/?p=301
now allows 'container' insulator shapes.%%%
%%%Hi,
Just a Reminder for people to Join the Mail List.
If you have not already, please visit this page:
http://lists.blender.org/mailman/listinfo/bf-extensions-cvs
& join the list.%%%
%%%marking for contrib%%%
%%%Moved from Py Scripts Upload to Py Scripts Contrib%%%
%%%adding to contrib.
thanks & Welcome.%%%
%%%assigned to teldredge%%%
%%%moved script to contrib
%%%
%%%[canned response]
We gave you bf-extensions rights, read details at:
subscribers instead of hanging on
please leave a line here, thx!
Move your script in contrib/ directory in svn (if it's not
there already)
We are assigning this script to yourself, so that you are
responsible for maintenance.
your extension tracker page
location in "Upload", so check the tracker_url field and commit
in bf-extensions
Thanks and welcome aboard! :)%%%
%%%Hi,
Due to changes to the api including the merging of bmesh, several addons are outdated.
Please, if you are the author of an addon check your script with blender revision 44256 or newer.
That is builds made After blender 2.62 official release.
I would ask that updates be made to your addon before the Blender 2.63 release.
6-8 weeks away.
This allows time for the api to become more exposed & bmesh to stablize furthur.
If you need help, drop into irc freenode #blenderpython or #blendercoders & feel welcome to ask questions.
At the time of 2.63 release, scripts that are not repaired or in active developement will have their tracker page marked "Closed"
this will not affect your links to the tracker, similar to closing scripts in 2.49b, the page will be still availible & can be re-opened.
Thanks for your understanding & patience during these Exciting Times.
Brendon.%%%
%%%Theres a bug report about this addon not working in a recent build, this is because the addon is assigning 'scn' once when the addon loads, which is incorrect - since the user may change scenes or load other files.
http://projects.blender.org/tracker/index.php?func=detail&aid=34211&group_id=9&atid=498
context.scene should be accessed each time an operator executes and passed along to functions.%%%