Blender Git Loki

Blender Git "fracture_modifier-master" branch commits.

Page: 44 / 129

January 20, 2017, 10:25 (GMT)
Cycles: Cleanup, style
January 20, 2017, 10:25 (GMT)
Cycles: implement partial constant folding for exponentiation.

This is also an important mathematical operation that can be folded
if it is known that one argument is a certain constant. For colors
the operation is provided as a Gamma node.

The SVM Gamma node needs a small fix to make it follow the 0 ^ 0 == 1
rule, same as the Power node, or the Gamma node itself in OSL mode.

Reviewers: #cycles

Differential Revision: https://developer.blender.org/D2263
January 20, 2017, 10:25 (GMT)
Cycles: Make code more uniform across two versions of shadow_blocked()

Just to make it easier to research ways of possible code de-duplication.
January 20, 2017, 10:25 (GMT)
Cycles: Remove out of date comment
January 20, 2017, 10:25 (GMT)
Cycles: Cleanup, indentation
January 20, 2017, 10:25 (GMT)
Cycles: Cleanup, whitespace
January 20, 2017, 10:25 (GMT)
Cycles: Use correct light sampling PDF for MIS calculation with Branched Path Tracing

The light sampling functions calculate light sampling PDF for the case that the light has been randomly selected out of all lights.
However, since BPT handles lamps and meshlights separately, this isn't the case. So, to avoid a wrong result, the code just included the 0.5 factor in the throughput.

In theory, however, the correction should be made to the sampling probability, which needs to be doubled. Now, for the regular calculation, that's no real difference since the throughput is divided by the pdf.
However, it does matter for the MIS calculation - it's unbiased both ways, but including the factor in the PDF instead of the throughput should give slightly better results.

Reviewers: sergey, brecht, dingto, juicyfruit

Differential Revision: https://developer.blender.org/D2258
January 20, 2017, 10:25 (GMT)
Cycles: Avoid conversion from bool to uint
January 20, 2017, 10:25 (GMT)
Cycles: Re-group ifdef so we check for particular feature only once
January 20, 2017, 10:25 (GMT)
Cycles: More tweaks to make specialized BVH traversal matching
January 20, 2017, 10:25 (GMT)
Cycles: Cleanup code style in split kernel
January 20, 2017, 10:25 (GMT)
Cycles: Make regular bvh traversal functions close to each other
January 20, 2017, 10:25 (GMT)
Cycles: Avoid redundant intersection pre-calculation
January 20, 2017, 10:24 (GMT)
Cycles: Cleanup, always use parenthesis

Makes it simpler to compare different traversal algorithms.
January 20, 2017, 10:24 (GMT)
Revert "Cycles: Tweak empty boundbox children"

This reverts commit ecbfa31caaadb03c53c0fe1459718b99613c8804.

Original commit broke logic in nodes re-fitting. That area can
access non-existing children momentarely. Not sure what would
be best solution here, for now simply reverting the change/
January 20, 2017, 10:24 (GMT)
Cycles: Deduplicate light pass code
January 20, 2017, 10:24 (GMT)
Cycles: Stop lamp sampling if the lamp isn't visible

Both spot and area light have large areas where they're not visible.
Therefore, this patch stops the light sampling code when one of these cases (outside of the spotlight cone or behind the area light) occurs, before the lamp shader is evaluated.
In the case of the area light, the solid angle sampling can also be skipped.

In a test scene with Sample All Lights and 18 Area lamps and 9 Spot lamps that all point away from the area that the camera sees, render time drops from 12sec to 5sec.

Reviewers: brecht, sergey, dingto, juicyfruit

Differential Revision: https://developer.blender.org/D2216
January 20, 2017, 10:24 (GMT)
Cycles: Cleanup, sync some comments across different traversal
January 20, 2017, 10:24 (GMT)
Cycles: Also support the constant emission speedup for mesh lights

Reviewers: brecht, sergey, dingto, juicyfruit

Differential Revision: https://developer.blender.org/D2220
January 20, 2017, 10:24 (GMT)
Cycles: Deduplicate QBVH node packing across BVH build and refit
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021