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-10-28Cycles: internal support for float4 geometry attributesAlexander Gavrilov
Previously only float3 and byte4 was supported. Ref D2057
2020-10-28Cycles: refactor to split surface and volume attribute lookup moreBrecht Van Lommel
This avoids OpenCL inlining heavy volume interpolation code once for every data type, which could cause a performance regression when we add a float4 data type in the next commit. Ref D2057
2020-10-28Tracking: Simplify configuration of intrinsics to refineSergey Sharybin
Previously, only predefined and limited set of intrinsics combinations could have been refined. This was caused by a bundle adjustment library used in the early days of the solver. Now it is possible to fully customize which intrinsics are to be refined during camera solving. Internally solver supports per-parameter settings but in the interface they are grouped as following: * Focal length * Optical center * Radial distortion coefficients (which includes k1, k2, k3, k4) * Tangential distortion coefficients (which includes p1, p2) Differential Revision: https://developer.blender.org/D9294
2020-10-28Libmv: Fix typo in packed intrinsicsSergey Sharybin
Was using doing an implicit cast of floating point value to boolean. Was not noticed before because the boolean value was never never used.
2020-10-27Cleanup: use over-line for doxy commentsCampbell Barton
Follow our code style for doxygen sections.
2020-10-27Revert "Cycles API: encapsulate Node socket members"Brecht Van Lommel
This reverts commit 527f8b32b32187f754e5b176db6377736f9cb8ff. It is causing motion blur test failures and crashes in some renders, reverting until this is fixed.
2020-10-27Cycles API: encapsulate Node socket membersKévin Dietrich
This encapsulates Node socket members behind a set of specific methods; as such it is no longer possible to directly access Node class members from exporters and parts of Cycles. The methods are defined via the NODE_SOCKET_API macros in `graph/ node.h`, and are for getting or setting a specific socket's value, as well as querying or modifying the state of its update flag. The setters will check whether the value has changed and tag the socket as modified appropriately. This will let us know how a Node has changed and what to update, which is the first concrete step toward a more granular scene update system. Since the setters will tag the Node sockets as modified when passed different data, this patch also removes the various `modified` methods on Nodes in favor of `Node::is_modified` which checks the sockets' update flags status. Reviewed By: brecht Maniphest Tasks: T79174 Differential Revision: https://developer.blender.org/D8544
2020-10-26Cycles: Add support for OptiX 7.2 SDKPatrick Mours
2020-10-26Merge branch 'blender-v2.91-release'Philipp Oeser
2020-10-26Fix T69911: Adaptive subdivision offscreen dicing does not work correctly if ↵Philipp Oeser
the camera is shifted Code was assuming frustrum planes are symmetrical which is not the case for shifting. This lead to a shrinking region if shift was negative (and a growing region if shift was positive) So instead of only keeping track of plane on one side (and mirroring over in code) get the actual planes after shifting and use these instead. This code corrects this for ortho and perspective cameras, it does not touch panoramic cameras. Reviewed By: brecht Maniphest Tasks: T69911 Differential Revision: https://developer.blender.org/D9342
2020-10-26Fix T81893: Cycles viewport crash changing mesh to smoke domainBrecht Van Lommel
Now that volume is a dedicated geometry type in Cycles, we need to re-allocate the geometry when a mesh changes into a volume.
2020-10-24UI: Capitalization CorrectionsYevgeny Makarov
Approximately 141 changes of capitalization to conform to MLA title style. Differential Revision: https://developer.blender.org/D8392 Reviewed by Julian Eisel
2020-10-24CLOG: Add getter to know if output supports coloringClément Foucault
2020-10-24Fix Cycles unnecessary overhead cancelling finished task poolBrecht Van Lommel
2020-10-23CLOG: Add getter to know if output supports coloringClément Foucault
2020-10-23Fix Cycles unnecessary overhead cancelling finished task poolBrecht Van Lommel
2020-10-23Merge branch 'blender-v2.91-release'Brecht Van Lommel
2020-10-23Fix T81102: Cycles crashes in interactive 3D viewport rendering after EmbreeBrecht Van Lommel
Don't allocate a new buffer for refitting meshes, but update the existing one. It's not clear from the API docs if this is required, but it appears to solve the issue and should be more efficient.
2020-10-23Fix T81976: Cycles crash after recent geometry sync multithreading changeOlivier Maury
Avoid accessing mesh emitter and hair at the same time. This is not ideal for performance, but once we have a dedicated hair object this will resolve itself. Differential Revision: https://developer.blender.org/D9322
2020-10-21Cycles: multithreaded export of geometryJagannadhan Ravi
This improves performance in scene synchronization when there are many mesh, hair and volume objects. Sync time speedups in benchmarks: barbershop 5.2x bmw 1.3x fishycat 1.5x koro 1.0x sponza 3.0x victor 1.4x wdas_cloud 0.9x Implementation by Nicolas Lelong, and Jagannadhan Ravi (AMD). Differential Revision: https://developer.blender.org/D9258
2020-10-21Fluid: Fix in addition to new obstacle distance parameterSebastián Barschkis
The obstacle distance value should only be used when using second order boundaries.
2020-10-21Fluid: Added obstacle fluid distance parameterSebastián Barschkis
Being able to adjust the distance between fluid and obstacles comes in handy when trying to achieve a fluid motion over inclined obstacles. Depending on the slope of such obstacles, already small adjustments of this value can help when particles stick to obstacle surfaces (i.e. make particles not stick to obstacles).
2020-10-20Libmv: Refactor camera intrinsics parameter blockSergey Sharybin
Use the newly introduced packed intrinsics, which allows to remove code which was initializing parameters block based on distortion model type. Now such initialization is done by a particular implementation of a distortion model. Differential Revision: https://developer.blender.org/D9192
2020-10-20Libmv: Add generic class for packed intrinsicsSergey Sharybin
This is a common class which can be used in all sort of minimization problems which needs camera intrinsics as a parameter block. Currently unused, but will replace a lot of hard-coded logic in the bundle adjustment code.
2020-10-20Libmv: Add array<type, size> to libmv namespaceSergey Sharybin
2020-10-20Fix libmv test on windowsSebastian Parborg
There is no point in testing std::vector capacity as it can differ between std implementations.
2020-10-19Spelling: MiscellaneousHarley Acheson
Corrects 34 miscellaneous misspelled words. Differential Revision: https://developer.blender.org/D9248 Reviewed by Campbell Barton
2020-10-19Fix build error with WITH_CYCLES_NATIVE_ONLY and AVX tests on macOSBrecht Van Lommel
Only build avx/avx2 unit tests if supported by the compiler and WITH_CYCLES_NATIVE_ONLY is off, otherwise the appropriate compiler flags are not available.
2020-10-19Spelling: Then Versus ThanHarley Acheson
Corrects incorrect usages of the words 'then' and 'than'. Differential Revision: https://developer.blender.org/D9246 Reviewed by Campbell Barton
2020-10-19Spelling: It's Versus ItsHarley Acheson
Corrects incorrect usage of contraction for 'it is', when possessive 'its' was required. Differential Revision: https://developer.blender.org/D9250 Reviewed by Campbell Barton
2020-10-19Fix T81806: Cycles error when GPU device_type is NONECampbell Barton
Own regression in 4bea4702d5d5a
2020-10-19Fix libmv eigen alignment issues when compiling with AVX supportSebastian Parborg
There would be eigen alignment issues with the custom libmv vector class when compiling with AVX optimizations. This would lead to segfaults. Simply use the std::vector base class as suggested by the old TODO in the class header. Reviewed By: Sergey Differential Revision: http://developer.blender.org/D8968
2020-10-18Fluid: Fix for issues with external forcesSebastián Barschkis
A general refactor / fix commit that should clear out the issues that have been reported on external forces and moving effectors (e.g. T79537, T81660, T80088).
2020-10-18Fix T81729: Cycles object color not updating for instancersPhilipp Oeser
Caused by rBe65c78cd43aa. Since above commit, only geometry and lights received the update, previous to this check an instancer would receive that is well (in case of 'is_updated_shading'). Now check for an instancer (checking OB_DUPLI via ob.is_instancer()) and do an update then as well. Reviewers: brecht Maniphest Tasks: T81729 Differential Revision: https://developer.blender.org/D9222
2020-10-15Fix part of T74918: 3D Viewport: Jump, when mouse crosses a window corner.Bastien Montagne
We need a separate time stamp for each axis, and we have to add a few milliseconds of padding to those, to ensure wrapping on both axes get properly performed when it happens almost simultaneously, and avoid extra wrapping caused by very close events sometimes. This only addresses the Linux (X11 backend) case. Differential Revision: https://developer.blender.org/D9209
2020-10-15Fix T81520: Crash setting the Cycles device from PythonCampbell Barton
2020-10-15PyAPI: throw exception when cycles is given an invalid device nameCampbell Barton
2020-10-15Cleanup: defer importing '_cycles' in properties.pyCampbell Barton
This was imported already in nearly all usage. Also use static-set for string comparison.
2020-10-14Fluid: Removed fluid levelset argument from pressure solveSebastián Barschkis
It seems that this was causing the instabilities at slanted obstacles (with secondary boundary (fractional) collisions enabled) ...
2020-10-14Fluid: Enabled OpenVDB precision argumentSebastián Barschkis
This way particles can be saved with the custom OpenVDB precision options that were introduced in the latest Mantaflow update.
2020-10-13Cycles: fix missing ShaderNode ownership in render_graph_finalize_testKévin Dietrich
2020-10-13Cycles: Add CUDA 11 build supportPatrick Mours
With this patch the build system checks whether the "CUDA10_NVCC_EXECUTABLE" CMake variable is set and if so will use that to build sm_30 kernels. Similarily for sm_8x kernels it checks "CUDA11_NVCC_EXECUTABLE". All other kernels are built using the default CUDA toolkit. This makes it possible to use either the CUDA 10 or CUDA 11 toolkit by default and only selectively use the other for the kernels where its a hard requirement. Reviewed By: brecht Differential Revision: https://developer.blender.org/D9179
2020-10-12Fix T81551: Cycles crash updating volume with modifiersBrecht Van Lommel
The volume bounds mesh was being rebuilt too often, it should only be done when rebuilding the BVH as well, otherwise they can go out of sync.
2020-10-12Cleanup: CMake: Remove arguments from endif(..)Ankit Meel
No functional change. Added in {rB1f6b7387ad01}
2020-10-12Libmv: Remove array access from camera intrinsicsSergey Sharybin
That was a suboptimal decision from back in the days, which ended up being problematic. It is no longer used, so remove it from API making it so new code does not depend on this weak concept.
2020-10-12Libmv: Fix wrong packing order of intrinsics for BA stepSergey Sharybin
The order got broken when Brown distortion model has been added. Made it so the indexing of parameters is strictly defined in the parameter block, matching how parameters are used in the cost function. There is some duplication going on accessing parameters. This can be refactored in the future, by either moving common parts packing and cost function to an utility function in bundle.cc. Alternatively, can introduce a public PackedIntrinsics class which will contain a continuous block of parameters, and each of the camera models will have API to be initialized from packed form and to create this packed form. The benefit of this approach over alternative solutions previously made in the master branch or suggested in D9116 is that the specific implementation of BA does not dictate the way how public classes need to be organized. It is API which needs to define how implementation goes, not the other way around. Thanks Bastien and Ivan for the investigation!
2020-10-12Revert "Fix critical lens distortion bug in libmv after rB3a7d62cd1f5e."Sergey Sharybin
This reverts commit 7e836bde11ce6521953c9f246cacd442a3ef6c0e. Reverting the incomplete workaround, due to the following reasoning: - There should be no dependency between CameraIntrinsics and the bundler code. This violates intended abstraction of the intrinsics class. - The fix was not complete, or wrong. Even in the world where there is a requirement to the parameters storage size this should have applied to all distortion models, including Divisions, Nuke. Proper fix will be committed next.
2020-10-12Libmv: Fix memory leak in modal solverSergey Sharybin
The leak was happening when problem did not have any parameters blocks defined. This happens, for example, if there are no 3D points at all, or when all markers are set to 0 weight. Was noticeable in libmv_modal_solver_test when building with LSAN enabled.
2020-10-12Libmv: Cleanup, spelling in function nameSergey Sharybin
Is a local function, not affecting API.
2020-10-10Cleanup: use C comments for descriptive textCampbell Barton
Follow our code style guide by using C-comments for text descriptions.