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-02-25Fix T72721: Add visibility flags updates to the PBVHPablo Dobarro
Currently, there its a function that sets manually the fully_hidden flag of the nodes from the visibility operators in paint_hide.c. The undo code was not updating the flag, so the visibility state of the nodes was incorrect after preforming undo operations. This sometimes was drawing fully hidden nodes with empty buffers, causing artifacts in the geometry. I added a function to mark nodes which visibility state changed (similar as we are updating the mask flags and the nodes bounding boxes). This way, the tools, operators and undo code don't have to update the visibility flags, making everything much simpler to understand and maintain. I did not remove the flag update code from the current visibility operators in this patch, but after reimplementing them (and all the new ones) in the new visibility system, all visibility updates should be done using this method and the BKE_pbvh_node_fully_hidden_set function should be removed. Reviewed By: jbakker Maniphest Tasks: T72721 Differential Revision: https://developer.blender.org/D6767
2019-10-10Cleanup: clang-format, spellingCampbell Barton
2019-10-08Sculpt: support automasking, pose and mask expand for multiresBrecht Van Lommel
These were the last remaining new sculpt tools that did not support multires. Performance could be improved still, but it should work. Fixes T68899
2019-10-08Cleanup: avoid converting from CCGElem to SubdivCCGCoordBrecht Van Lommel
The other direction is faster.
2019-10-04Subdiv CCG: add utility functions for accessing multires vertex neighborsSergey Sharybin
This is to be used by the new sculpting tools.
2019-10-03Subdiv CCG: Cleanup, remove unused data from adjacency storageSergey Sharybin
Makes it easier to initialze adjacency, avoid extra re-allocations during initialization, reduces memory footprint.
2019-10-03Cleanup: argument naming, redundant NULL checksCampbell Barton
2019-09-26Fix T70163: Error painting with Subdivision at end of stackSergey Sharybin
Deformation of subdivision surface modifier was using wrong coordinates for the coarse mesh: as the modifier flow goes the coordinates are to be taken from the input array of coordinates.
2019-09-18Subdiv: Cleanup, split function into smaller onesSergey Sharybin
2019-08-01Cleanup: misc spelling fixesCampbell Barton
T68035 by @luzpaz
2019-07-30BLI_task: Cleanup: rename some structs to make them more generic.Bastien Montagne
TLS and Settings can be used by other types of parallel 'for loops', so removing 'Range' from their names. No functional changes expected here.
2019-07-15Fix T66712: A model shows artifacts in the sculpt modeSergey Sharybin
Was a mistake in normals calculation: need to consider all grids for correct average in the center of the face. Reviewers: brecht Reviewed By: brecht Maniphest Tasks: T66712 Differential Revision: https://developer.blender.org/D5254
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-03-08Fix T61961; Smooth brush distorts multiresSergey Sharybin
The issue was caused by lack of proper accumulation for averaging. Doing it incrementally introduced a bias.
2019-03-08Cleanup: Spelling in commentSergey Sharybin
2019-03-07Multires: Fiux memory leakSergey Sharybin
The work data for materials flags was never freed.
2019-02-26Cleanup: indentation, trailing spaceCampbell Barton
2019-02-22Multires: Support smooth shading when sculptingSergey Sharybin
On CCG side it is done similar to displacement, where we have a dedicated functor which evaluates displacement. Might be seemed as an overkill, but allows to decouple SubdivCCG from mesh entirely, and maybe even free up coarse mesh in order to save some memory. Some weak-looking aspect is the call to update normals from the draw manager. Ideally, the manager will only draw what is already evaluated. But it's a bit tricky to find a best place for this since we avoid dependency graph updates during sculpt as much as possible. The new code mimics the old code, this is how it was in 2.7. Fix shading part of T58307.
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-03Cleanup: trailing commasCampbell Barton
Needed for clan-format not to wrap onto one line.
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.
2019-01-18Subdiv CCG: Cleanup, commentsSergey Sharybin
2019-01-18Multires: Correct function name, to match behaviorSergey Sharybin
2019-01-18Multires: Cleanup, move utility function to a more public placeSergey Sharybin
2019-01-06Cleanup: add trailing commas to structsCampbell Barton
Needed for clang formatting to workaround bug/limit, see: T53211
2018-12-18Fix T59478: Information Bar Missing Data when in Sculpt ModeSergey Sharybin
Display statistics from CCG structure. This makes values to be different from what is shown in object mode, since CCG is operating on individual grids, and object mode will stitch those grids. But on another, those values from CCG is what sculpt mode is actually "sees" or "uses". The number of faces should be the same in both sculpt and object modes.
2018-11-01Subdiv: Cleanup, deduplicate some codeSergey Sharybin
2018-09-27Cleanup: fix harmless compiler warnings.Brecht Van Lommel
2018-09-26Cleanup: warnings, styleCampbell Barton
2018-09-25Fix build on windows after ccg changesDalai Felinto
2018-09-25Cleanup: Variable name in mesh runtimeSergey Sharybin
Matches type better, avoiding possible confusion.
2018-09-24Spelling fixes in comments and descriptions (2.8 changes), patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3719
2018-09-21Multires: Support masks propagation to higher levelsSergey Sharybin
2018-09-21Subdiv: CCG, initialize grid mask from paint maskSergey Sharybin
2018-09-21Subdiv: CCG, cleanupSergey Sharybin
2018-09-20Subdiv: CCG, implement averaging along edges and cornersSergey Sharybin
Makes it so smooth brush works properly, without causing grids to become disconnected from each other. This need to optimize the code for brush, to only average edges and vertices which are adjacent to modified faces.
2018-09-20Subdiv: CCG, store vertex adjacency informationSergey Sharybin
Similar to previous commit, but for vertices.
2018-09-20Subdiv: CCG, store edge adjacency informationSergey Sharybin
This information is stored for each non-loose edge. For each of such edge we store: - List of CCG faces it is adjacent to. This way we can easily check whether it is adjacent to any face which is tagged for update or so. - List of boundary elements from adjacent grids. This allows to traverse along the edge and average all adjacent grids.
2018-09-20Subdiv: CCG, fix memory leakSergey Sharybin
Forgot to free memory used by grid to face mapping array.
2018-09-20Subdiv: CCG, localize Mesh usage even moreSergey Sharybin
2018-09-20Subdiv: CCG, go away from MeshSergey Sharybin
Use topology refiner where possible, which will make code more portable and less dependent on all the possibly outdated pointers.
2018-09-19Cleanup: styleCampbell Barton
2018-09-18Subdiv: CCG, implement stitching of given facesSergey Sharybin
Will speed up (or rather bring speed back to what it is supposed to be) for brushes like smooth.
2018-09-18Subdiv: CCG, make inner face grids averaging more reusableSergey Sharybin
2018-09-18Subdiv: CCG, initial grids stitching implementationSergey Sharybin
Currently is only working on an "inner" grid boundaries. Need to implement averaging across face edges.
2018-09-18Subdiv: CCG, evaluate final position for multiresSergey Sharybin
This makes it so coordinates and normals for CCG are calculated with mutires displacement taken into account. This solves issues with multires displacement being lost when entering sculpt mode. The missing part is averaging of normals along grid boundaries. But even then sculpting shows decent results. The plan to solve that would be to introduce function to stitch grids, which can also be used by Smooth brush which requires this.
2018-09-14Subdiv: Cleanup, variable name spellingSergey Sharybin
2018-09-14Subdiv: Cache Subdiv in CCG surfaceSergey Sharybin
Allows to do re-shaping easier, since we will know for sure what was the limit surface the CCG is created for.
2018-09-11Cleanup: styleCampbell Barton