From 9eb16ef8c50032ba07030e3501647b6c2f51ba2d Mon Sep 17 00:00:00 2001 From: David Murmann Date: Tue, 3 Jun 2025 19:28:47 +0200 Subject: [PATCH] Fix #138509: Cycles: Point clouds do not render properly when using spatial splits The bounds growth should take the radius of the points into account. This affect BVH2, so GPU rendering without hardware ray-tracing. Pull Request: https://projects.blender.org/blender/blender/pulls/139604 --- intern/cycles/bvh/split.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intern/cycles/bvh/split.cpp b/intern/cycles/bvh/split.cpp index b794a9e2559..71ba3eb7d05 100644 --- a/intern/cycles/bvh/split.cpp +++ b/intern/cycles/bvh/split.cpp @@ -444,11 +444,11 @@ void BVHSpatialSplit::split_point_primitive(const PointCloud *pointcloud, } point = get_unaligned_point(point); - if (point[dim] <= pos) { + if (point[dim] - radius <= pos) { left_bounds.grow(point, radius); } - if (point[dim] >= pos) { + if (point[dim] + radius >= pos) { right_bounds.grow(point, radius); } }