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-09-23Fluid: Fix clang-tidy errorSebastián Barschkis
Issue was introduced in rB8d1123ba220b.
2020-09-23Fix T80833: Fluid Initial Velocity 'Source' incorrect when enabling InflowSebastián Barschkis
Do not escape flow / effector objects if they have a disabled use flow / use effector flag. Vertex velocities still need to be kept track of in order to have correct object velocities when enabling flows / effectors intermittenly. It is possible though to skip the emission loop if the flags are disabled.
2020-09-22Refactor for effector / collider velocitiesSebastián Barschkis
This refactor is in response to an unreported bug in which overlapping, moving colliders produced an unstable simulation. Things that change apart from cleanup through this refactor: - Effector objects with no velocities (either non-animated or animated but non-moving object) will explicitly set zero velocities in their flow bounding box. - When applying object velocities to the global grid, they will now be accumulated per cell (add and not set velocities). Later they will be averaged with the object count at any cell.
2020-09-19Cleanup: consistent TODO/FIXME formatting for namesCampbell Barton
Following the most widely used convention for including todo's in the code, that is: `TODO(name):`, `FIXME(name)` ... etc.
2020-09-15Liquid Simulation Display Options (GSoC 2020)Sriharsha Kotcharlakot
All the changes made in the branch `soc-2020-fluid-tools` are included in this patch. **Major changes:** === Viewport Display === - //Raw voxel display// or //closest (nearest-neighbor)// interpolation for displaying the underlying voxel data of the simulation grids more clearly. - An option to display //gridlines// when the slicing method is //single//. ==== Grid Display ==== - Visualization for flags, pressure and level-set representation grids with a fixed color coding based on Manta GUI. ==== Vector Display ==== - //**M**arker **A**nd **C**ell// grid visualization options for vector grids like velocity or external forces. - Made vector display options available for external forces. ==== Coloring options for //gridlines// ==== - Range highlighting and cell filtering options for displaying the simulation grid data more precisely. - Color gridlines with flags. - Also, made slicing and interpolation options available for Volume Object. Reviewed By: JacquesLucke, sebbas Differential Revision: https://developer.blender.org/D8705
2020-09-10Fix T79626: 2.91 Mantaflow crash when adaptive domain + noise are enabledSebastián Barschkis
Crash was caused by an incorect domain size of the noise solver and an index out of bounds.
2020-09-09Fluid: Fix for GSoC display controls projectSebastián Barschkis
Load all grids when the grid display option is turned on. Otherwise, the grid from the viewport display options might not have been loaded from the cache.
2020-09-09Cleanup: reduce variable scopesJacques Lucke
2020-09-04Cleanup: Clang-Tidy readability-inconsistent-declaration-parameter-name fixSebastian Parborg
No functional changes
2020-08-08Cleanup: replace sizeof division with ARRAY_SIZE macroCampbell Barton
2020-08-08Cleanup: use array syntax for sizeof with fixed valuesCampbell Barton
Also order sizeof(..) first to promote other values to size_t.
2020-08-07Cleanup: pass arrays const where possibleCampbell Barton
2020-08-07Cleanup: declare arrays arrays where possibleCampbell Barton
2020-08-07Cleanup: Blenkernel, Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/blenkernel` module. No functional changes.
2020-08-04Fluid: Minor cleanup in addition to fix for TT72192Sebastián Barschkis
Make curly brackets consistent.
2020-08-04Fix T72192: Mantaflow does not render flame when flow source is hidden from ↵Sebastián Barschkis
Renders The problem in this case was that the flag for active fire was not set. With hidden flow sources the flag was not updated in update_flowsflags(). The solution for this is to take the active field from the config cache file.
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-08-01Fluid: Another adjustment for Python pointersSebastián Barschkis
Yet another update to ensure that pointer variables are always up to date, i.e. those referencing the memory allocated by Mantaflow. Outdated pointers usually show up through flickering in viewport.
2020-07-31Fluid: Fix for Python pointer update (flickering in smoke/fire issue)Sebastián Barschkis
In f2b04302cdec the pointer update was refactored. It was sufficient to update pointers just in replay mode at the end of a step since the 'ensure()' functions from manta_fluid_API.cpp had their own pointer update call. These were removed in 51f4bee5a5d7, however, and so in order to still have some sort of update, the given update call needs to be available to all cache types.
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 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-21Fluid: Cleanup unused variablesSebastián Barschkis
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 liquid mesh scalingSebastián Barschkis
Fixes issue with .bobj.gz and .obj mesh files not always being scaled correctly in the viewport.
2020-07-14Fix T77766: support animated global gravity toggleJacques Lucke
Reviewers: sebbas Differential Revision: https://developer.blender.org/D8281
2020-07-13Fix T76687: [Mantaflow] low domain transformation performanceSebastián Barschkis
Implemented G.moving suggestion from comments.
2020-07-13Clang Tidy: enable readability-non-const-parameter warningJacques Lucke
Clang Tidy reported a couple of false positives. I disabled those `NOLINTNEXTLINE`. Differential Revision: https://developer.blender.org/D8199
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-02Fluid: Added offset to control frame rangeSebastián Barschkis
Added an offset field to control when to load the simulation files. Since this is a very small but helpful addition it is in my view safe to commit at this point of the bcon cycle.
2020-06-24Fluid: Use OpenVDB as the default cache format for liquids tooSebastián Barschkis
With the updated OpenVDB setup, it is now perfectly fine to use OpenVDB for liquid domains.
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-24Cleanup: redundant self assignmentCampbell Barton
2020-06-24Cleanup: clang-formatCampbell Barton
2020-06-19Cloth: allow forces to act parallel to cloth.Alexander Gavrilov
Currently all force effectors can only act on cloth when the force is perpendicular to the surface. This makes sense for wind, but not for other forces; and the user may want even wind to have some friction. This changes effector code to output two force vectors - although you of course can pass the same pointer for both. The force is split between the two outputs based on a new per-effector setting. Differential Revision: https://developer.blender.org/D8017
2020-05-20Merge branch 'blender-v2.83-release'Clément Foucault
# Conflicts: # source/blender/draw/engines/eevee/eevee_volumes.c
2020-05-20Fix T73979: Wrong location of fluid mesh when domain origin is not in centerJacques Lucke
Reviewers: sebbas Differential Revision: https://developer.blender.org/D7802
2020-05-17Fluid: Bake cache for more frames by defaultSebastián Barschkis
2020-05-17Fix T74060: Smoke flow force field not working with Mantaflow GasSebastián Barschkis
cb252ca8d316 was also needed to fix the velocity loading from the cache.
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-14Fluid: Rename smoke flow forces to fluid flow forcesSebastián Barschkis
Better to use more general term since in theory these forces can be used for smoke and liquid.
2020-05-08Cleanup: clang-formatCampbell Barton
2020-05-08Fix T76498: Refactoring - Rename BKE modifiers funtionsAntonio Vazquez
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-06Merge branch 'blender-v2.83-release'Sebastián Barschkis
2020-05-06Fix T76430: Quick smoke not rendering Cycles and EeveeSebastián Barschkis
Temporary fix that will skip cache invalidation from flow / effector objects.
2020-04-30Fix T76097: Simulations don't take animated gravity into accountSebastián Barschkis
Together with 21485e94aac1 this commit should fix the issue with animated gravity values.
2020-04-30Fluid: Refactored fluid gravity settingsSebastián Barschkis
Refactored setup that converts from Blender to Mantaflow units.
2020-04-30Fluid: Minor cleanup and sanity checksSebastián Barschkis