diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2016-01-23 10:39:29 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2016-01-23 10:39:40 +0300 |
commit | e9452f909cdba368f54637cd0b15ff14d1c60cf3 (patch) | |
tree | 7d276fa9063f351e8b9f128f4436b87c2338c764 /release/scripts/startup/bl_ui/properties_physics_smoke.py | |
parent | 275abd14a0963a42aeb6e7fcd9b61ac8bc00da42 (diff) |
Implementation of OpenVDB as a possible cache format for smoke
simulations.
This commits implements OpenVDB as an extra cache format in the Point
Cache system for smoke simulations. Compilation with the library is
turned off by default for now, and shall be enabled when the library is
present.
A documentation of its doings is available here: http://
wiki.blender.org/index.php/User:Kevindietrich/OpenVDBSmokeExport.
A guide to compile OpenVDB can be found here (Linux): http://
wiki.blender.org/index.php?title=Dev:Doc/Building_Blender/Linux/
Dependencies_From_Source#OpenVDB
Reviewers: sergey, lukastoenne, brecht, campbellbarton
Reviewed By: brecht, campbellbarton
Subscribers: galenb, Blendify, robocyte, Lapineige, bliblubli,
jtheninja, lukasstockner97, dingto, brecht
Differential Revision: https://developer.blender.org/D1721
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_physics_smoke.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_physics_smoke.py | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_smoke.py b/release/scripts/startup/bl_ui/properties_physics_smoke.py index 85d3c1d7dc4..32d5b287d83 100644 --- a/release/scripts/startup/bl_ui/properties_physics_smoke.py +++ b/release/scripts/startup/bl_ui/properties_physics_smoke.py @@ -304,12 +304,26 @@ class PHYSICS_PT_smoke_cache(PhysicButtonsPanel, Panel): def draw(self, context): layout = self.layout - md = context.smoke.domain_settings - cache = md.point_cache + domain = context.smoke.domain_settings + cache_file_format = domain.cache_file_format + + layout.prop(domain, "cache_file_format") + + if cache_file_format == 'POINTCACHE': + layout.label(text="Compression:") + layout.prop(domain, "point_cache_compress_type", expand=True) + elif cache_file_format == 'OPENVDB': + if not bpy.app.build_options.openvdb: + layout.label("Build without OpenVDB support.") + return - layout.label(text="Compression:") - layout.prop(md, "point_cache_compress_type", expand=True) + layout.label(text="Compression:") + layout.prop(domain, "openvdb_cache_compress_type", expand=True) + row = layout.row() + row.label("Data Depth:") + row.prop(domain, "data_depth", expand=True, text="Data Depth") + cache = domain.point_cache point_cache_ui(self, context, cache, (cache.is_baked is False), 'SMOKE') |