Blender Git Loki

Git Commits -> Revision 207338b

Revision 207338b by Brecht Van Lommel (master)
June 22, 2020, 11:28 (GMT)
Cycles: port curve-ray intersection from Embree for use in Cycles GPU

This keeps render results compatible for combined CPU + GPU rendering.
Peformance and quality primitives is quite different than before. There
are now two options:

* Rounded Ribbon: render hair as flat ribbon with (fake) rounded normals, for
fast rendering. Hair curves are subdivided with a fixed number of user
specified subdivisions.

This gives relatively good results, especially when used with the Principled
Hair BSDF and hair viewed from a typical distance. There are artifacts when
viewed closed up, though this was also the case with all previous primitives
(but different ones).

* 3D Curve: render hair as 3D curve, for accurate results when viewing hair
close up. This automatically subdivides the curve until it is smooth.

This gives higher quality than any of the previous primitives, but does come
at a performance cost and is somewhat slower than our previous Thick curves.

The main problem here is performance. For CPU and OpenCL rendering performance
seems usually quite close or better for similar quality results.

However for CUDA and Optix, performance of 3D curve intersection is problematic,
with e.g. 1.45x longer render time in Koro (though there is no equivalent quality
and rounded ribbons seem fine for that scene). Any help or ideas to optimize this
are welcome.

Ref T73778

Depends on D8012

Maniphest Tasks: T73778

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

Commit Details:

Full Hash: 207338bb58b1a44c531e6d78fad68672c6d3b2e1
Parent Commit: d1ef514
Lines Changed: +758, -410

13 Modified Paths:

/intern/cycles/blender/addon/properties.py (+4, -4) (Diff)
/intern/cycles/blender/addon/ui.py (+0, -1) (Diff)
/intern/cycles/device/device.h (+3, -0) (Diff)
/intern/cycles/device/device_optix.cpp (+12, -3) (Diff)
/intern/cycles/kernel/closure/bsdf.h (+27, -21) (Diff)
/intern/cycles/kernel/closure/bsdf_hair_principled.h (+0, -3) (Diff)
/intern/cycles/kernel/geom/geom_curve.h (+1, -28) (Diff)
/intern/cycles/kernel/geom/geom_curve_intersect.h (+672, -326) (Diff)
/intern/cycles/kernel/geom/geom_motion_curve.h (+11, -11) (Diff)
/intern/cycles/kernel/kernels/optix/kernel_optix.cu (+19, -3) (Diff)
/intern/cycles/kernel/kernel_shader.h (+1, -4) (Diff)
/intern/cycles/render/curves.cpp (+6, -6) (Diff)
/intern/cycles/render/session.cpp (+2, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021