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
2016-02-13BLI_bitmap: add flip macroCampbell Barton
2016-02-12Fix error in bvhtree_walk_dfs_recursiveGermano Cavalcante
2016-02-11BLI_kdopbvh: test root node before traversingGermano Cavalcante
2016-02-11Cleanup: naming for NearestRayToAABB_PrecalcGermano Cavalcante
2016-02-10Cleanup: remove unused radius argumentCampbell Barton
2016-02-10Docs: use doxygen sectionsCampbell Barton
2016-02-10Docs: minor comment edits to smallhashCampbell Barton
2016-02-10Tweaks to the comments of smallhashSergey Sharybin
Collaboration between russki guy working from Netherlands and ausie bloke working from Australia (not Austria).
2016-02-10Cleanup: double promotionCampbell Barton
Also remove null checks from args with non-null attribute.
2016-02-09Add BLI_bvhtree_walk_dfs utility functionGermano Cavalcante
This generic function allows callers to walk the tree using callbacks to define behavior.
2016-02-09BLI_kdopbvh: expose bvhtree_kdop_axes arrayCampbell Barton
So future callbacks can make use of the axis index.
2016-02-09Docs: correct descriptionCampbell Barton
2016-02-03Cleanup: parenthesize macrosCampbell Barton
2016-02-03Fix BLI_rename returned success w/ missing source pathCampbell Barton
2016-01-30Cleanup: correct qsort commentsCampbell Barton
Also add link to original source & parenthesize min macro.
2016-01-28Cleanup: warnings & styleCampbell Barton
2016-01-27PIL_time_utiledefines: add TIMEIT_AVERAGED variants to block timing macros.Bastien Montagne
This variant behave exactly as TIMEIT_START etc., but it also sums up all times in a static var and prints out average execution time - very useful when dealing with small/quick pieces of code that get executed often, to get some meaningful results.
2016-01-26Correct commented printfsCampbell Barton
2016-01-25Correct own error in recent BVH nearest rayCampbell Barton
2016-01-25ImBuf: Make luminance calculation inlinedSergey Sharybin
Title actually tells it all, it is rather simple function which totally makes sense to be inlined. This gives up to 5% of speedup when updating scopes for a large image. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D1310
2016-01-25BLI_kdopbvh: Add BLI_bvhtree_find_nearest_to_rayGermano Cavalcante
Support for casting a ray through all nodes to find the closest (not the first hit as with ray casting).
2016-01-25Math Lib: Add dist_squared_ray_to_aabb_v3 utilityGermano Cavalcante
2016-01-23Math Lib: optimize segment-plane clippingCampbell Barton
Calculate the clipped min/max factor along the segment, only applying to the coordinates at the end (will give better precision too). Also make split input/output args.
2016-01-21Cleanup: line length, indentationCampbell Barton
2016-01-20error in last commitCampbell Barton
2016-01-20Cleanup: naming conventionCampbell Barton
Follow isect_ray_tri_watertight_v3 naming.
2016-01-19BLI_array_utils: add binary and/or functionsCampbell Barton
2016-01-18Ignore const qualifier when comparing typesCampbell Barton
2016-01-18Cleanup: styleCampbell Barton
2016-01-16Cleanup: BLI_task foreach looper API doc.Bastien Montagne
2016-01-16Cleanup: BLI_task - API changes.Bastien Montagne
Based on usages so far: - Split callback worker func in two, 'basic' and 'extended' versions. The former goes back to the simplest verion, while the later keeps the 'userdata_chunk', and gets the thread_id too. - Add use_threading to simple BLI_task_parallel_range(), turns out we need this pretty much systematically, and allows to get rid of most usages of BLI_task_parallel_range_ex(). - Now BLI_task_parallel_range() expects 'basic' version of callback, while BLI_task_parallel_range_ex() expectes 'extended' version of the callback. All in all, this should make common usage of BLI_task_parallel_range simpler (less verbose), and add access to advanced callback to thread id, which is mandatory in some (future) cases.
2016-01-16Cleanup: stdbool no longer optional, remove checksCampbell Barton
2016-01-13Polyfill2d: improve sweep clipping logicCampbell Barton
Now only reverse the fill direction when reaching a non-concave corner. Gives ~4x speedup here in tests with complex ngon.
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).
2016-01-09Smoke (fire): Move spectrum code from C++ (intern/) to C code (BLI)Kévin Dietrich
This change is for a few reasons: - it works with color, and (therefore) will need to be color managed, at some point. This will be much easier to do if the code is closer to the actual color management code (in Blender's core, so to speak). - it has nothing to do with the actual fire simulation, as it is just used to create a lookup table - it can be reused for other purposes (i.e. in Blender internal renderer, if people are interrested in a blackbody node à la Cycles) - cleanup: some functions (`contrain_rgb`, `xyz_to_rgb`) already exist in BLI Reviewers: brecht Reviewed By: brecht Subscribers: brecht Differential Revision: https://developer.blender.org/D1719
2016-01-08Math Lib: use x-span for fill_poly_v2i_n callbackCampbell Barton
Instead of running the callback per-pixel, pass the x-span to the callback.
2016-01-04BLI_task threaded looper: do not assert when start == stop.Bastien Montagne
This can happen quite often in forloops, and would be annoying to have to check for this in caller code! So now, just return without doing anything in this case.
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
2016-01-04Remove SCons building systemSergey Sharybin
While SCons building system was serving us really good for ages it's no longer having much attention by the developers and started to become quite a difficult task to maintain. What's even worse -- there started to be quite serious divergence between SCons and CMake which was only accumulating over the releases now. The fact that none of the active developers are really using SCons and that our main studio is also using CMake spotting bugs in the SCons builds became quite a difficult task and we aren't always spotting them in time. Meanwhile CMake became really mature building system which is available on every platform we support and arguably it's also easier and more robust to use. This commit includes: - Removal of actual SCons building system - Removal of SCons git submodule - Removal of documentation which is stored in the sources and covers SCons - Tweaks to the buildbot master to stop using SCons submodule (this change requires deploying to the server) - Tweaks to the install dependencies script to skip installing or mentioning SCons building system - Tweaks to various helper scripts to avoid mention of SCons folders/files as well Reviewers: mont29, dingto, dfelinto, lukastoenne, lukasstockner97, brecht, Severin, merwin, aligorith, psy-fi, campbellbarton, juicyfruit Reviewed By: campbellbarton, juicyfruit Differential Revision: https://developer.blender.org/D1680
2015-12-31Cleanup: warningCampbell Barton
2015-12-30Grr, forgot those ones in previous commit...Bastien Montagne
Never believe QTCreator when it comes to finding all usages of a func, kids... grep ftw!
2015-12-30BLI_task: change BLI_task_parallel_range_ex() to just take a bool whether to ↵Bastien Montagne
use threading or not, instead of threshold. From recent experience, turns out we often do want to use something else than basic range of parallelized forloop as control parameter over threads usage, so now BLI func only takes a boolean, and caller defines best check for its own case.
2015-12-29Building w/o OpenMP now works againCampbell Barton
rename define since its no longer OpenMP specific.
2015-12-29Fix memleaks in our gtests.Bastien Montagne
2015-12-29BLI_math_statistics: switch from OMP to BLI_task.Bastien Montagne
This time, with have over 300% speedup! But no, this is not due to switch to BLI_task (which 'only' gives usal 15% speedup), but to enhancement of the algorithm, flatten loop over covariance matrix items now allows to compute (usually) all items in parallel, instead of having at most 3 or 4 working threads (with unbalanced load even)...
2015-12-28BLI_kdopbvh: switch from OMP to BLI_task.Bastien Montagne
Gives the usual 10%-30% speedup on affected functions themselves (BLI_bvhtree_overlap() and BLI_bvhtree_balance()), and about 2% speedup to overall cloth sim e.g. (measured from main Cloth modifier func).
2015-12-28Some fixes from coverity (only one really nasty, in paint_proj).Bastien Montagne
2015-12-28Correct recent error passing NULL to fcloseCampbell Barton
2015-12-28Fix (unreported) broken BLI_task's forloop func in case we have less ↵Bastien Montagne
iterations that workers. When called with very small range, `BLI_task_parallel_range_ex()` would generate a zero `chunk_size`, leading to some infinite looping in `parallel_range_func` due to `parallel_range_next_iter_get` returning true without actually increasing the counter! So now, we ensure `chunk_size` and `num_tasks` are always at least 1 (and avoid generating too much tasks too).
2015-12-24Add STACK_CLEAR macroCampbell Barton