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
AgeCommit message (Collapse)Author
2020-07-16T73268: Link C/C++ unit tests into single executableSybren A. Stüvel
This commit introduces a new way to build unit tests. It is now possible for each module to generate its own test library. The tests in these libraries are then bundled into a single executable. The test executable can be run with `ctest`. Even though the tests reside in a single executable, they are still exposed as individual tests to `ctest`, and thus can be selected via its `-R` argument. Not yet ported tests still build & run as before. The following rules apply: - Test code should reside in the same directory as the code under test. - Tests that target functionality in `somefile.{c,cc}` should reside in `somefile_test.cc`. - The namespace for tests is the `tests` sub-namespace of the code under test. For example, tests for `blender::bke` should be in `blender::bke:tests`. - The test files should be listed in the module's `CMakeLists.txt` in a `blender_add_test_lib()` call. See the `blenkernel` module for an example. Reviewed By: brecht Differential Revision: https://developer.blender.org/D7649
2020-07-07UI: Add units to motion tracking solve errorsJohan Walles
The unit being "pixels". Before this change the solve errors were unitless in the UI. With this change in place, the UI is now clear on that the unit of the reprojection errors is pixels (px). Differential Revision: https://developer.blender.org/D8000
2020-07-01Cleanup: spellingCampbell Barton
2020-06-19Ceres: Update to the latest upstream versionSergey Sharybin
Using latest master because of various compilation error fixes. Brings a lot of recent development. From most interesting parts: - New threading model. - Tiny solver. - Compatibility with C++17.
2020-05-15Libmv: Fix crash solving when having negative framesSergey Sharybin
Don't use linear array with frame as an index since it has the following disadvantages: - Requires every application to take care of frame remapping, which could be way more annoying than it sounds. - Inefficient from memory point of view when solving part of a footage which is closer to the end of frame range. Using map technically is slower from performance point of view, but could not feel any difference as the actual computation is way more complex than access of camera on individual frames. Solves crash aspect of T72009
2020-05-15Libmv: Add map utilitySergey Sharybin
2020-05-15Libmv: Cleanup, spellingSergey Sharybin
2020-05-08Cleanup: Doxygen: fix markup warnings for linksAaron Carlisle
2020-04-29Tracking: Implement Nuke/Natron distortion modelSergey Sharybin
Neither Nuke nor Natron support OpenCV's radial distortion model which makes it impossible to have any kind of interoperability. The new model is available under the distortion model menu in Lens settings. Differential Revision: https://developer.blender.org/D7484
2020-04-21Libmv: Cleanup, namingSergey Sharybin
Initial bundle adjustment only supported OpenCV's radial distortion model, so the cost functor was called after it. Nowadays it supports more than this single model, so naming was a bit wrong and misleading.
2020-04-21Libmv: Cleanup, spelling and naming in bundle adjustmentSergey Sharybin
Just more things which were discovered to be annoying on unclear when adding more features to this code.
2020-04-20Libmv: Cleanup, spelling in commentSergey Sharybin
2020-04-20Libmv: De-duplicate creation of residual blockSergey Sharybin
Allows to centralize logic which is needed to check which cost functor to use for the specific intrinsics.
2020-04-20Libmv: Cleanup reprojection cost functionSergey Sharybin
Make it smaller and more clear how and what it operates on.
2020-04-20Libmv: Pass entire camera intrinsics to reprojection error functorSergey Sharybin
Currently no functional changes, but allows to have access to some invariant settings of camera intrinsics such as image dimensions.
2020-04-20Libmv: Cleanup, rephrase commentSergey Sharybin
2020-04-20Libmv: Cleanup, fix indentationSergey Sharybin
2020-04-20Libmv: Cleanup, spelling in commentsSergey Sharybin
2020-04-06Libmv: Use static scheduler for threadingSergey Sharybin
For a real-world distortion the payload is quite uniformly distributed across scanlines. Surely, in the corners more iterations of minimizer is needed, but that happens in threads without scheduling overhead.
2020-04-06Tracking: Fix (un)distortion happen in single threadSergey Sharybin
Need to communicate available number of threads to the camera intrinsics implementation, otherwise default value of 1 is used. Must have been single-threaded for a very long time.
2020-01-25Cleanup: include missing CMake headersCampbell Barton
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
2019-11-24Cleanup: spelling, repeated wordsCampbell Barton
2019-09-30Cleanup: spellingCampbell Barton
2019-09-13macOS: Enabled posix_memalign() like on other Unix platforms.Stefan Werner
2019-09-13Cleanup: compiler warningsBrecht Van Lommel
2019-08-21Cleanup: Fix build error with MSVCLazydodo
Previously eigens internal include order somehow implicitly provided M_PI and friends. The recent eigen version bump broke this implicit behaviour, better to be explicit that we need the math defines for MSVC.
2019-07-31Spelling fixes in comments and descriptions, patch by luzpazBrecht Van Lommel
Differential Revision: https://developer.blender.org/D3744
2019-07-23Fix T67089: Solve camera motion generates "Solve error: nan"Sergey Sharybin
The code was missing some checks for whether keyframe selection went successfully and whether reconstruction has been successfully initialized. The interface still gives quite generic message, with the details printed to the console. This can be addressed separately.
2019-06-28Fix non-working verbosity when set prior to --debugSergey Sharybin
Before this change doing something like `--verbose 10 --debug-cycles` did not properly set verbosity, only using those arguments in an other way around was leading to a correct verbosity level.
2019-04-18Disable clang-format for LibmvSergey Sharybin
This is an odd-ball: it's a library which has own style and guidelines, and just happened to be developed by Blender developers and also happened to rely on some functionality of intern/ for its C-API. Might consider using Google's clang-format in the future (this is what the style is supposed to be in this library).
2019-04-17Cleanup: use 2 space indentation for CMakeCampbell Barton
2019-04-16CMake: fix building without libmvCampbell Barton
2019-04-16CMake: add library deps to CMakeLists.txtCampbell Barton
Tested to work on Linux and macOS. This will be enabled once all platforms are verified. See D4684
2019-04-16CMake: cleanup, arg rename, add definitions lastCampbell Barton
2019-04-14CMake: prepare for BLENDER_SORTED_LIBS removalCampbell Barton
No functional change, this adds LIB definition and args to cmake files. Without this it's difficult to migrate away from 'BLENDER_SORTED_LIBS' since there are many platforms/configurations that could break when changing linking order. Manually add and enable WITHOUT_SORTED_LIBS to try building without sorted libs (currently fails since all variables are empty). This check will eventually be removed. See T46725.
2019-02-05Cleanup: remove contributors for CMake filesCampbell Barton
Following removal from C source code. See: 8c68ed6df16d8893
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2018-06-11Libmv: Cleanup, make strict compiler more happySergey Sharybin
In C++ it is not really safe to memcpy objects, and newer GCC will warn about this. However, we don't use our vector for unsafe-to-memcpy objects, so just explicitly silence that warning.
2018-03-23Libmv: Fix compilation error on WindowsSergey Sharybin
2018-03-23Glog/gflags: Reduce amount of local modificationsSergey Sharybin
With better directory layout and more proper include statements we can avoid several local modifications, such as changing config.h for Windows Glog and the ones related on pass-through statements in logging headers in Glog. This commit also makes unused functions not-a-warning for external code.
2017-12-15Libmv: Add C-API function to set all markers within AutoTrack structureSergey Sharybin
2017-11-30Haiku OS SupportCampbell Barton
D2860 by @miqlas Even though Haiku is a niche OS, only minor changes are needed.
2017-07-07Fix T51980: Motion Tracking - png image files appear in the Blender program ↵Sergey Sharybin
directory when using refine Residue of debug code remained form some older bug fix.
2017-05-31Libmv: Re-bundle from upstream to ensure code base is perfectly in syncSergey Sharybin
2017-05-29Fix T51646: Motion Tracker instantly crashesSergey Sharybin
Was a mistake in previous changes. Weirdly enough, frame reading assumes cache_key is always non-NULL..
2017-05-26Fix T50908: Motion Tracker ignored grease pencil maskSergey Sharybin
This feature got lost with new auto-track API, Added it back by extending frame accessor class. This isn't really a frame thing, but we don't have other type of accessor here. Surely, we can use old-style API here and pass mask via region tracker options for this particular case, but then it becomes much less obvious how real auto-tracker will access this mask with old style API. So seems we do need an accessor for such data, just matter of finding better place than frame accessor.
2017-05-09Libmv: Fix strict compiler warnings, unused variablesSergey Sharybin
2017-04-28Libmv: Make ERROR a default printing severitySergey Sharybin
2017-04-21CMake: Add option to link against system-wide Gflags librarySergey Sharybin
It is disabled by default, so should not affect existing configurations. Main benefits of this goes as: - Linux distros can use that to avoid libraries duplication and link blender package against gflags package from the system. - It it easier to test whether Blender works with updated version of Gflags prior to re-bundling the library.