diff options
author | Miika Hamalainen <blender@miikah.org> | 2013-05-17 21:45:37 +0400 |
---|---|---|
committer | Miika Hamalainen <blender@miikah.org> | 2013-05-17 21:45:37 +0400 |
commit | d3a6c0c834d34b0158443bee8064631d289d5a57 (patch) | |
tree | dfd88517895ce42b767b29bb89b1a7df96b3b348 /release/scripts/startup/bl_ui/properties_physics_smoke.py | |
parent | c70a900736e28308600c5b3359070f38bc64daa6 (diff) |
Smoke simulator: Add flow subframes and ability to set custom particle size.
Previously it was nearly impossible to have fast moving objects emitting smoke or they would just leave behind a row of smoke poofs instead of continious stream of smoke. Now it's possible to set number of subframes for each smoke flow.
Another new thing is ability to set size of smoke flow particles instead of using closest smoke cell. This also works with my earlier "full sample" commit, so no more blocky particles either. :)
For more info check my blog post: http://www.miikahweb.com/en/blog/2013/05/17/blender-smoke-subframes
This commit also includes couple of fixes I spotted while testing:
* Fix: dissolve was applied at different time for low res and high res simulations.
* Fix: full sample setting didn't get copied with domain.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_physics_smoke.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_physics_smoke.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_smoke.py b/release/scripts/startup/bl_ui/properties_physics_smoke.py index 842497fc74d..0651228388e 100644 --- a/release/scripts/startup/bl_ui/properties_physics_smoke.py +++ b/release/scripts/startup/bl_ui/properties_physics_smoke.py @@ -87,6 +87,10 @@ class PHYSICS_PT_smoke(PhysicButtonsPanel, Panel): if flow.smoke_flow_source == "PARTICLES": col.label(text="Particle System:") col.prop_search(flow, "particle_system", ob, "particle_systems", text="") + col.prop(flow, "use_particle_size", text="Set Size") + sub = col.column() + sub.active = flow.use_particle_size + sub.prop(flow, "particle_size") else: col.prop(flow, "surface_distance") col.prop(flow, "volume_density") @@ -110,6 +114,8 @@ class PHYSICS_PT_smoke(PhysicButtonsPanel, Panel): sub.prop(flow, "smoke_color") if flow.smoke_flow_type in {'FIRE', 'BOTH'}: sub.prop(flow, "fuel_amount") + sub.label(text="Sampling:") + sub.prop(flow, "subframes") elif md.smoke_type == 'COLLISION': coll = md.coll_settings |