Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
AgeCommit message (Collapse)Author
2018-02-14Cycles: restore Particle Info Index for now, keep it next to Random.Brecht Van Lommel
It seems to be useful still in cases where the particle are distributed in a particular order or pattern, to colorize them along with that. This isn't really well defined, but might as well avoid breaking backwards compatibility for now.
2018-02-14Cycles: change Index output of Hair and Particle Info to Random, in 0..1 range.Brecht Van Lommel
These are used for randomization, so it's convenient if the index is already hashed and consistent with the Object Info node.
2018-02-14CMake: Expose Cycles devices support as CMake optionSergey Sharybin
Handy to disable GPU based devices when it's needed to run Valgrind.
2018-02-13Cycles: Implement index output for hair nodeSergey Sharybin
This is like the only way to add variety to hair which is created using simple children. Used here for the hair. Maybe not ideal, but the time will show.
2018-02-12Fix random walk SSS issues with different base and subsurface color.Brecht Van Lommel
Burley SSS uses a bit of strange thing where the albedo and closure weight are different, which makes the subsurface color act a bit like a subsurface radius indirectly by the way the Burley SSS profile works. This can't work for random walk SSS though, and it's not clear to me that this is actually a good idea since it's really the subsurface radius that is supposed to control this. For now I'll leave Burley SSS working the same to not break backwards compatibility.
2018-02-09Cycles: add random walk subsurface scattering to Principled BSDF.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3054
2018-02-09Cycles: random walk subsurface scattering.Brecht Van Lommel
It is basically brute force volume scattering within the mesh, but part of the SSS code for faster performance. The main difference with actual volume scattering is that we assume the boundaries are diffuse and that all lighting is coming through this boundary from outside the volume. This gives much more accurate results for thin features and low density. Some challenges remain however: * Significantly more noisy than BSSRDF. Adding Dwivedi sampling may help here, but it's unclear still how much it helps in real world cases. * Due to this being a volumetric method, geometry like eyes or mouth can darken the skin on the outside. We may be able to reduce this effect, or users can compensate for it by reducing the scattering radius in such areas. * Sharp corners are quite bright. This matches actual volume rendering and results in some other renderers, but maybe not so much real world objects. Differential Revision: https://developer.blender.org/D3054
2018-02-09CMake: include missing headersCampbell Barton
2018-02-08Fix for missing "Use Freestyle" toggle in the Cycles "Layer" options panel.Tamito Kajiyama
Reviewed By: Brecht Van Lommel (brecht), Dalai Felinto (dfelinto) Differential Revision: https://developer.blender.org/D3048
2018-02-08Cycles: unify OSL BSSRDF closure into a single bssrdf() closure with method.Brecht Van Lommel
This is similar to the upstream unified microfacet() closure, and makes it easier to extend in the future.
2018-02-08Code refactor: tweaks in SSS code to prepare for coming changes.Brecht Van Lommel
This also fixes a subtle bug in the split kernel branched path SSS, the volume stack update can't be shared between multiple hit points.
2018-02-08Code refactor: remove unnecessary RNG offset in branched path code.Brecht Van Lommel
This is only needed for SSS which bounces to a different shading point.
2018-02-07Update CUEW to latest versionBrecht Van Lommel
This brings separate initialization for libcuda and libnvrtc, which fixes Cycles nvrtc compilation not working on build machines without CUDA hardware available. Differential Revision: https://developer.blender.org/D3045
2018-02-07Cleanup: add _types.h suffix to DNA headersCampbell Barton
2018-02-06Fix T54001: AMD OpenCL fails with certain resolutions, after recent changes.Brecht Van Lommel
We should actually be using CL_DEVICE_MEM_BASE_ADDR_ALIGN for sub buffers, previous change in this code was incorrect. Renamed the function now to make the specific purpose of this alignment clear, it's not required for data types in general.
2018-02-05Fix typo in struct name obejct to object.Nathan Letwory
Reviewers: sergey Reviewed By: sergey Differential Revision: https://developer.blender.org/D3041
2018-02-05cycles: fix black render with cycles_cubin_cc.Ray Molenkamp
I have honestly no idea how this got swapped..
2018-02-05cycles: fix cxx11 usage for cycles_cubin_ccRay Molenkamp
2018-02-04msvc: Use source folder structure for project file.Ray Molenkamp
This patch changes the huge list of projects in visual studio into a nice tree matching the source folder structure. see D2823 for details. Differential Revision: http://developer.blender.org/D2823
2018-02-03cycles: Add an nvrtc based cubin cli compiler.Ray Molenkamp
nvcc is very picky regarding compiler versions, severely limiting the compiler we can use, this commit adds a nvrtc based compiler that'll allow us to build the cubins even if the host compiler is unsupported. for details see D2913. Differential Revision: http://developer.blender.org/D2913
2018-02-03Fix more Cycles incorrect principled BSDF mixing due to missing initialization.Brecht Van Lommel
Spotted by Ha Hyung-jin, thanks!
2018-02-03Fix build error with CUDA 9.1 and compute capability 2.x.Brecht Van Lommel
2018-02-03Cycles: make displacement a supported feature.Brecht Van Lommel
Adaptive subdivision remains experimental, still needs more work.
2018-02-03Cycles: add Vector Displacement node and extend Displacement node.Brecht Van Lommel
This adds midlevel and object/world space for displacement, and a vector displacement node with tangent/object/world space, midlevel and scale. Note that tangent space vector displacement still is not exactly compatible with maps created by other software, this will require changes to the tangent computation. Differential Revision: https://developer.blender.org/D1734
2018-02-02Fix T53978: Bad memory access after recent fix to BSDF mixingMai Lavelle
Added proper checks after BSDF allocation and cleaned up existing inline checks. Was introduced in 7261d675e6aeb1b0dff
2018-02-01Cycles: Attempt to fix 32 bit linux compilationSergey Sharybin
2018-02-01Cycles: Fix for non-vectorized version of bitscan()Sergey Sharybin
It was doing bit search in an opposite direction comparing to a vectorized version.
2018-01-30Fix Cycles incorrect principled BSDF mixing with some parameter variatons.Brecht Van Lommel
Spotted by Ha Hyung-jin, thanks!
2018-01-30Fix T50630: Fluid fails on win32 w/ unicode pathsCampbell Barton
Allow overriding gzip open w/ elbeem.
2018-01-29Fix Cycles viewport render not updating when tweaking displacement shader.Brecht Van Lommel
This was disabled to avoid updating the geometry every time when the material includes displacement, because there was no way to distinguish between surface shader and displacement updates. As a solution, we now compute an MD5 hash of the nodes linked to the displacement socket, and only update the mesh if that changes. Differential Revision: https://developer.blender.org/D3018
2018-01-29Fix Cycles allocating too much device memory, after recent memory refactoring.Brecht Van Lommel
Spotted by Ha Hyung-jin, thanks!
2018-01-29Revert "Fix T53914: Volumetric scattering now goes correctly through ↵Brecht Van Lommel
transparent surfaces." This reverts commit 3c852ba0741f794a697f95073b04921e9ff94039. This is breaking the regression tests, and maybe requires some deeper changes to really fix.
2018-01-27Fix T53914: Volumetric scattering now goes correctly through transparent ↵Stefan Werner
surfaces. There was a check for volume bounces at every surface intersection. That could lead to a volume scattered path being terminated when passing through a transparent surface. This check was superfluous, as the volume shader evaluation already checks the number of volume bounces and once it passes the max, volume shaders will not return scatter events any more. Reviewers: #cycles, brecht Reviewed By: #cycles, brecht Subscribers: brecht, #cycles Tags: #cycles Maniphest Tasks: T53914 Differential Revision: https://developer.blender.org/D3024
2018-01-27Code refactor: make mixed small/large BSSRDF radii more robust.Brecht Van Lommel
2018-01-26Fix mixed BSDF + BSSRDF sampling bug in path tracing, after 095a01a73a35.Brecht Van Lommel
Spotted by Ha Hyung-jin, thanks!
2018-01-26Code refactor: store RGB BSSRDF in a single closure.Brecht Van Lommel
Previously we stored each color channel in a single closure, which was convenient for sampling a closure and channel together. But this doesn't work so well for algorithms where we want to render multiple color channels together.
2018-01-26Code cleanup: simpler and faster detection of BVH refit.Brecht Van Lommel
2018-01-25Cycles: rename displacement methods, default to displace, tweak panel layout.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3019
2018-01-24Fix T53878: Cycles bug rendering multiple render layers with different passes.Brecht Van Lommel
This was caused by recent pass refactoring from f78e963.
2018-01-23Fix Cycles assert when resizing rendererd viewport.Brecht Van Lommel
2018-01-23Cycles: change material output displacement to vector.Brecht Van Lommel
Previously only scalar displacement along the normal was supported, now displacement can go in any direction. For backwards compatibility, a Displacement node will be automatically inserted in existing files. This will make it possible to support vector displacement maps in the future. It's already possible to use them to some extent, but requires a manual shader node setup. For tangent space maps the right tangent may also not be available yet, depends on the map. Differential Revision: https://developer.blender.org/D3015
2018-01-23Cycles: add Displacement node.Brecht Van Lommel
This converts object space height to world space displacement, to be linked to the new vector displacement material output. Differential Revision: https://developer.blender.org/D3015
2018-01-23Fix T53854: branched path tracing correlation bug with transparency in split ↵Brecht Van Lommel
kernel.
2018-01-23Cycles: Fix optimal BVH selection.Ray Molenkamp
2018-01-22Cycles: Replace use_qbvh boolean flag with an enum-based propertySergey Sharybin
This was we can introduce other types of BVH, for example, wider ones, without causing too much mess around boolean flags. Thoughs: - Ideally device info should probably return bitflag of what BVH types it supports. It is possible to implement based on simple logic in device/ and mesh.cpp, rest of the changes will stay the same. - Not happy with workarounds in util_debug and duplicated enum in kernel. Maybe enbum should be stores in kernel, but then it's kind of weird to include kernel types from utils. Soudns some cyclkic dependency. Reviewers: brecht, maxim_d33 Reviewed By: brecht Differential Revision: https://developer.blender.org/D3011
2018-01-22Fix T53854: branched path tracing correlation bug with transparency.Brecht Van Lommel
This was broken in d750d18.
2018-01-22Cycles: Cleanup, remove unused argumentSergey Sharybin
2018-01-21Fix T49159: missing Cycles tangents for adaptive subdivision.Brecht Van Lommel
2018-01-19Cycles: Make it more proper check on vectorization flags from DebugFlagsSergey Sharybin
Mimics to checks in system_cpu_support() checks.
2018-01-19Cycles: Cleanup, stop using debug flags in system utilitiesSergey Sharybin
Debug flags are to be controlling render behavior, nothing to do with low level system utilities. it was simple to hack, but logically is wrong. Lets do things where they are supposed to be done!