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
2020-02-03Fix Cycles particle hair rendering broken after recent changesBrecht Van Lommel
This code was already wrong, we were just lucky that the previous coordinate was repeated due to using the same memory location.
2020-01-31Fix T64024: fullscreen switching on macOS shows red line artifactsYevgeny Makarov
Specifically, this happened when automatically hiding and showing of the menu bar and dock was enabled in the system preferences. Differential Revision: https://developer.blender.org/D6710
2020-01-31Fix issues in Cycles standalone, particularly related to render displayBrecht Van Lommel
Some code was removed to avoid storing the combined pass when viewport rendering other passes. But we can keep this by default, Blender overrides the list of passes entirely.
2020-01-31Cycles: bump version to 1.11, matching Blender 2.82 release cycleBrecht Van Lommel
2020-01-31Fluid: More stable flow emissionSebastián Barschkis
Reverting some changes that were made in 33317b464777
2020-01-31Fix more undefined behavior in tangent space computationBrecht Van Lommel
Ref D6677
2020-01-30Cleanup: clang-format, unused variableCampbell Barton
2020-01-29Fluid: Fixes for flow objects and initial velocitiesSebastián Barschkis
This commit cleans up the flow emission code (i.e. the code that determines where flow is generated). It also addresses an issue with initial velocities. Related issues (that might be fixed through this commit) are: T73422, T72949
2020-01-27Fix: Building without WITH_MOD_FLUIDRay Molenkamp
When MOD_FLUID was off and WITH_CYCLES was on there was a build error. Reviewed By: brecht Differential Revision: https://developer.blender.org/D6542
2020-01-27Fix undefined behavior in tangent space computationSimon G
Use an improved implementation for circular shift. Differential Revision: https://developer.blender.org/D6677
2020-01-27Fix part of T65404: quit dialog doesn't show if Blender is minimizedYevgeny Makarov
This solves the problem for macOS and Linux, but not Windows yet. Differential Revision: https://developer.blender.org/D6673
2020-01-27Cleanup: fix compiler warningsBrecht Van Lommel
2020-01-24Fluid: Added resume cache boolean to standalone scriptsSebastián Barschkis
Exported Manta script was missing the new resume options in the data load functions.
2020-01-23CMake: Refactor external dependencies handlingSergey Sharybin
This is a more correct fix to the issue Brecht was fixing in D6600. While the fix in that patch worked fine for linking it broke ASAN runtime under some circumstances. For example, `make full debug developer` would compile, but trying to start blender will cause assert failure in ASAN (related on check that ASAN is not running already). Top-level idea: leave it to CMake to keep track of dependency graph. The root of the issue comes to the fact that target like "blender" is configured to use a lot of static libraries coming from Blender sources and to use external static libraries. There is nothing which ensures order between blender's and external libraries. Only order of blender libraries is guaranteed. It was possible that due to a cycle or other circumstances some of blender libraries would have been passed to linker after libraries it uses, causing linker errors. For example, this order will likely fail: libbf_blenfont.a libfreetype6.a libbf_blenfont.a This change makes it so blender libraries are explicitly provided their dependencies to an external libraries, which allows CMake to ensure they are always linked against them. General rule here: if bf_foo depends on an external library it is to be provided to LIBS for bf_foo. For example, if bf_blenkernel depends on opensubdiv then LIBS in blenkernel's CMakeLists.txt is to include OPENSUBDIB_LIBRARIES. The change is made based on searching for used include folders such as OPENSUBDIV_INCLUDE_DIRS and adding corresponding libraries to LIBS ion that CMakeLists.txt. Transitive dependencies are not simplified by this approach, but I am not aware of any downside of this: CMake should be smart enough to simplify them on its side. And even if not, this shouldn't affect linking time. Benefit of not relying on transitive dependencies is that build system is more robust towards future changes. For example, if bf_intern_opensubiv is no longer depends on OPENSUBDIV_LIBRARIES and all such code is moved to bf_blenkernel this will not break linking. The not-so-trivial part is change to blender_add_lib (and its version in Cycles). The complexity is caused by libraries being provided as a single list argument which doesn't allow to use different release and debug libraries on Windows. The idea is: - Have every library prefixed as "optimized" or "debug" if separation is needed (non-prefixed libraries will be considered "generic"). - Loop through libraries passed to function and do simple parsing which will look for "optimized" and "debug" words and specify following library to corresponding category. This isn't something particularly great. Alternative would be to use target_link_libraries() directly, which sounds like more code but which is more explicit and allows to have more flexibility and control comparing to wrapper approach. Tested the following configurations on Linux, macOS and Windows: - make full debug developer - make full release developer - make lite debug developer - make lite release developer NOTE: Linux libraries needs to be compiled with D6641 applied, otherwise, depending on configuration, it's possible to run into duplicated zlib symbols error. Differential Revision: https://developer.blender.org/D6642
2020-01-22Fluid: Cleaned up functions that deal with Python objects (C-API)Sebastián Barschkis
This commit belongs to T72894. It's related to (my) previous commits on pointer exchanges (today + yesterday). It cleans up the functions by describing their usage in the comments, adds additional nullptr checks, and fixes the reference count responsibilities of newly created PyObjects.
2020-01-22Fluid: Refactored Mantaflow <-> Blender pointer exchange once moreSebastián Barschkis
2020-01-22Fix T71344: Optix render errors with motion blur and unknown bone constraint ↵Patrick Mours
relationship The OptiX SRT motion expects a motion defined by translation, rotation, shear and scale, but the matrix decomposition code in Cycles was not able to extract shear information and instead produced a stretch matrix with the information baked in. This caused conflicting transforms between traversal and shading and lead to render artifacts. This patch changes the matrix decomposition to produce factors inline with what OptiX expects to fix that. Reviewed By: brecht Differential Revision: https://developer.blender.org/D6605
2020-01-22Fix T73311: Mantaflow > Liquid: Enabling Initial Velocity on Inflow / ↵Sebastián Barschkis
Outflow crashes Blender
2020-01-22Fix T72894: Mantaflow: several crashes due to null pointersSebastián Barschkis
Incorporated LazyDodo's suggestions from the task.
2020-01-21Fluid: Refactored the Mantaflow <-> Blender pointer exchange function and ↵Sebastián Barschkis
switched to from NULL to nullptr in cpp files
2020-01-21Partial Fix T73043: Denoising Albedo not working well for SheenLukas Stockner
Similar to the Microfacet Closures, the Principled BSDF Sheen closure is added at a high weight but typically results in fairly low values. Therefore, the default weight is a bad indicator of importance. The fix here is the same as it was back then for Microfacets: Compute an average weight using the normal as the half-vector and use it to scale down the sample weight and the albedo channel. In addition to drastically improving denoising of materials with sheen when using the new Denoising node, this also can reduce noise on such materials considerably.
2020-01-20Fix Cycles not correctly using Background.shader if specifiedBrecht Van Lommel
Based on patch by Alex Fuller. Differential Revision: https://developer.blender.org/D6627
2020-01-20Fluid: Fix typo in smoke scriptSebastián Barschkis
2020-01-20Build: upgrade to OpenEXR 2.4.0, OpenVDB 7.0.0 and Boost 1.70.0Brecht Van Lommel
This aligns with the VFX reference platform 2020 along with the decision to stick to Python 3.7, see T68774. Blosc was downgraded to 1.5 as recommended by the OpenVDB documentation. IlmBase and OpenEXR are now built together with CMake rather separately using autoconf. Differential Revision: https://developer.blender.org/D6593
2020-01-20Fluid: Improved cache file loadingSebastián Barschkis
Cache file loading for mesh and particle files now works through the direct update_structures functions. The final cache mode now also only bakes the most essential files and is therefore not resumable anymore.
2020-01-16Fix T73064: Embree does not like Bevel shaderStefan Werner
Embree's local intersection routine was not prepared for local intersections without per-object BVH. Now it should be able to handle any kind of local intersection, such as AO, bevel and SSS. Differential Revision: https://developer.blender.org/D6602
2020-01-16Fix T71952, T70125: Blender Linux crash on startup with some tabletsBrecht Van Lommel
It's not certain this fixes the issue since I can't reproduce the crash, but the code was wrong in any case. Thanks to Ray Molenkamp and Anonymous for finding this.
2020-01-16Fluid: Fix for mesh velocitiesSebastián Barschkis
Was using incorrect file format when reading mesh velocities from cache
2020-01-15Fix T73111: Bake data of fluid causes crash of BlenderSebastián Barschkis
2020-01-15Fluid: Moved grid reset loop for inner obstacle cells from blenkernel code ↵Sebastián Barschkis
into Mantaflow Having this loop in directly Manta is faster and potentially fixes issues T72783 and T72894.
2020-01-15Fix numaapi on PowerPC platformsSergey Sharybin
Seems that previous fix didn't work in all cases: Debian's build environment didn't fully detect endianess, possibly due to typo, possibly due to difference in various environments. Using define magic from a more battle-tested project seems a safe way to go. There are more changes than just PPC since the upstream commit contains full re-synchronization of all defines. This commit updates numaapi to a latest library version from upstream.
2020-01-15Cleanup: clang-formatCampbell Barton
2020-01-14Fix rendering motion blur scenes with OptiX failing with ↵Patrick Mours
CUDA_ERROR_INVALID_CONTEXT Commit baeb11826b9fe5525db6dd05ba5271949079fc1e switched memory allocation for the motion transform to use CUDA directly, instead of going through abstractions. But no CUDA context was set active before those were called, so the calls failed. This fixes that by binding a context beforehand.
2020-01-14Cycles: Crash fix for random walk SSS with Embree.Stefan Werner
2020-01-10Cycles: Fix viewport rendering when displaying as byte and not half floatPatrick Mours
Commit rB7e61e597253f3ca75f2fb86a57212ca750ffbbe8 broke viewport rendering when not displaying as halfs. This fixes that by actually using the `scale` parameter that is passed into `film_map` and also de-duplicates code around it. Differential Revision: https://developer.blender.org/D6557
2020-01-10Fix T72470: OptiX render fails with scene with many translucent planes on Linux.Patrick Mours
OptiX always uses record-all behavior for transparent shadow rays, but did not check whether the maximum number of hits exceeded the shadow hit stack. This fixes that.
2020-01-09Cycles: Fixed OpenCL kernel build.Stefan Werner
transform_direction() can't handle parameters in constant address space. Creating a local copy of the parameter satisfies the OpenCL compiler. CUDA and CPU compilers should be able to optimize this away I hope.
2020-01-08Revert recent change to the particles RNA, and only affect the UI.William Reynish
Even though the name change is more correct, we don't want to change the API at this time.
2020-01-08Fix T66529: Cycles motion blur render errors with fast rotating objectsJosh Belanich
In transform_motion_decompose, successive quaternion pairs are checked to be aligned such that their interpolation is rotation through the shortest angle between them. If not, the first in the pair was flipped. This can cause problems for sequences of more than 2 quarternions, since flipping the first in a pair might misalign the previously pair, if unlucky. Instead, this change flips the second in the pair, which is safe when iterating forwards. Differential Revision: https://developer.blender.org/D6537
2020-01-08Fix T72954: Cycles gradient texture not clamped when using OSLBrecht Van Lommel
2020-01-08Cycles: Add OptiX AI denoiser supportPatrick Mours
This patch adds support for the OptiX denoiser as an alternative to the existing NLM denoiser in Cycles. It's re-using the same denoising architecture based on tiles and therefore implicitly also works with multiple GPUs. Reviewed By: sergey Differential Revision: https://developer.blender.org/D6395
2020-01-06Fix T70821: Hair Radius Is Actually Hair DiameterWilliam Reynish
Renamed hair tip and root properties to be called diameter rather than radius. The old name was incorrect.
2019-12-30Fix T68131: Cycles bake panel code typomano-wii
``` NameError: name 'col' is not defined ```
2019-12-26Cleanup: clang-formatLukas Stockner
2019-12-26Cycles: Use OIIO UDIM tag instead of %04dLukas Stockner
2019-12-26Cycles: Support UDIMs with OSL shadingLukas Stockner
2019-12-23Fix T72382: Arrow keys fail in search menuJean First
2019-12-21Fix: NaN error in smoothminf functionCharlie Jolly
2019-12-21Fluid: Ensure GIL in conversion functionSebastián Barschkis
2019-12-20Fix T72445: Cycles crash with Displacement maps in OSLLukas Stockner
The UDIM commit accidentally removed a check that skipped Image updates if the image was managed by OSL.