Blender Git Commit Log

Git Commits -> Revision 9280fb1

Revision 9280fb1 by Kévin Dietrich (master)
August 12, 2020, 09:52 (GMT)
Fixes T77882: artifacts rendering OpenVDB volumes with multiple grids in Cycles

The previous algorithm was not using all of the requested grids to build a mesh
around the volume due to limitations regarding the use of a dense buffer to
gather information about the volume's topology. This resulted in artefacts during
rendering.

The mesh generation is now done by merging all of the input grids and using the
resulting grid's topology to create the mesh. The generation of the mesh
is still done in index space as before, and the vertices are converted to object
space by using the merged topology grid indexToWorld transform.

To be able to merge the grids together we have to make sure that their transformation
matrices and their index spaces match, thus, if they do not match we simply resample
the grids. This behaviour should tackle one other limitation of the current algorithm,
which is that only one transformation matrix was used to generate the final mesh.

If we do not have an OpenVDB grid for the requested volume data, we generate
a temporary OpenVDB grid for it.

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

Commit Details:

Full Hash: 9280fb19e4ff5038734d9867d152c10d4daf03bb
Parent Commit: da95fa8
Committed By: Brecht Van Lommel
Lines Changed: +373, -238

1 Added Path:

/intern/cycles/util/util_openvdb.h (+32, -0) (View)

7 Modified Paths:

/intern/cycles/render/geometry.cpp (+7, -3) (Diff)
/intern/cycles/render/image.cpp (+31, -0) (Diff)
/intern/cycles/render/image.h (+5, -0) (Diff)
/intern/cycles/render/image_vdb.cpp (+12, -0) (Diff)
/intern/cycles/render/image_vdb.h (+6, -0) (Diff)
/intern/cycles/render/mesh_volume.cpp (+279, -235) (Diff)
/intern/cycles/util/CMakeLists.txt (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021