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
2019-09-24Fix T68457: Cycles OpenCL Displacement ShadingJeroen Bakker
When doing simple scenes the displacement shading failed during final rendering when the displacement method is set to `Displacement + Bump`. When this option is enabled the shader uses the Vector math node. This node is part of the node group level 1. When doing simple shading only using nodes that are part of the node group level 0 the shading was rendered black. This only happened in final rendering as there the OpenCL programs are optimized to save registries. Viewport rendering rendered correctly Reviewed By: brecht Differential Revision: https://developer.blender.org/D5859
2019-09-23Revert part of "GPencil: Invert Paste operator and make Paste to Active default"Brecht Van Lommel
This commit accidentally undid a bunch of previous commits. Only the intended changes are left now.
2019-09-21Cleanup: extra semicolon, comma warningsCampbell Barton
2019-09-20UI: Fix CapitalizationYevgeny Makarov
Differential Revision: https://developer.blender.org/D5716
2019-09-19Use FFmpeg's own `av_guess_frame_rate()` function instead of guessing ourselvesSybren A. Stüvel
This was introduced in FFmpeg lavf 55.1.100 in 2013. For systems that are still on LibAV or older FFmpeg there is a fallback implementation that performs the same guess as we did before in `av_get_r_frame_rate_compat()`.
2019-09-19Cleanup: spellingCampbell Barton
2019-09-17Cycles: Viewport Rendering Memory ImprovementJeroen Bakker
Small memory reduction change by only storing the pixels of the combined pass when it is being shown in the viewport. Previously the combined pass was always calculated and present in the output buffer. The combined pass will still be calculated. It is a limitation in Blender that Cycles always had a combined pass. This patch will remove the limitation from the code base of Cycles. Blender still has the limitation, but will always request the combined renderpass when doing final rendering. Reviewed By: brecht Differential Revision: https://developer.blender.org/D5784
2019-09-14macOS: Replaced deprecated Cocoa API calls.Stefan Werner
Most of these calls were replaced with the successors as suggested by Xcode's Fix-It. Functionality should not be affected. This reduces the number of warnings when building on macOS.
2019-09-14macOS: Replaced OSSpinLock with os_unfair_lock.Stefan Werner
OSSplinLock is a deprecated API, os_unfair_lock is its successor. This reduces the number of warnings when building on macOS.
2019-09-14Cleanup: clang-formatStefan Werner
2019-09-13macOS: Enabled posix_memalign() like on other Unix platforms.Stefan Werner
2019-09-13Cleanup: compiler warningsBrecht Van Lommel
2019-09-13Cleanup: clang-formatCampbell Barton
2019-09-13Cycles: add Optix device backendPatrick Mours
This uses hardware-accelerated raytracing on NVIDIA RTX graphics cards. It is still currently experimental. Most features are supported, but a few are still missing like baking, branched path tracing and using CPU memory. https://wiki.blender.org/wiki/Reference/Release_Notes/2.81/Cycles#NVIDIA_RTX For building with Optix support, the Optix SDK must be installed. See here for build instructions: https://wiki.blender.org/wiki/Building_Blender/CUDA Differential Revision: https://developer.blender.org/D5363
2019-09-13Cycles: add Optix support in the kernelPatrick Mours
This adds all the kernel side changes for the Optix backend. Ref D5363
2019-09-13Add QuadriFlow remesherSebastian Parborg
2019-09-12macOS fix typo on Frameworks dirArto Kitula
2019-09-12macOS fix T67686 , use absolute path to load 3Dconnexion frameworkArto Kitula
2019-09-12Shading: Add Vertex Color node.OmarSquircleArt
This patch adds a new Vertex Color node. The node also returns the alpha of the vertex color layer as an output. Reviewers: brecht Differential Revision: https://developer.blender.org/D5767
2019-09-12GPencil: Fix missing Simplify panel in CyclesAntonio Vazquez
Differential Revision: https://developer.blender.org/D5776
2019-09-12Cycles: Fix Show Instanced Local View ObjectsJeroen Bakker
The local view check in the RNA didn't support instanced objects. Every object has a copy of the local_view_bits from the base. This patch changes the check to look at the local stored bits. This patch removes the check if the object is part of the view_layer. In the cases we are using it this check is not relevant. The `mesh_tissue` add-on also uses it, and is not effected by this change. Reviewed By: brecht Differential Revision: https://developer.blender.org/D5773
2019-09-12Shading: Add More Features To The Voronoi Node.OmarSquircleArt
This patch allows the Voronoi node to operate in 1D, 2D, and 4D space. It also adds a Randomness input to control the randomness of the texture. Additionally, it adds three new modes of operation: - Smooth F1: A smooth version of F1 Voronoi with no discontinuities. - Distance To Edge: Returns the distance to the edges of the cells. - N-Sphere Radius: Returns the radius of the n-sphere inscribed in the cells. In other words, it is half the distance between the closest feature point and the feature point closest to it. And it removes the following three modes of operation: - F3. - F4. - Cracks. The Distance metric is now called Euclidean, and it computes the actual euclidean distance as opposed to the old method of computing the squared euclidean distance. This breaks backward compatibility in many ways, including the base case. Reviewers: brecht, JacquesLucke Differential Revision: https://developer.blender.org/D5743
2019-09-12Fix crash when doing cycles renderingJeroen Bakker
During F-12 Rendering the passed screen was Null, but decoded as a number. In stead of a Null a 0 will be send to cycles python wrapper.
2019-09-12Cycles: Initial Support For Local ViewJeroen Bakker
This diff will add support for local view to Cycles rendered preview mode. Currently the implementation shows same results as EEVEE does. This entails a difference with Blender 2.79, where lights were automatically added to the local view. {T69780} describes this should be solved before the next release. This patch also solves missing `owner_id` issues when using the RNA CPP Api from Cycles. Cycles didn't provide the `owner_id` making some functionality fail, what then was worked around in Blender. It also fixes an issue in `makesrna` where incorrect CPP code was generated when only `PARM_RNAPTR` was provided. An optional `view_layer` parameter is added to the `Object.local_view_get` method to reduce lookups. Reviewed By: brecht Differential Revision: https://developer.blender.org/D5753
2019-09-11Cycles: Ignore links with unavailable sockets.OmarSquircleArt
Ignore links with unavailable/disabled sockets during shader graph generation.
2019-09-11Cycles: Display RenderPass in ViewportJeroen Bakker
This change allows the user to select a renderpass in the 3d viewport. Added support for external renderers to extend the `View3DShading` struct. This way Blender doesn't need to know the features an external render engine wants to support. Note that the View3DShading is also available in the scene->display.shading; although this is supported, it does not make sense for render engines to put something here as it is really scene/workbench related. Currently cycles assumes that it always needs to calculate the combined pass; it ignores the `pass_flag` in KernelFilm. We could optimize this but that was not in scope of this change Reviewed By: brecht Differential Revision: https://developer.blender.org/D5689
2019-09-09Cleanup: trailing space, remove tabs, pep8Campbell Barton
2019-09-09Fix T69686: Cycles OpenCL build error after recent changesBrecht Van Lommel
2019-09-09Shading: Extend Musgrave node to other dimensions.OmarSquircleArt
This patch extends Musgrave noise to operate in 1D, 2D, 3D, and 4D space. The Color output was also removed because it was identical to the Fac output. Reviewed By: brecht Differential Revision: https://developer.blender.org/D5566
2019-09-09Cleanup: clang-formatPhilipp Oeser
2019-09-08Cycles: add bump map shadow terminator softening term for diffuse BSDFsLukas Stockner
This avoids artifacts for bump mapping and diffuse BSDFs, where the bump normal deviates far from the actual normal. Differential Revision: https://developer.blender.org/D5399
2019-09-07Cleanup: style, spellingCampbell Barton
2019-09-06Fix: Rename the dimensions property in Noise nodes.OmarSquircleArt
The `dimensions` property of the noise nodes has been renamed to `noise_dimensions` because it conflicted with and overwrote the `dimensions` property of the base node. Reviewers: brecht, JacquesLucke Differential Revision: https://developer.blender.org/D5705
2019-09-06Viewport Shading: StudioLight IntensityJeroen Bakker
Add option to change the Intensity of the HDRI in the 3d viewport. This works for both EEVEE and Cycles Reviewed By: brecht, fclem Differential Revision: https://developer.blender.org/D5674
2019-09-05Fix: Compile error due to undefined isinf function.OmarSquircleArt
Some implementations of the standard c++ library doesn't define its functions in the global namespace. So the `isinf` function might fail in some systems. To fix this, we use the `ensure_finite` function instead. Reviewers: brecht Differential Revision: https://developer.blender.org/D5687
2019-09-05Cleanup: use backslash for doxygen commandsCampbell Barton
2019-09-05Shading: Rewrite Mapping node with dynamic inputs.OmarSquircleArt
This patch rewrites the Mapping node to support dynamic inputs. The Max and Min options have been removed. They can be added as Min and Max Vector Math nodes manually. Texture nodes still use the old matrix-based mapping. A new SVM node `NODE_TEXTURE_MAPPING` has been added to preserve this functionality. Similarly, in GLSL, a `mapping_mat4` function has been added. Reviewers: brecht, JacquesLucke
2019-09-04Shading: Extend Noise node to other dimenstions.OmarSquircleArt
This patch extends perlin noise to operate in 1D, 2D, 3D, and 4D space. The noise code has also been refactored to be more readable. The Color output and distortion patterns changed, so this patch breaks backward compatibility. This is due to the fact that we now use random offsets as noise seeds, as opposed to swizzling and constants offsets. Reviewers: brecht, JacquesLucke Differential Revision: https://developer.blender.org/D5560
2019-09-04Shading Modes: Material and Render PreviewJeroen Bakker
This change implements the basics as described in {T68312} for the shading modes. * LookDev shading mode is renamed to Material Preview. It always uses Eevee as renderer, and is intended to provide a fast material preview suitable for texture painting, and texture and material setup. * Rendered shading gains "Use Scene Lights" and "Use Scene World" options similar to current Material Preview. These will be enabled by default. When Use Scene World is turned off, HDRIs will be used for lighting instead. These options are available for EEVEE and Cycles. * Renderers will be able to customize the shading settings panel and add additional settings. Reviewed By: brecht, fclem Differential Revision: https://developer.blender.org/D5612
2019-08-30Cleanup: spellingCampbell Barton
2019-08-30Cycles: OpenCL Separate Compilation Debug FlagJeroen Bakker
OpenCL Parallel compilation only works inside Blender. When using cycles in a different setup (standaline or other software) it failed compiling kernels as they don't have the appropriate Python API and command line arguments. This change introduces a `running_inside_blender` debug flag, that triggers out of process compilation of the kernels. Compilation still happens in subthread that enabled the preview kernels and compilation of the kernels during BVH building Reviewed By: brecht Differential Revision: https://developer.blender.org/D5439
2019-08-30Cleanup: clang-format, spellingCampbell Barton
2019-08-27Cycles: Stitching of subdivided and displaced meshesMai Lavelle
This patch stitches the vertices along patch edges so that cracks can no longer form when applying subdivision or displacement a mesh. Subpatches are now formed in a way that ensures vertex indices along subpatch edges are equal for adjacent subpatches. A mapping of vertices along patch edges is built to preform stitching. Overall performance is roughly the same, some gains were made in splitting, but some was lost in stitching. This fixes: - T49049 (cracks between patches from material and uv seams) - T49048 (discontinuous normals with true displacement) Reviewers: sergey, brecht Differential Revision: https://developer.blender.org/D3692
2019-08-27Fix undefined symbols for ccl::Node with some compilers and build optionsAlex Fuller
Differential Revision: https://developer.blender.org/D5590
2019-08-27Cycles/Windows: Fix over estimation of System RAM.Ray Molenkamp
`system_physical_ram` reported 1024x more System RAM than what was actually available.
2019-08-26Fix T69185: Cycles kernel OpenCL compile error after recent changesBrecht Van Lommel
2019-08-26Cycles: support move semantics for device_memoryPatrick Mours
Ref D5363
2019-08-26Cycles: refactor of BVH building to prepare for OptixPatrick Mours
Ref D5363
2019-08-26Fix Cycles session being (re)created twicePatrick Mours
In most cases this only makes a small startup time difference, but there is no reason to do this. Ref D5363
2019-08-26Cleanup: fix compiler warningsBrecht Van Lommel