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-08-28Fix T80149: Cycles OpenCL baking broken after changes to uses tiles for bakingBrecht Van Lommel
We forgot to update this code as part of D3108. I'd like to include this in 2.90, it's entirely broken now so can't really get any worse. Differential Revision: https://developer.blender.org/D8738
2020-08-25Fix T77298: Cycles multiple object making not working with multiple samplesBrecht Van Lommel
The previous fix loaded the pixels so existing tiles were not overwritten. However the Cycles render buffer is expected to be scaled by the number of sample, which was not taken into account. This is not ideal in that previews could have a mismatched number of samples between multiple objects, though the result will be correct. The better solution would be to bake all objects together per tile, rather than one after the other. But that is a bigger change than we can do in 2.90. Differential Revision: https://developer.blender.org/D8704
2020-08-24Fix T79819: crash with OSL trace() and getmessage() after Embree changesBrecht Van Lommel
The return value of scene_intersect must be checked, the isect struct members can't be assumed to be initialized if that returns false. Differential Revision: https://developer.blender.org/D8692
2020-08-18Remove (ifdef) RNA for simulation, point cloud and particlesDalai Felinto
For 2.90 release this should not be exposed in the RNA API. In master this needs to be ON by default, that's all. Differential Revision: https://developer.blender.org/D8589
2020-08-17Fix T77683: Cycles baking crash with motion blur enabled and no cameraPhilipp Oeser
specified Maniphest Tasks: T77683 Differential Revision: https://developer.blender.org/D8593
2020-08-17Cycles: Fix local intersections in Embree for non-instancd geometry.Stefan Werner
Embree's occlusion filter was checking against the wrong object ID and not exiting correctly in case of a mismatch. Fixes T79723
2020-08-17Fix T79052: Cycles new sky texture fails with sun size zeroBrecht Van Lommel
Clamp to a minimum angle to avoid precision issues.
2020-08-14Fix warning when compiling on Linux with WITH_XR_OPENXR enabledJulian Eisel
2020-08-14Fix undefined behavior with --debug-xrJulian Eisel
Mistake in cb578ca1048d3. Before that, the extension vector was static, to make sure the extension name strings wouldn't get destructed when leaving the function. I didn't think that was an issue and couldn't recreate one, because until the previous commit we wouldn't actually add any extensions to the vector on Windows (the system I tested with). Use C++17's `std::string_view` now, which avoids the string copies `std::string` creates for itself and thus its destruction when leaving the local scope.
2020-08-14Fix --debug-xr not outputting OpenXR debug prints on WindowsJulian Eisel
The OpenXR debug extension was disabled on Windows as a workaround. This was an old leftover from when there was only the Windows Mixed Reality runtime on Windows. The debug extension didn't work for it and we didn't have a way to disable it just for Windows Mixed Reality. Now it seems to work though, so we remove the workaround. If specific runtimes still have trouble with the extension, we can disable it specifically for these runtimes now.
2020-08-14Fix T79769, T79768: crash tweaking volume settings with Cycles viewport renderBrecht Van Lommel
Refitting the BVH does not work in this case, it needs to be fully rebuilt.
2020-08-14Fix/workaround graphics issues breaking SteamVR use with BlenderJulian Eisel
Windows only workaround. I'll have to investigate Linux separately. Steam's OpenGL compatibility is still new and doesn't work for us yet (neither does it for standard OpenXR examples from what I've heard and seen myself). We can work around that by falling back to our DirectX compatibility layer. Note that this DirectX compatibility still doesn't work for some systems, see T76082. Implementation note: Since the graphics binding extensions have to be enabled before we can find out which runtime is in use (e.g. SteamVR vs. Oculus, etc), we can now enable multiple graphics binding extensions but settle for a single one to use later. Once the SteamVR OpenGL backend works, we can remove this workaround again. Fixes T78267.
2020-08-12Fix T79680, T79680: confusing viewport denoise start sample behaviorBrecht Van Lommel
2020-08-12Fixes T77882: artifacts rendering OpenVDB volumes with multiple grids in CyclesKévin Dietrich
The previous algorithm was not using all of the requested grids to build a mesh around the volume due to limitations regarding the use of a dense buffer to gather information about the volume's topology. This resulted in artefacts during rendering. The mesh generation is now done by merging all of the input grids and using the resulting grid's topology to create the mesh. The generation of the mesh is still done in index space as before, and the vertices are converted to object space by using the merged topology grid indexToWorld transform. To be able to merge the grids together we have to make sure that their transformation matrices and their index spaces match, thus, if they do not match we simply resample the grids. This behaviour should tackle one other limitation of the current algorithm, which is that only one transformation matrix was used to generate the final mesh. If we do not have an OpenVDB grid for the requested volume data, we generate a temporary OpenVDB grid for it. Differential Revision: https://developer.blender.org/D8401
2020-08-10Fix T79636: Inserting special characters with Ctrl+Alt broken on WindowsJulian Eisel
We can't exactly follow what we do for macOS here. On Windows special characters can be inserted with Ctrl+Alt. So make sure we expect UTF-8 characters when Alt is held. Mistake in 87062d4d670c.
2020-08-10Cleanup: follow code style regarding bracesBrecht Van Lommel
2020-08-07Fix T79201: Mantaflow: Fluid guides don't affect simulation.Sebastián Barschkis
This broke during the OpenVDB update for 2.90. Just making sure that guiding velocity files are being read correctly.
2020-08-07Code Style: use "#pragma once" in intern/ghostJacques Lucke
More information can be found in D8466.
2020-08-06Fix T79586: "rendering paused" not shown when viewport render starts pausedBrecht Van Lommel
2020-08-06Cycles: load OpenVDB file earlier in Blender exportBrecht Van Lommel
In an upcoming bugfix we'll use OpenVDB data structures directly to build mesh for sparse OpenVDB volumes, loading them OpenVDB grids earlier and removing any references to Blender data structures makes that easier. This also makes changes to Blender volumes to support this, so Cycles can take ownership of a grid without Blender having to keep its own reference to it. This should also be useful in a future Python API. Ref D8401
2020-08-05Fix T78412: Ctrl+Spacebar does not maximize Python console on WindowsJulian Eisel
On windows, spacebar would be passed as UTF-8 text input, despite the control key being pressed. On macOS, there already was an explicit exception for this (command key in this case), on Linux XInput already handled this case for us. Note that Alt should still allow text input, for special character sequences. Issue also happened in the Text Editor if a text data-block was set.
2020-08-05Fix T78869: denoising performance regression on WindowsBrecht Van Lommel
Optimization was disabled in this function to work around a bug in MSVC, use a different solution that does not come with such a big performance regression.
2020-08-04Cleanup: typos & co in UI messages (and some other places).Bastien Montagne
2020-08-04Cycles: Fix nan in decomposed transform for degenerated inputSergey Sharybin
The decomposed transform would have consists of nan values if the input transform had zero scale. Now the decomposition will check for zero scale, and if it is detected then the result will be ensured to be finite. Additionally, rotation value will be copied from previous/next time step to help avoiding obscure interpolation. The latter step can become more comprehensive than the current simple implementation. Differential Revision: https://developer.blender.org/D8450
2020-08-04Cycles: Add finite checks for float4 and transformsSergey Sharybin
Currently unused, preparing for an upcoming development.
2020-07-31Fix T79111: Cycles: Image Sequence not renderingPhilipp Oeser
Caused by c7aa0f9d743ee9cafe91b4a51d9f1ecc5e437d71. Since above commit, BKE_image_user_frame_calc requires an image (not just the iuser) to get the framenumber. Cycles used to call this with NULL image (in `image_user_file_path` and `image_user_frame_number`), now pass the image as well. Maniphest Tasks: T79111 Differential Revision: https://developer.blender.org/D8439
2020-07-30Fix T78730: CLOG writes/reads outside allocated memory.Bastien Montagne
Fix several issues in CLOG code: * In `clg_str_reserve`, allocated memory may be bigger than requested one, do not assign the latter back to `cstr->len_alloc`. * `clg_str_vappendf` was mis-interpreting returned value from `vsnprintf`, and completely mixing total allocated memory and extra needed amount of memory to allocate... Simplified code of `clg_str_vappendf` to only have allocating code handled in one place, makes things easier to follow too. Think this should also be beckported to 2.83.
2020-07-28Fix T79067: Cycles panorama viewport render stretched after recent changesBrecht Van Lommel
2020-07-28Fix T79219: Cycles NLM denoiser clean passes broken after recent changesBrecht Van Lommel
2020-07-28Fix T79259: OptiX render with fisheye camera is different to CUDAPatrick Mours
The fisheye camera setup causes the edges of the image to not shoot primary rays. This was not respected by OptiX because of an optimization that tried to reduce conditionals around trace calls. Removing that does not seem to have an impact on performance anymore however and it fixes the issue.
2020-07-27Cycles: Enable OptiX on first generation Maxwell GPUs againPatrick Mours
2020-07-27Allocator: fix build error with -Werror=format-securityJacques Lucke
Doing it again here, because I fixed this only in master branch before..
2020-07-26Fluid: Added new option to control the maximum number fluid particles in the ↵Sebastián Barschkis
simulation New option that lets users the define the maximum number of fluid particles that will be allowed in the simulation. This can come in handy, for example, to ensure that the particle count will not exceed the hardware capabilities, or to avoid excessive amounts of particles in a scene.
2020-07-26Fluid: Cleanup unsed file format optionsSebastián Barschkis
File format options for noise and particles are not needed anymore (since OpenVDB update).
2020-07-24Fix OptiX being shown as available on first generation Maxwell GPUsPatrick Mours
The OptiX kernels are compiled for target "compute_sm_52", which is only available on second generation Maxwell GPUs, so disable support for older ones.
2020-07-24Allocator: make leak detection work with static variablesJacques Lucke
When definining static variables that own memory, you should use the "construct on first use" idiom. Otherwise, you'll get a warning when Blender exits. More details are provided in D8354. Differential Revision: https://developer.blender.org/D8354
2020-07-22Wayland: draw opaque background when OpenGL alpha is enabledChristian Rauch
2020-07-20Cycles: adjust Sky texture intensity to follow physical unitsBrecht Van Lommel
The sky will appear brighter than before by default. To compensate for this, lower exposure in the Film panel. The default altitude was also changed from 90 to 15 degrees. Patch contributed by Marco with the help of Ryan Jones. Differential Revision: https://developer.blender.org/D8285
2020-07-20Cycles: Use pre-compiled PTX kernel for older generation when no matching ↵Patrick Mours
one is found This patch changes the discovery of pre-compiled kernels, to look for any PTX, even if it does not match the current architecture version exactly. It works because the driver can JIT-compile PTX generated for architectures less than or equal to the current one. This e.g. makes it possible to render on a new GPU architecture even if no pre-compiled binary kernel was distributed for it as part of the Blender installation. Reviewed By: brecht Differential Revision: https://developer.blender.org/D8332
2020-07-20Fluid: Refactored smoke noise systemSebastián Barschkis
This refactor is in response to reports in which the adaptive domain with noise caused a crash (e.g. T79009). It should also fix issues where the smoke appeared to be cut off when using the adaptive domain together with noise. It is also possible that some of these changes improve the lines issue from T74559.
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-16Cleanup: missing CMake headers from source listsCampbell Barton
2020-07-15Fix T78930: Cycles OpenCL error on graphics cards that don't support half floatBrecht Van Lommel
2020-07-15Cleanup: spellingCampbell Barton
2020-07-14Fluid: Fix missing flag update for cacheSebastián Barschkis
These flags need to be set correctly in order to distinguish between data that comes from cache files and raw data that comes directly from pointers to the data in Mantaflow.
2020-07-14Fix T77766: support animated global gravity toggleJacques Lucke
Reviewers: sebbas Differential Revision: https://developer.blender.org/D8281
2020-07-14Cleanup: typoJacques Lucke
2020-07-14Cleanup: spellingCampbell Barton
2020-07-13Fix T78881: Cycles OpenImageDenoise not using albedo and normal correctlyBrecht Van Lommel
Properly normalize buffers now. Also expose option to not use albedo and normal just like OptiX.
2020-07-13Sky: Code style and formatting fixesLukas Stockner
Differential Revision: https://developer.blender.org/D8091