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-11-14Cleanup: comment block tabsCampbell Barton
2018-09-24Spelling fixes in comments and descriptions, patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3719
2018-06-17Cleanup: trailing space for blenkernelCampbell Barton
2018-05-04Constraint: Shrink Warp: Replace `bvhtree_from_mesh_looptri` with` ↵Germano
bvhtree_from_mesh_get`. The value of epsilon was never used to create this bvhtree because whenever we activate this constraint, a bvhtree with parameter epsilon 0.0 was created and cached.
2018-05-03Cleanup: parentheses warningCampbell Barton
2018-05-03BKE bvhtree: Add `tree_type` parameter to `bvhtree_from_mesh_get`.Germano
This will allow greater control of the bvhtrees that are obtained, and helps identify problems. It is also an additional step to unify the functions.
2018-05-01Refactoring: bvhutils: Use a function that gets the bvhtree through an ↵Germano
identifier type. Reviewed By: @campbellbarton Differential Revision: https://developer.blender.org/D3192
2018-01-21Cleanup: styleCampbell Barton
2018-01-10Task scheduler: Use restrict pointer qualifierSergey Sharybin
Those pointers are never to be aliased, so let's be explicit about this and hope compiler does save some CPU ticks.
2018-01-09Task scheduler: Use single parallel range function with more flexible functionSergey Sharybin
Now all the fine-tuning is happening using parallel range settings structure, which avoid passing long lists of arguments, allows extend fine-tuning further, avoid having lots of various functions which basically does the same thing.
2018-01-09Task scheduler: Get rid of extended version of parallel range callbackSergey Sharybin
Wrap all arguments into TLS type of argument. Avoids some branching and also makes it easier to extend things in the future.
2017-08-26Fix T52478: Error report "Shrinkwrap: out of memory" on invisible target.Bastien Montagne
Shrinkwrap must check it does have valid target data. Safe for 2.79 release.
2017-03-18Alternate fix for T50899Campbell Barton
object_get_derived_final shouldn't have been assuming mesh objects. It's even valid to use a curve as a target for a shrink-wrap modifier.
2017-03-10rBa81ea408367abe2f33b351ff6dcc6b09170fd088 "object" -> "target"Germano Cavalcante
2017-03-10fix T50899: Even though the Shrinkwrap options hide the possibility of using ↵Germano Cavalcante
a non-mesh target, you can still circumvent this... Causing Crash
2016-06-29Fix T48695: Slowdown w/ edit-mesh & shrinkwrapGermano Cavalcante
0b5a0d84 caused regression since edit-mesh BVH wasn't cached, each shrink-wrap modifier created its own BVH.
2016-05-31Fix T48547: Shrinkwrap fails w/ auxiliary targetCampbell Barton
Error in 0b5a0d84
2016-05-30Shrinkwrap: OMP->BLI_task.Bastien Montagne
Gives little to no speedup (a few percents at best).
2016-05-05Transform/Snap: EditMesh/BKE_bvhutils API improvementsGermano Cavalcante
Separate the creation of trees from EditMesh from the creation of trees from DerivedMesh. This was meant to simplify the API, but didn't work out so well. `bvhtree_from_mesh_*` actually is working as `bvhtree_from_derivedmesh_*`. This is inconsistent with the trees created from EditMesh. Since for create them does not use the DerivedMesh. In such cases the dm is being used only to cache the tree in the struct DerivedMesh. What is immediately released once bvhtree is being used in functions that change(tag) the DM cleaning the cache. - Use a filter function so users of SnapObjectContext can define how edit-mesh elements are handled. - Remove em_evil. - bvhtree of EditMesh is now really cached in the snap functions. - Code becomes organized and easier to maintain. This is an important patch for future improvements in snapping functions.
2016-03-07Fix missing weight invert w/ shrink-wrap modifierCampbell Barton
2016-03-07Shrink Wrap modifier: invert vgroup optionCampbell Barton
D1839 from @Orgold
2016-01-12Fix T47164: [Scene.raycast] - True result when it should be False.Bastien Montagne
We cannot use FLT_MAX as initi distance for raycast... Renamed TRANSFORM_DIST_MAX_RAY to BVH_RAYCAST_DIST_MAX, moved it into BLI_kdopbvh, and use in RNA raycast callbacks (and all other places using that API).
2015-10-06Fix T46389: Shrinkwrap fails in editmodeCampbell Barton
Own regression caused by fix for T46067, edit-mode bvh only contained unselected faces. This commit adds support for an edit-mode bvh containing all faces.
2015-09-10Fix T46067: ShrinkWrap + Threaded depsgraph crashCampbell Barton
Note that allocating DM arrays from an editmesh is currently not threadsafe, however even if were resolved, its more efficient to avoid having to do it in the first place.
2015-07-23Use looptri for BVH raycast (simple cases)Campbell Barton
2015-02-06cleanup: styleCampbell Barton
2014-11-29Cleanup: unused headersCampbell Barton
2014-08-01Cleanup: Move SpaceTransform helpers from `BKE_shrinkwrap` to `BLI_math_matrix`.Bastien Montagne
2014-08-01Cleanup: Move `object_get_derived_final` from BKE_shrinkwrap to BKE_DerivedMeshBastien Montagne
Note this func needs some love, but this will be for later (should never have been in shrinkwrap code!).
2014-07-28Fix T40831: Shrink wrap modifier causes very high CPU usage when targeting ↵Sergey Sharybin
meshes with shaped keys Same issue as revious one -- need to start OMP threads only when there's enough data to crunch.
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-03-20Code cleanup: use boolsCampbell Barton
2014-02-03Code cleanup: use bools where possibleCampbell Barton
2014-02-02Code cleanup: suffix vars to make obvious they are squaredCampbell Barton
2014-01-17Code Cleanup: spellingCampbell Barton
2013-12-26Threaded object update and EvaluationContextSergey Sharybin
Summary: Made objects update happening from multiple threads. It is a task-based scheduling system which uses current dependency graph for spawning new tasks. This means threading happens on object level, but the system is flexible enough for higher granularity. Technical details: - Uses task scheduler which was recently committed to trunk (that one which Brecht ported from Cycles). - Added two utility functions to dependency graph: * DAG_threaded_update_begin, which is called to initialize threaded objects update. It will also schedule root DAG node to the queue, hence starting evaluation process. Initialization will calculate how much parents are to be evaluation before current DAG node can be scheduled. This value is used by task threads for faster detecting which nodes might be scheduled. * DAG_threaded_update_handle_node_updated which is called from task thread function when node was fully handled. This function decreases num_pending_parents of node children and schedules children with zero valency. As it might have become clear, task thread receives DAG nodes and decides which callback to call for it. Currently only BKE_object_handle_update is called for object nodes. In the future it'll call node->callback() from Ali's new DAG. - This required adding some workarounds to the render pipeline. Mainly to stop using get_object_dm() from modifiers' apply callback. Such a call was only a workaround for dependency graph glitch when rendering scene with, say, boolean modifiers before displaying this scene. Such change moves workaround from one place to another, so overall hackentropy remains the same. - Added paradigm of EvaluaitonContext. Currently it's more like just a more reliable replacement for G.is_rendering which fails in some circumstances. Future idea of this context is to also store all the local data needed for objects evaluation such as local time, Copy-on-Write data and so. There're two types of EvaluationContext: * Context used for viewport updated and owned by Main. In the future this context might be easily moved to Window or Screen to allo per-window/per-screen local time. * Context used by render engines to evaluate objects for render purposes. Render engine is an owner of this context. This context is passed to all object update routines. Reviewers: brecht, campbellbarton Reviewed By: brecht CC: lukastoenne Differential Revision: https://developer.blender.org/D94
2013-10-22style cleanupCampbell Barton
2013-10-05rename presets not to use '+' character, also some typo fixes.Campbell Barton
2013-09-07shrink-wrap constraint, improve and remove some limitations.Campbell Barton
- ability to change the space the axis is projected in (so you can choose worldspace or -space, was always local-space before). - support projecting on a negative axis, without this some very simple clamping is not possible if the direction happened not to be positive. - add distance limit (same as modifier), without this single meshes surrounding an object would make the constraint impossible to use in some cases (it would snap to the wrong side). note: this removes the ability to project on multiple axes at once but this option only added up directions and didnt project on multiple axes as you might expect.
2013-08-06code clenup: remove benchmarking left in by accident and GPU print, also ↵Campbell Barton
some minor style edits
2013-08-06replace mul_serie_m4 with mul_m4_m4m4 when only 3 args are givenCampbell Barton
2013-04-14code cleanup: rename BKE_tessmesh -> BKE_editmesh, rename ↵Campbell Barton
EditDerivedBMesh.tc -> em. ('tc' is odd name which isn't used elsewhere).
2012-11-09add a distance limit to the shrinkwrap modifiers project mode,Campbell Barton
it was problematic for vertices to fire rays out and hit some unrelated-far-off geometry which is often not what users want.
2012-11-09code cleanup: move shrinkwrap's benchmark macro into PIL_time.h & some minor ↵Campbell Barton
style edits.
2012-11-05fix issue with shrinkwrap face projection distance comparisons when using ↵Campbell Barton
both positive and negative projection. - don't attempt to convert the 'dist' value between local/target space, since all the projections are done in target space and dist isnt used afterwards. Also, this could fail with non uniform scale - overwriting ray casts with larger dist values. - added an assert to check larger dist values never overwrite smaller ones. - remove use of sasqrt() since the value is checked beforehand anyway.
2012-11-05revert own commit r34706 (fix for [#25801]), this causes bug [#25801].Campbell Barton
checking on this code further it still isn't working correctly, will commit other changes next.
2012-11-05style cleanupCampbell Barton
2012-10-21style cleanup: commentsCampbell Barton
2012-09-06code cleanup: capitalize defines.Campbell Barton