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-08-07Merge branch 'blender-v2.90-release'Sebastián Barschkis
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-04Fluid: Do not show fluid if frame is out of cache rangeSebastián Barschkis
Before: If the current frame is out of the cache start/end range, the viewport will show the fluid as it was on the last frame that was still in the cache frame range. Now: If the current frame is out of the cache start/end range, the viewport will show no fluid at all (even if there are cache files present for this frame). This fix is related / in response to T79423.
2020-08-03Fluid: Adjustments to force component resetSebastián Barschkis
Instead of clearing forces at the end of the simulation step, they will now be cleared before writing to them, i.e. at the beginning of a step. Also cleaned up minor areas that I looked at while making this change.
2020-07-31Fluid: Cleanup and improved readabilitySebastián Barschkis
A collection of multiple changes that had been living in my stash: - Use nullptr instead of NULL in C++ files - Removed unused/deprecated functions from headers - Cleared animatable flag in cache UI - Comment cleanups
2020-07-31Fluid: Refactored Python fluid initialization functionsSebastián Barschkis
Initialization functions now have a return type which will be asserted during fluid object creation.
2020-07-31Fluid: Refactored Python pointer update functionSebastián Barschkis
Use static_cast() where possible and refresh pointers for every frame when in replay mode. The latter is particularly important as this seems to have caused the issue where smoke in the viewport was flickering when loading data from pointers after loading them from disk for the frame before (e.g. when resuming a bake job).
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-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-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-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-03Fix T72214: Fluids: noise does not work with negative frame numbersJacques Lucke
The issue is duplicated code. There are two functions that zero-fill the frame number. They worked the same for positive frames numbers, but behaved differently for negative ones. On frame `-100`, `BLI_path_frame` outputs `-0100` and `fluid_cache_get_framenr_formatted_$ID$` outputted `-100`. I changed the behavior of the latter, because we depend on the behavior of the former for much longer already. Reviewers: sebbas Differential Revision: https://developer.blender.org/D8107
2020-07-03Cleanup: Fluid renaming from old 'manta' naming to new 'fluid' namingSebastián Barschkis
Changed variable names from mmd, mds, mfs, and mes to fmd, fds, ffs, and fes. The author of this commits lights a candle for all the merge conflicts this will cause.
2020-07-03Cleanup: spellingCampbell Barton
2020-06-26Fluid: Fix typos from OpenVDB updateSebastián Barschkis
Some typos that were not noticed in 995185894289.
2020-06-25Fix T77204: Mantaflow Initial velocity bugged?Sebastián Barschkis
Always initialize the particle velocity of newly sampled particles to 0 if there are no initial velocities. Clearing the grid source makes sure that new particles will get a 0 velocity - and not interpolated from the associated grid.
2020-06-25Fix T77285: Incorrect Mantaflow fluid border interaction when collision is ↵Sebastián Barschkis
turned off Incorrect boolean for 'open' domain borders.
2020-06-24Fluid: Improved OpenVDB support for fluid cachesSebastián Barschkis
This commit makes uses of the new OpenVDB IO in Mantaflow (introduced in 781f783a66ac). From now on, fluid cache files in OpenVDB format will contain a list of grids per frame (before: one .vdb file per grid per frame). Besides regular grids, particle systems are also stored using OpenVDBs PointGrid data structures. All older cache formats will remain fully functional: - Uni caches (.uni) files are still available from the UI and can be used as before - Raw caches (.raw) are no longer available from the UI, but loading them is still possible - Old OpenVDB caches (one .vdb per grid) can no longer be baked either, but loading them is still possible. It is also no longer possible to choose file formats for 'Noise' and 'Particles'. Instead there are now options to set the file format for 'Volumetric' and for 'Mesh' data. Known issues (planned to be resolved soon): - OpenVDB files are currently not taking into consideration the clipping value (FluidDomainSettings). Empty cells are therefore being written too. Depending on the scene, this can make file sizes unnecessarily large. - Domains are not being exported at their world position. Instead they are always clipped to the origin.
2020-06-18Fluids: fix variable namesJacques Lucke
This seems to be an error in rBb91b90f0dd3c9bff3b1a6e563c2cce293722ed16. I found it, because I could not open the file in T77263 anymore. Reviewers: sebbas Differential Revision: https://developer.blender.org/D8065
2020-06-05Fluid: Cleanup internal Python object namesSebastián Barschkis
Manta Python objects should not carry the global ID in their names.
2020-05-19Merge branch 'blender-v2.83-release'Sebastián Barschkis
2020-05-19Fix T76812: [Mantaflow] Inflow particles not continuousSebastián Barschkis
Makes use of the new particle skipping option introduced in f25a882955cb.
2020-05-19Merge branch 'blender-v2.83-release'Sebastián Barschkis
2020-05-19Fix T76697: [Mantaflow] mesh generation does not account for some particlesSebastián Barschkis
Adapted mesh generation to account for domains with disabled fractionstoo.
2020-05-19Fluid: Cleanup unused variablesSebastián Barschkis
2020-05-18Merge branch 'blender-v2.83-release'Sebastián Barschkis
2020-05-18Fix T76814: [Mantaflow] Surface Tension always worksSebastián Barschkis
Initialize the curvature grid and compute the laplacian only if the diffusion flag is set.
2020-05-18Manta: Cleanup, strict compiler flagSergey Sharybin
For some reason was only visible with gcc-10 in release builds. Kind of makes sense since there is no CMake code which removes strict compiler flag, so deal with strict flags in the code itself.
2020-05-17Fix: Build error with MSVCRay Molenkamp
A parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax. Removing the cast seems fine for both MSVC and GCC
2020-05-17Fluid: Foundation for new OpenVDB file IOSebastián Barschkis
This commit lays the foundation for support for OpenVDB caching with multiple grids per cache file.
2020-05-17Fluid: Cleanup namespace stdSebastián Barschkis
2020-05-13Fluid: Fix for refactor 99ee1de094a1Sebastián Barschkis
Fix incorrect file IO functions.
2020-05-12Merge branch 'blender-v2.83-release'Jacques Lucke
2020-05-12Fix T75889: Cannot bake mantaflow via Python APIJacques Lucke
The issue was the usage of the global `__main__` Python module. When running scripts in the text editor, Blender would overwrite the `__main__` module. Reviewers: sebbas Differential Revision: https://developer.blender.org/D7690
2020-05-12Fluid: remove special treatment for running Python code on windowsJacques Lucke
We discussed this in D7690 and could not find a reason for this code anymore. It might just be leftover from some even older code.
2020-05-08Fluid: Adjusted secondary particles timestep and gravity optionsSebastián Barschkis
Secondary particles are now compatible with the new gravity setup.
2020-05-08Additional fix for T76426: Mantaflow Liquid - Gravity not respecting Time ↵Sebastián Barschkis
Scale from domain. Removed time scale from another conversion factor. See also changes from 6400f54b4cc6.
2020-05-07Fluid: Use cached value for total time valueSebastián Barschkis
The old time_total initialization was in trouble if scenes made use of a variable framelength (e.g. by animating the time scale parameter).
2020-05-07Fix T76426: Mantaflow Liquid - Gravity not respecting Time Scale from domain.Sebastián Barschkis
Removed timescale from conversion factor - factors should stay constant even if timescale changes.
2020-05-04Merge branch 'blender-v2.83-release'Sebastián Barschkis
2020-05-04Fix T75883: Smoke simulations with Adaptive Domain broken for 'Final' bakes ↵Sebastián Barschkis
with OpenVDB in 2.83 Config files always use the .uni extenstion.
2020-05-04Fluid: Fix for refactor 99ee1de094a1Sebastián Barschkis
Use booleans instead of 0 / 1 in Python
2020-05-03Fluid: Cleanup use of std in MANTA wrapperSebastián Barschkis
Moved std namespace to beginning of class.
2020-05-03Fluid: Cleanup in main MANTA wrapperSebastián Barschkis
Use shorter variable names.
2020-05-03Fluid: Refactored 'Modifier Data to Python' value transfer functionSebastián Barschkis
This function needed a bigger cleanup, especially after the problem from T76276.
2020-04-30Fix T76276: Compiler Error C1061 due to too many nested if/else in ↵Sebastián Barschkis
MANTA_main.cpp The compiler error should be fixed by removing the 'else if' blocks. However, this function should still be refactored in the future.