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
2021-12-08ImBuf: Performance IMB_transform.Jeroen Bakker
This change uses generics to reduce code duplication an increases flexibility and performance. Performance increase isn't measurable for end users.
2021-12-08Cleanup: move public doc-strings into headers for 'sequencer'Campbell Barton
Ref T92709
2021-12-08Cleanup: move public doc-strings into headers for 'draw'Campbell Barton
Ref T92709
2021-12-08Cleanup: move public doc-strings into headers for 'shader_fx'Campbell Barton
Ref T92709
2021-12-08Cleanup: move public doc-strings into headers for 'simulation'Campbell Barton
Ref T92709
2021-12-08Cleanup: move public doc-strings into headers for 'blentranslation'Campbell Barton
Ref T92709
2021-12-08Cleanup: moved IMB_transform to transform.cc.Jeroen Bakker
Part of a refactoring to make IMB_transform more generic to reduce unneeded branching.
2021-12-08Cleanup: Silence clang-tidy warnings.Jeroen Bakker
2021-12-08Cleanup: move public doc-strings into headers for 'blenloader'Campbell Barton
Ref T92709
2021-12-08Cleanup: move public doc-strings into headers for 'render'Campbell Barton
Ref T92709
2021-12-08Cleanup: move public doc-strings into headers for 'windowmanager'Campbell Barton
Ref T92709
2021-12-08Cleanup: move public doc-strings into headers for 'makesrna'Campbell Barton
Ref T92709
2021-12-08Cleanup: move public doc-strings into headers for 'makesdna'Campbell Barton
Ref T92709
2021-12-08Cleanup: move public doc-strings into headers for 'blendthumb'Campbell Barton
Ref T92709
2021-12-08Cleanup: move public doc-strings into headers for 'blenfont'Campbell Barton
Ref T92709
2021-12-08Cleanup: move public doc-strings into headers for 'modifiers'Campbell Barton
Ref T92709
2021-12-08Cleanup: Clang-Tidy modernize-redundant-void-argAaron Carlisle
2021-12-08Cleanup: Missing braces in array declarationAaron Carlisle
2021-12-08Cleanup: clang-formatAaron Carlisle
2021-12-08Cleanup: Nodes: clang-tidy modernize-redundant-void-argAaron Carlisle
2021-12-08Cleanup: spelling in commentsCampbell Barton
2021-12-08Nodes: Add Shader Socket to new decleration APIAaron Carlisle
This commit adds the shader socket type to the new socket builder api. Re commits part of rB0bd3cad04edf4bf9b9d3b1353f955534aa5e6740
2021-12-08Shader Nodes: Use camel case for file namesAaron Carlisle
Recommits part of rBf60b95b5320f8d6abe6a629fe8fc4f1b94d0d91c
2021-12-08Cycles: Fix Metal BVH crash caused by missing `WITH_METAL` defineMichael Jones
Reviewed By: brecht Differential Revision: https://developer.blender.org/D13505
2021-12-07Cleanup: Extend a few comments in BKE_spline.hhHans Goudey
2021-12-07Revert "Fix T93350: Cycles renders shows black during rendering huge ↵Brecht Van Lommel
resolutions" This reverts commit 5e37f70307bdacedd0f7da65f8b385bc1426f21d. It is leading to freezing of the entire desktop for a few seconds when stopping 3D viewport rendering on my Linux / NVIDIA system.
2021-12-07Tests: add Cycles perspective/ortho/panoramic camera regression testsBrecht Van Lommel
Ref D12691
2021-12-07Cycles: add Fisheye Lens Polynomial camera modelHåkan Ardö
This allows real world cameras to be modeled by specifying the coordinates of a 4th degree polynomial that relates a pixels distance (in mm) from the optical center on the sensor to the angle (in radians) of the world ray that is projected onto that pixel. This is available as part of the panoramic lens type, however it can also be used to model lens distortions in projective cameras for example. Differential Revision: https://developer.blender.org/D12691
2021-12-07Build: don't look for CUDA toolkit if not using Cycles CUDA deviceBrecht Van Lommel
2021-12-07Cleanup: fix compiler warningBrecht Van Lommel
2021-12-07Shader Nodes: Create a new bf_nodes_shader libraryAaron Carlisle
Re commits rBf72cc47d8edf849af98e196f721022bacf86a5e7 but without the unity build
2021-12-07Cleanup: Missing includeAaron Carlisle
This included is needed for the `ATTR_NONNULL` macro used in the header. As found in a recent c --> c++ if the includes get ordered in a different order this could result in an error. Re commits rBc20098e6ec6adee874a12e510aa4a56d89f92838
2021-12-07Cleanup: clang-tidy: modernize-redundant-void-argAaron Carlisle
Re commits part of rB0578921063fbb081239439062215f2538a31af4b
2021-12-07Docs: Add more comments to geometry set headerHans Goudey
This adds a bit more information to `GeometrySet` and each of the geometry components. There is probably still more that can be written, but this includes the most important information that I could think of. I'd like to include some more general information about the attribute API in a separate patch. Differential Revision: https://developer.blender.org/D13501
2021-12-07Fix T93350: Cycles renders shows black during rendering huge resolutionsSergey Sharybin
The root of the issue is caused by Cycles ignoring OpenGL limitation on the maximum resolution of textures: Cycles was allocating texture of the final render resolution. It was exceeding limitation on certain GPUs and driver. The idea is simple: use multiple textures for the display, each of which will fit into OpenGL limitations. There is some code which allows the display driver to know when to start the new tile. Also added some code to allow force graphics interop to be re-created. The latter one ended up not used in the final version of the patch, but it might be helpful for other drivers implementation. The tile size is limited to 8K now as it is the safest size for textures on many GPUs and OpenGL drivers. Differential Revision: https://developer.blender.org/D13385
2021-12-07Fix T93418: Cycles shadow terminator Geometry Offset artifacts with translucencyMikhail Matrosov
Differential Revision: https://developer.blender.org/D13468
2021-12-07Build: remove Cycles CUDA/HIP/OPTIX build options on macOSBrecht Van Lommel
So those device types are not listed in the preferences. Metal will be added instead as the only option.
2021-12-07Build: clean up handling of some Cycles build optionsBrecht Van Lommel
* Don't link embree / OSL when WITH_CYCLES is disabled * Simplify lite config by disabling Cycles as a whole using this * Remove code handling the removed WITH_CYCLES_NETWORK option
2021-12-07Cycles: Reintroduce device-only memory handling that got lost in Cycles X mergePatrick Mours
Somehow only a part of rBf4f8b6dde32b0438e0b97a6d8ebeb89802987127 ended up in Cycles X, causing the issue that commit fixed, "OPTIX_ERROR_INVALID_VALUE" when the system is out of memory, to show up again. This adds the missing changes to fix that problem. Maniphest Tasks: T93620 Differential Revision: https://developer.blender.org/D13488
2021-12-07Cycles: add Metal device type to `device_type_for_description`Sybren A. Stüvel
Add a `DEVICE_METAL` case to the enum-value-to-string mapping function.
2021-12-07Cycles: fix build on non-Apple systemsSybren A. Stüvel
Skip compiling `metal.mm` unless `WITH_CYCLES_DEVICE_METAL` is enabled.
2021-12-07Geometry Nodes: Edge Neighbors NodeJohnny Matthews
Creates a new Edge Neighbors node which outputs a field containing the number of faces connected to each edge. Differential Revision: https://developer.blender.org/D13493
2021-12-07Cycles: Metal host-side codeMichael Jones
This patch adds the Metal host-side code: - Add all core host-side Metal backend files (device_impl, queue, etc) - Add MetalRT BVH setup files - Integrate with Cycles device enumeration code - Revive `path_source_replace_includes` in util/path (required for MSL compilation) This patch also includes a couple of small kernel-side fixes: - Add an implementation of `lgammaf` for Metal [Nemes, Gergő (2010), "New asymptotic expansion for the Gamma function", Archiv der Mathematik](https://users.renyi.hu/~gergonemes/) - include "work_stealing.h" inside the Metal context class because it accesses state now Ref T92212 Reviewed By: brecht Maniphest Tasks: T92212 Differential Revision: https://developer.blender.org/D13423
2021-12-07Geometry Nodes: new Geometry to Instance nodeJacques Lucke
This adds a new Geometry to Instance node that turns every connected input geometry into an instance. Those instances can for example be used in the Instance on Points node. Differential Revision: https://developer.blender.org/D13500
2021-12-07Geometry Nodes: move type conversions to blenkernelJacques Lucke
The type conversions do not depend on other files in the nodes module. Furthermore we want to use the conversions in the geometry module without creating a dependency to the nodes module there.
2021-12-07Cleanup: Add macro and functions for node storageHans Goudey
The `node_storage` functions to retrieve const and mutable structs from a node are generated by a short macro that can be placed at the top of each relevant file. I use this in D8286 to make code snippets in the socket declarations much shorter, but I thought it would be good to use it consistently everywhere else too. The functions are also useful to avoid copy and paste errors, like the one corrected in the cylinder node in this commit. Differential Revision: https://developer.blender.org/D13491
2021-12-07Fix T93467: Use world bg color for pose library previewsYuchen Wen
Use the World viewport color when rendering pose library previews. The World's viewport color is chosen instead of the World shading nodes, as the latter would require rendering with `OB_RENDER` (instead of `OB_SOLID`), which would take considerably longer. Manifest Task: T93467 Reviewed By: sybren Differential Revision: https://developer.blender.org/D13470
2021-12-07Revert moving all shader nodes to c++Jacques Lucke
This reverts to following commits: * rB5cad004d716da02f511bd34983ac7da820308676 * rB97e3a2d935ba9b21b127eda7ca104d4bcf4e48bd * rBf60b95b5320f8d6abe6a629fe8fc4f1b94d0d91c * rB0bd3cad04edf4bf9b9d3b1353f955534aa5e6740 * rBf72cc47d8edf849af98e196f721022bacf86a5e7 * rB3f7014ecc9d523997062eadd62888af5fc70a2b6 * rB0578921063fbb081239439062215f2538a31af4b * rBc20098e6ec6adee874a12e510aa4a56d89f92838 * rBd5efda72f501ad95679d7ac554086a1fb18c1ac0 The original move to c++ that the other commits depended upon had some issues that should be fixed before committing it again. The issues were reported in T93797, T93809 and T93798. We should also find a better rule for not using c-style casts going forward, although that wouldn't have been reason enough to revert the commits. Introducing something like a `MEM_new<T>` and `MEM_delete<T>` function might help with the the most common case of casting the return type of `MEM_malloc`. Going forward, I recommend first committing the changes that don't require converting files to c++. Then convert the shading node files in smaller chunks. Especially don't mix fairly low risk changes like moving some simple nodes, with higher risk changes.
2021-12-07Fix T93797, T93809: Crash/undefined-behavior when opening demo fileJulian Eisel
Error in d5efda72f501. Was changing an iteration that would free items to an iterator that is not safe for use in such cases. There still seem to be significant issues with the rendering, but that's a separate issue to be fixed.
2021-12-07Fix memory leak when loading large asset librariesJulian Eisel