From d3a6c0c834d34b0158443bee8064631d289d5a57 Mon Sep 17 00:00:00 2001 From: Miika Hamalainen Date: Fri, 17 May 2013 17:45:37 +0000 Subject: 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. --- release/scripts/startup/bl_ui/properties_physics_smoke.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'release/scripts/startup/bl_ui/properties_physics_smoke.py') 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 -- cgit v1.2.3