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
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-07Refactor CDData masks, to have one mask per mesh elem type.Bastien Montagne
We already have different storages for cddata of verts, edges etc., 'simply' do the same for the mask flags we use all around Blender code to request some data, or limit some operation to some layers, etc. Reason we need this is that some cddata types (like Normals) are actually shared between verts/polys/loops, and we don’t want to generate clnors everytime we request vnors! As a side note, this also does final fix to T59338, which was the trigger for this patch (need to request computed loop normals for another mesh than evaluated one). Reviewers: brecht, campbellbarton, sergey Differential Revision: https://developer.blender.org/D4407
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-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-24Multires reshape: correct grids level allocationSergey Sharybin
Similar to masking grids, need to also check existing grid level. This is because edit mode might leave allocated grid with 0 levels.
2019-01-18Multires: Correct averagingSergey Sharybin
Before that only normal component was averaged, which is not really correct. Unfortunately, the new code is somewhat slower due to more involved math to deal properly with non-quad faces, but the plan is to move averaging from runtime to edit time, This means, that mdisps will always be continuous around the edges and no averaging on every frame change of animated character will be needed.
2019-01-18Multires: Ensure continuity when reshaping from objectSergey Sharybin
2019-01-18Multires: Simplify reshaping codeSergey Sharybin
The idea is to run reshaping for every boundary vertex of a grid rather than trying to copy boundary grid elements. While this is somewhat slower, this avoids all this tangent flipping magic, which tempts to be rather tricky and fragile.
2019-01-18Multires: Fix spike issues when sculpting on trianglesSergey Sharybin
The boundary copy code was not dealing correct with flipping tangent vectors, hence causing discontinuity in the final positions. Now we only copy boundaries for quads, where we know how to deal with tangent vectors and where we know that this is needed. More clear solution could be to change the code in a way that handles handles displacement grids of quads in the same way as it's done for non-quad faces.
2019-01-16Multires: Cleanup, commentsSergey Sharybin
2019-01-06Cleanup: add trailing commas to structsCampbell Barton
Needed for clang formatting to workaround bug/limit, see: T53211
2018-12-06Fix T58310: Crash when removing multires modifier from sculpt objectSergey Sharybin
2018-11-16Fix T57566: Blender 2.8 crashes with the new multiresSergey Sharybin
2018-11-06Multires: Refactor propagation to the higher levelsSergey Sharybin
Now it is forumlated in terms of deltas, and consists of the following steps: - Original displacement at the reshape level are being backed up. - New displacement is being written by the reshape routines. - Delta of the displacement is calculated. - Deltas are propagated to the higher levels, which also includes their interpolation/ - Original displacement is restored. - New interpolated displacements are added to the original ones. This is a base ground for the upcoming change related on using Catmull-Clark smoothing for the deltas instead of linear interpolation. Currently is no changes for artists, just preparing for upcoming work.
2018-11-02Multires: Cleanup, namingSergey Sharybin
First of all, follow our naming convention to use module prefix. Second of all, mesh is being created and is to be freed, we also have convention for such function names.
2018-11-01Subdiv: Cleanup, better naming yet againSergey Sharybin
2018-11-01Subdiv: Cleanup, de-duplicate some codeSergey Sharybin
2018-11-01Subdiv: Cleanup, de-duplicate tangent matrix calculationSergey Sharybin
2018-11-01Subdiv: Cleanup. better namingSergey Sharybin
2018-11-01Subdiv: Cleanup, deduplicate some codeSergey Sharybin
2018-10-09Modifier: add non derived mesh modifier wrappersCampbell Barton
Rename modifier_deformVerts_ensure_normals & modifier_applyModifier_ensure_normals with wrappers that match 2.7x convention.
2018-09-27Cleanup: fix harmless compiler warnings.Brecht Van Lommel
2018-09-25Multires: Make code more ready for mesh uised by multiple objectsSergey Sharybin
Probably more work is needed, but is good starting point.
2018-09-25Multires: Pass total level instead of modifier dataSergey Sharybin
This is the only thing which needs to be done to perform propoer reshape. Makes it easier to re-use code from other places.
2018-09-25Multires: Pass mesh instead of objectSergey Sharybin
There is nothing we need from object in this case.
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-24Cleanup: styleCampbell Barton
2018-09-21Cleanup: IndentationSergey Sharybin
2018-09-21Multires: Remove unused field from reshape contextSergey Sharybin
2018-09-21Cleanup: InetnationSergey Sharybin
2018-09-21Multires: Support masks propagation to higher levelsSergey Sharybin
2018-09-21Multires: Copy mask from sculpt to multiresSergey Sharybin
Allows to paint mask in sculpt mode, then go out of sculpt mode, come back and see proper mask.
2018-09-21Multires: Support sculpting on a lover levelsSergey Sharybin
Added propagation of displacement to a higher levels. Has the same limitation as reshape from object, which makes grids somewhat choppy due to linear interpolation nature. This is to be addressed next.
2018-09-21Multires: Fix reshaping from object at lower levelSergey Sharybin
This brings basic implementation of displacement propagation to a higher levels. Currently does linear interpolation between grid points at which reshape happened. It makes results a bit choppy, proper solution would be to use some interpolation weights from the limit patch.
2018-09-20Multires: Cleanup, more proper variable nameSergey Sharybin
2018-09-20Subdiv: CCG, fix crash going from sculpt to edit modeSergey Sharybin
Was happening for "new" objects, which did not have MDisps allocated yet.
2018-09-15Cleanup: styleCampbell Barton
2018-09-14Multires: Initial work to get sculpting to work with OpenSubdivSergey Sharybin
Allows to go to sculpt mode, do brush strokes, get out of sculpt mode and have deformation preserved. The issues currently is that the current implementation of CCG storage is created from the limit surface, without displacement taken into account. It is trivial to get displaced coordinates, but it is more tricky to get displaced normals. This is something to be solved next. Another limitation is that this only works for sculpting at a maximal multires level. There is code to be done to support propagation of displacement onto a higher levels.
2018-09-12Multires: Use more clear namingSergey Sharybin
There are so many reshapes now, and one more is to come. Better be explicit.
2018-09-12Cleanup, fullstops in commentsSergey Sharybin
2018-09-04Subdiv: Move mesh creation functionality to own headerSergey Sharybin
2018-09-04Subdiv: Move evaluation functionality to own headerSergey Sharybin
2018-09-04Subdiv: Move FOREACH functionality to own headerSergey Sharybin
2018-08-24Cleanup: indentation, styleCampbell Barton
2018-08-23Cleanup: trailing spaceCampbell Barton
2018-08-22Multires: Bring back operator to reshape from objectSergey Sharybin
Limited to mesh type of source, not sure it ever worked for non-meshes. While it's possible to support reshape from any object, the actual brain of operation would need to be recoded to go away from requirement of vertex indices matching in source and destination.
2018-08-22Multires: Remove another unused argument from reshape functionSergey Sharybin
2018-08-22Multires: Fix reshape when active level is lower than the total oneSergey Sharybin
2018-08-22Multires: Remove unused function argumentSergey Sharybin