Blender Git Commit Log

Git Commits -> Revision 7377d41

Revision 7377d41 by Kévin Dietrich (master)
March 1, 2018, 10:54 (GMT)
Cycles volume: fast empty space optimization by generating a tight mesh
around the volume.

We generate a tight mesh around the active voxels of the volume in order
to effectively skip empty space, and start volume ray marching as close
to interesting volume data as possible. See code comments for details on
how the mesh generation algorithm works.

This gives up to 2x speedups in some scenes.

Reviewed by: brecht, dingto

Reviewers: #cycles

Subscribers: lvxejay, jtheninja, brecht

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

Commit Details:

Full Hash: 7377d411b47d50cd943cd33e3e55c0409bb79f91
Parent Commit: 172614f
Lines Changed: +718, -17

1 Added Path:

/intern/cycles/render/mesh_volume.cpp (+581, -0) (View)

10 Modified Paths:

/intern/cycles/blender/blender_mesh.cpp (+2, -0) (Diff)
/intern/cycles/render/attribute.cpp (+16, -2) (Diff)
/intern/cycles/render/attribute.h (+1, -1) (Diff)
/intern/cycles/render/CMakeLists.txt (+1, -0) (Diff)
/intern/cycles/render/image.cpp (+10, -0) (Diff)
/intern/cycles/render/image.h (+2, -0) (Diff)
/intern/cycles/render/mesh.cpp (+78, -9) (Diff)
/intern/cycles/render/mesh.h (+10, -3) (Diff)
/intern/cycles/render/scene.cpp (+1, -2) (Diff)
/intern/cycles/util/util_math_int3.h (+16, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021