Blender Git Loki

Git Commits -> Revision 51862c8

Revision 51862c8 by Kévin Dietrich (master)
August 19, 2021, 12:40 (GMT)
Cycles: experimental integration of Alembic procedural in viewport rendering

This patch exposes the Cycles Alembic Procedural through the MeshSequenceCache
modifier in order to use and test it from Blender.

To enable it, one has to switch the render feature set to experimental and
activate the Procedural in the modifier. An Alembic Procedural is then
created for each CacheFile from Blender set to use the Procedural, and each
Blender object having a MeshSequenceCache modifier is added to list of objects
of the right procedural.

The procedural's parameters derive from the CacheFile's properties which are
already exposed in the UI through the modifier, although more Cycles specific
options might be added in the future.

As there is currently no cache controls and since we load all the data at the
beginning of the render session, the procedural is only available during
viewport renders at the moment. When an Alembic procedural is rendered, data
from the archive are not read on the Blender side.

If a Cycles render is not active and the CacheFile is set to use the Cycles Procedural,
bounding boxes are used to display the objects in the scene as a signal that the
objects are not processed by Blender anymore. This is standard in other DCCs.
However this does not reduce the memory usage from Blender as the Alembic data
was already loaded either during an import or during a .blend file read.

This is mostly a hack to test the Cycles Alembic procedural until we have a
better Blender side mechanism for letting renderers load their own geometry,
which will be based on import and export settings on Collections (T68933).

Ref T79174, D3089

Reviewed By: brecht, sybren

Maniphest Tasks: T79174

Differential Revision: https://developer.blender.org/D10197

Commit Details:

Full Hash: 51862c8445c8d5f573d1c86780db9e0972ef14dd
Parent Commit: 5b97c00
Lines Changed: +417, -56

43 Modified Paths:

/intern/cycles/blender/addon/properties.py (+6, -0) (Diff)
/intern/cycles/blender/addon/__init__.py (+1, -0) (Diff)
/intern/cycles/blender/blender_mesh.cpp (+2, -19) (Diff)
/intern/cycles/blender/blender_object.cpp (+93, -9) (Diff)
/intern/cycles/blender/blender_sync.cpp (+1, -0) (Diff)
/intern/cycles/blender/blender_sync.h (+3, -0) (Diff)
/intern/cycles/blender/blender_util.h (+29, -0) (Diff)
/intern/cycles/blender/CMakeLists.txt (+10, -0) (Diff)
/source/blender/blenkernel/BKE_cachefile.h (+10, -0) (Diff)
/source/blender/blenkernel/BKE_modifier.h (+6, -2) (Diff)
/source/blender/blenkernel/BKE_object.h (+4, -1) (Diff)
/source/blender/blenkernel/BKE_scene.h (+4, -0) (Diff)
/source/blender/blenkernel/intern/cachefile.c (+18, -0) (Diff)
/source/blender/blenkernel/intern/constraint.c (+5, -0) (Diff)
/source/blender/blenkernel/intern/modifier.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/object.c (+5, -2) (Diff)
/source/blender/blenkernel/intern/scene.c (+18, -0) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_relations.cc (+2, -1) (Diff)
/source/blender/editors/interface/interface_templates.c (+25, -0) (Diff)
/source/blender/editors/render/render_update.c (+14, -0) (Diff)
/source/blender/makesdna/DNA_cachefile_types.h (+9, -2) (Diff)
/source/blender/makesrna/intern/rna_cachefile.c (+17, -0) (Diff)
/source/blender/makesrna/intern/rna_render.c (+6, -0) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+10, -0) (Diff)
/source/blender/modifiers/intern/MOD_build.c (+3, -1) (Diff)
/source/blender/modifiers/intern/MOD_cloth.c (+3, -1) (Diff)
/source/blender/modifiers/intern/MOD_collision.c (+3, -1) (Diff)
/source/blender/modifiers/intern/MOD_displace.c (+3, -1) (Diff)
/source/blender/modifiers/intern/MOD_dynamicpaint.c (+3, -1) (Diff)
/source/blender/modifiers/intern/MOD_explode.c (+3, -1) (Diff)
/source/blender/modifiers/intern/MOD_fluid.c (+3, -1) (Diff)
/source/blender/modifiers/intern/MOD_meshcache.c (+3, -1) (Diff)
/source/blender/modifiers/intern/MOD_meshsequencecache.c (+51, -2) (Diff)
/source/blender/modifiers/intern/MOD_softbody.c (+3, -1) (Diff)
/source/blender/modifiers/intern/MOD_surface.c (+3, -1) (Diff)
/source/blender/modifiers/intern/MOD_volume_displace.cc (+1, -1) (Diff)
/source/blender/modifiers/intern/MOD_warp.c (+3, -1) (Diff)
/source/blender/modifiers/intern/MOD_wave.c (+3, -1) (Diff)
/source/blender/modifiers/intern/MOD_weightvgedit.c (+3, -1) (Diff)
/source/blender/modifiers/intern/MOD_weightvgmix.c (+3, -1) (Diff)
/source/blender/modifiers/intern/MOD_weightvgproximity.c (+3, -1) (Diff)
/source/blender/render/intern/engine.c (+13, -0) (Diff)
/source/blender/render/RE_engine.h (+7, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021