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
2018-12-17Fix T58652: Crash editing shape keys weirdness with instancesSergey Sharybin
This is a second attempt to get the crash fixed. The original fix worked, but it was reverted by d3e0d7f0825. Now the logic goes as: - All pointers which we can not have shared (the ones which are owned by the runtime) are cleared. - The rest of runtime stays untouched. This seems to be enough to keep particles happy.
2018-12-14Fix broken particle distribution after recent fixSergey Sharybin
2018-11-26Fix T58032: particle children 'Use Clump Curve' crashPhilipp Oeser
Maniphest Tasks: T58032 Differential Revision: https://developer.blender.org/D3988
2018-10-23Cleanup: style, warningCampbell Barton
2018-06-17Merge branch 'master' into blender2.8Campbell Barton
2018-06-17Cleanup: trailing space for blenkernelCampbell Barton
2018-06-12Particle: Remove global RNG usage from distributionSergey Sharybin
2018-06-12Particles: Use local RNGSergey Sharybin
Currently only obvious cases, but is already a progress.
2018-05-26Fix T55207, fix T55208: hair not positioned correctly after subsurf.Brecht Van Lommel
The problem was that the particle system modifier was reading ob->derivedDeform during modifier stack evaluation. Due to the mesh -> DM conversion this was no longer set leading to wrong results. In fact we don't really need the deformed mesh, just the original mesh topology for face/poly index remapping. So the solution is to use that instead.
2018-05-16Particle System: ported most DerivedMesh → MeshSybren A. Stüvel
There are a few places where DerivedMesh is still used, most notably when calling the (not yet ported) cloth simulation. There is also still the use of Object.derivedDeform and Object.derivedFinal. Those places are marked with a TODO. Some functions in the editors module were copied to accept Mesh. Those already had 'mesh' in the name; the copies are suffixed with '__real_mesh' for easy renaming later when the DM-based functionality is removed.
2018-04-19Remove Blender Internal and legacy viewport from Blender 2.8.Ton Roosendaal
Brecht authored this commit, but he gave me the honours to actually do it. Here it goes; Blender Internal. Bye bye, you did great! * Point density, voxel data, ocean, environment map textures were removed, as these only worked within BI rendering. Note that the ocean modifier and the Cycles point density shader node continue to work. * Dynamic paint using material shading was removed, as this only worked with BI. If we ever wanted to support this again probably it should go through the baking API. * GPU shader export through the Python API was removed. This only worked for the old BI GLSL shaders, which no longer exists. Doing something similar for Eevee would be significantly more complicated because it uses a lot of multiplass rendering and logic outside the shader, it's probably impractical. * Collada material import / export code is mostly gone, as it only worked for BI materials. We need to add Cycles / Eevee material support at some point. * The mesh noise operator was removed since it only worked with BI material texture slots. A displacement modifier can be used instead. * The delete texture paint slot operator was removed since it only worked for BI material texture slots. Could be added back with node support. * Not all legacy viewport features are supported in the new viewport, but their code was removed. If we need to bring anything back we can look at older git revisions. * There is some legacy viewport code that I could not remove yet, and some that I probably missed. * Shader node execution code was left mostly intact, even though it is not used anywhere now. We may eventually use this to replace the texture nodes with Cycles / Eevee shader nodes. * The Cycles Bake panel now includes settings for baking multires normal and displacement maps. The underlying code needs to be merged properly, and we plan to add back support for multires AO baking and add support to Cycles baking for features like vertex color, displacement, and other missing baking features. * This commit removes DNA and the Python API for BI material, lamp, world and scene settings. This breaks a lot of addons. * There is more DNA that can be removed or renamed, where Cycles or Eevee are reusing some old BI properties but the names are not really correct anymore. * Texture slots for materials, lamps and world were removed. They remain for brushes, particles and freestyle linestyles. * 'BLENDER_RENDER' remains in the COMPAT_ENGINES of UI panels. Cycles and other renderers use this to find all panels to show, minus a few panels that they have their own replacement for.
2018-04-16Depsgraph: remove EvaluationContext, pass Depsgraph instead.Brecht Van Lommel
The depsgraph was always created within a fixed evaluation context. Passing both risks the depsgraph and evaluation context not matching, and it complicates the Python API where we'd have to expose both which is not so easy to understand. This also removes the global evaluation context in main, which assumed there to be a single active scene and view layer. Differential Revision: https://developer.blender.org/D3152
2018-04-16Merge branch 'master' into blender2.8Campbell Barton
2018-04-16Cleanup: indentationCampbell Barton
2018-04-13Python API: remove preview/render resolution settings from API functions.Brecht Van Lommel
For correct results these must have been set already when the depsgraph was created and evaluated, so all dependencies have appropriate resolutions too. For particle we no longer backup and restore the viewport particles to avoid overwriting them during render, as copy-on-write solves this for us. Even without COW particles seem to work ok. This also removes the particle simplification options based on camera. This was never used much and only available in Blender Internal. Differential Revision: https://developer.blender.org/D3148
2018-03-23Merge branch 'master' into blender2.8Campbell Barton
2018-03-23Cleanup: stray tabsCampbell Barton
Tabs in middle of code (mostly for no reason / by accident).
2018-02-27merge from masterGaia Clary
2018-02-26Cleanup: typosCampbell Barton
D3081 by @rjg, with others.
2018-02-18Merge branch 'master' into blender2.8Campbell Barton
2018-02-18Cleanup: add 2d suffix to BLI filesCampbell Barton
Some of these API's can have 3D versions, explicitly name them 2D.
2017-09-26BLI_rand : Make use of BLI_halton and BLI_hammersleyClément Foucault
2017-09-15Fix copy-paste error in recent particles fixSergey Sharybin
Was intersecting same triangle twice.
2017-09-14Fix T52732: Particle system volume grid particles out of volumeSergey Sharybin
Use more watertight and robust intersection test. It uses now ray to triangle intersection, but it's all fine because segment was covering the whole bounding box anyway.
2017-09-11Fix T52682: When hair number=faces number, particles/face = 1 , actually ↵Bastien Montagne
some hair is overlap. Just using same code for distribution for face/volume as the one changed/used for vertices since some months. Note that this change is breacking compatibility, in that distribution of particles over faces/volume may not be exactly the same as previously.
2017-08-20Fix T52439: Crash after adjusting lenght of hair particles.Bastien Montagne
Regression from rBfed853ea78221, calling this inside thread worker was not really good idea anyway, and we already have all the code we need in pre-threading init function, was just disabled for vertex particles before. To be backported to 2.79.
2017-07-05Code comments regarding last commit (forgotten to add before)Luca Rood
Using an arbitrary face as the source of the UV data is mostly fine, as vertices on seams will generally map to different parts of the texture that have the same color. This is regarding fed853ea782211298c902759ec8cd8e455d8b41d
2017-07-05Fix T51296: UVs not working for hair emitted from verticesLuca Rood
2017-06-02Cleanup: styleCampbell Barton
2016-07-04And one more fix to particle distribution!Bastien Montagne
As pointed by Brecht, previous fix in rB61b49de44940 was actually incomplete, we could still hit float rounding issue and hence same value in more than one consecutive items of element_sum. New solution is a bit different, we remove the 'minimal weight' check, and rather simply ignores an item when the sum of its normalized weight to previous item's sum does not add anything. Shall be safe and 100% effective this time!
2016-06-20Fix once more time particle distribution.Bastien Montagne
rB046adde64f16 was actually pretty useless (and broken), since issue ends up not being in binary search code, but in generation of the 'summed weights' array used to distribute particles over mesh items - looks like very small weights could lead to null accumulated weights, wich was breaking binary search. Fixed simply by adding a minimal, non-zero weight for mesh items to be allowed to emit particles. Hopefully we are done with this distribution mess!
2016-06-16Fix some rare asserts with new simple/random particle distribution code.Bastien Montagne
Optimization in binary search could lead to equality instead of expected strictly greater than value. Harmless but noisy, and better be strict here. reported by sergey on irc (with koro cycles benchmark file), thanks.
2016-06-11Fix T48634: Interpolation and distribution of Children Particles breaks.Bastien Montagne
Own stupid off-by-one regression in rB019ce363b01bba0afe1 and later...
2016-04-30Fix T48118: Vertex Groups not masking particle hair emission correctlyBastien Montagne
Own regression from rB019ce363b01bba0af, not totally sure why removing the heading zero value in element_sum broke binary search distribution in random branch, but... New code makes thing sooo much simpler, by simply getting rid of all zero-weight items in element_sum (at the cost of adding a temporary extra index mapping array), that way neither random nor 'even ordered' distribution code has to wory anymore about skipping zero-weighted items!
2016-04-22Cleanup: warnings (double promote, string format)Campbell Barton
2016-04-09Cleanup a bit particle distribution code.Bastien Montagne
Also do proper intial/final checks to avoid adding particle on zero-weight extreme items, instead of using cheap tricks like 'small offset'...
2016-04-09Fix T47983, Take II: Particles - Emit from Verts emits double on one vert.Bastien Montagne
Previous fix made another issue even more visible, leading to +1 particle on first vert and none on last one. This commit should fix both original and new issues.
2016-03-30Fix T47983: Particles - Emit from Verts emits double on one vert.Bastien Montagne
When non-random, particle distribution used a small start offset (to avoid zero-weight faces), which is fine with "continuous" entities like faces, but not for discrete ones like vertices - in that case it was generating some undesired "jump" over a few verts in case step was small enough (i.e. total number of verts/particles was big enough).
2016-03-30Particles: Fix broken grid distribution in some case from own recent ↵Bastien Montagne
rB201d3938622.
2016-03-29Fix T47902: Particle grid not using modifier stack, Take II.Bastien Montagne
Now only fix correct handling of use_modifier_stack for grid distribution, fixing it globally breaks all existing edited hair systems. :/
2016-03-29Revert "Fix T47902: Particle grid not using modifier stack."Bastien Montagne
This reverts commit 2bd3acf7cd27c0c3ee77b10d56b91c3b03226d39. Commit is valid in theory - but in practice, it means nearly all edited hair systems would need to be re-created from scratch... Not nice, so better revert and note in code that particle distribution is ugly and does not respect 'use modifier stack' option in most cases.
2016-03-26Fix T47902: Particle grid not using modifier stack.Bastien Montagne
Disclaimer: this is tentative fix, seems to be working but you never know with particles. If issue arise, we'll just revert this commit and hide 'use modifier stack' option for grid distribution instead. This commit also try to make choice of which dm to use during distribution more generic (deduplication of code), again hopping not to break anything. :P
2016-02-02Fix T46481: Volume grid particles out of volumeSergey Sharybin
The issue was caused by fix for 31017 which resulted in some missing intersecitons recorded which screwed inner/outer checks. This is an old bug, so didn't bother with forcing re-distribution to happen on file open to avoid possible other regressions.
2016-01-04Fix T47038: Particles in Particle Edit Mode get added in completely wrong ↵Bastien Montagne
location. It also fixes another issue (crash) related to symmetric editing. Quite involved, we (try to!) fix complete broken logic of parts of particle code, which would use poly index as tessface one (or vice-versa). Issue most probably goes back to BMesh integration time... This patch mostly fixes particle editing mode: - Adding/removing particles when using generative modifiers (like subsurf) should now work. - Adding/removing particles with a non-tessellated mesh (i.e. one having ngons) should also mostly work. - X-axis-mirror-editing particles over ngons does not really work, not sure why currently. - All this in both 'modes' (with or without using modifier stack for particles). Tech side: - Store a deformed-only DM in particle modifier data. - Rename existing DM to make it clear it's a final one. - Use deformed-only DM's tessface2poly mapping to 'solve' poly/tessface mismatches. - Make (part of) mirror-editing code able to use a DM instead of raw mesh, so that we can mirror based on final DM when editing particles using modifier stack (mandatory, since there is no way currently to find orig tessface from an final DM tessface index). Note that this patch is not really nice and clean (current particles are beyond hope on this side anyway), it's more like some urgency bandage. Whole crap needs complete rewrite anyway, BMesh's polygons make it really hard to work with current system (and looptri would not help much here). Also, did not test everything possibly affected by those changes, so it needs some users' testing & validation too. Reviewers: psy-fi Subscribers: dfelinto, eyecandy Maniphest Tasks: T47038 Differential Revision: https://developer.blender.org/D1685
2015-12-21Cleanup: warnings (msvc)Campbell Barton
Part of patch D1670 by @LazyDodo
2015-12-15Cleanup: math lib namingCampbell Barton
Distinguish between line / line_segment
2015-08-20Avoid redundant normal calculation in heat-weightCampbell Barton
2015-05-17Cleanup: indentationCampbell Barton
2015-05-05Fix T44593: particle volume distribution not working with large meshes.Brecht Van Lommel
2015-05-01Fix T44353, Fix T43981: random particle distribution overlaps if number is ↵Brecht Van Lommel
greater than 256.