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
2017-09-06Merge branch 'master' into blender2.8Brecht Van Lommel
2017-09-06Math Lib: normalized vector project functionsCampbell Barton
2017-06-15Merge branch 'master' into blender2.8Campbell Barton
2017-06-15Math Lib: add angle_on_axis_v3v3_v3Campbell Barton
Use for calculating the angle between 2 directions on an axis. Also signed version and normalized plane projection, use when input is normalized.
2017-05-15Mesh Batch Cache: get rid of the ORCO VBO data, and reconstruct it in shader.Clément Foucault
With only one MADD instruction we recover the orco data and reduce both the storage and the fetching cost of an attrib layer.
2017-05-15Mesh Batch Cache: Define Compressed format for shading data.Clément Foucault
Deactivated by default. All shading attribs can be packed to take less VRAM at the cost of precision (not noticable in this case). UVs can be packed into I16 but that limits their positions into the [-1, +1] range. This could be a setting option in the future.
2017-01-20Fix compilation error with strict flags and gcc-6Sergey Sharybin
2017-01-11Merge remote-tracking branch 'origin/master' into blender2.8Dalai Felinto
2017-01-11Add mid_v3_v3_array function and remove redundant functionsLuca Rood
Other than implementing a `mid_v3_v3_array` function, this removes `cent_tri_v3` and `cent_quad_v3` in favor of `mid_v3_v3v3v3` and `mid_v3_v3v3v3v3` respectively. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D2459
2016-12-29Merge branch 'master' into blender2.8Bastien Montagne
Please **DO NOT** add changes from master when it's totally uneeded! Changes to BLI_ area most certainly shall *always* be done in master, there is absolutely no point in adding more diff between the two branches than needed, will only makes merging more cumbersome! Conflicts: CMakeLists.txt source/blender/blenlib/intern/math_vector_inline.c
2016-10-07Custom Manipulators Core BackendJulian Eisel
This commit lands the core backend of the Custom Manipulators project onto the blender2.8 branch. It is a generic backend for managinig interactive on-screen controls that can be integrated into any 2D or 3D edito. It's also already integrated into the window-manager and editor code where needed. NOTE: The changes here should not be visible for users at all. It's really just a back-end patch. Neither does this include any RNA or Python integration. Of course, there's still lots of work ahead for custom manipulators, but this is a big milestone. WIP code that actually uses this backend can be found in the 'custom-manipulators' branch (previously called 'wiggly-widgets'). The work here isn't completely my own, all the initial work was done by @Antony Riakiotakis (psy-fi) and - although it has changed a lot since them - it's still the same in essence. He definitely deserves a big credit! Some changes in this patch were also done by @Campbell Barton (campbellbarton). Thank you guys! Merge accepted by @brecht and @merwin. Patch: https://developer.blender.org/D2232 Code documentation: https://wiki.blender.org/index.php/Dev:2.8/Source/Custom_Manipulator Main task: https://developer.blender.org/T47343 More info: https://code.blender.org/2015/09/the-custom-manipulator-project-widget-project/
2016-09-24constify BLI_math_matrix inputsMike Erwin
GPU_matrix needs this very soon, and it's good practice in general. also sprinkled in some TODOs for later
2016-07-11BLI_math: move interp_*_cubic to its own functionCampbell Barton
2016-07-08BLI_math: add normalize functions which fit to a lengthCampbell Barton
Convenient since its common to normalize then scale, since these are inlined, use for regular normalize w/ 1.0 length.
2016-06-16BLI_math: Add double versions of functionsCampbell Barton
- mul_v3_m3v3_db - mul_m3_v3_db - negate_v3_db
2016-06-12BLI_math: cleanup arg namesCampbell Barton
project functions arg naming made it hard to tell which vector was projected onto.
2016-05-18Fix GCC/Linux build error after finite/isfinite changes.Brecht Van Lommel
2016-04-20Minor optimization for scanfillCampbell Barton
Replace angle with with cosine calculation.
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-10-11Fix warnings and remove casts by adding copy_vx_vx_uchar() functions.Brecht Van Lommel
2015-09-24Quiet warningCampbell Barton
2015-07-10BLI_math 'compare' cleanup & enhancements.Bastien Montagne
This commit: * Adds a 'compare_ff' function for absolute 'almost equal' comparison of floats. * Makes 'compare_vxvx' functions use that new 'compare_ff' one. * Adds a 'compare_ff_relative' function for secured ulp-based relative comparison of floats. * Adds matching 'compare_vxvx_relative' functions. * Adds some basic tests for compare_ff_relative. See https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/ Note that we could replace our python/mathutils' EXPP_FloatsAreEqual() by BLI's compare_ff_relative (using a very small absolute max_diff), but these do not have exact same behavior... Left a comment there for now, we can do it later if/when we are sure it won't break anything!
2015-05-21Math Lib: double versions of vector funcsCampbell Barton
- add_vn_vn_d - add_vn_vnvn_d - mul_vn_db
2015-05-05Math Lib: rename fill_*, to copy_*Campbell Barton
matching convention for fixed length api, eg: copy_v3_fl
2015-04-27Math Lib: add range_vn_uCampbell Barton
2015-04-08Math Lib: add project_plane_v3_v3v3Campbell Barton
Useful for projecting one vector onto another (as a plane). This is a rather common operation, doing inline isn't always obvious whats happening.
2015-03-17BLI math vec: add 'abs' functions to get absolute values of a vector.Bastien Montagne
Unseful when handling e.g. scale, sometimes.
2015-03-09Math Lib: add mid_v3_v3v3v3v3Campbell Barton
2015-02-23Fix interpolation functions ignoring number of components when doing early ↵Sergey Sharybin
output
2015-02-05BLI_math vectors: add minmax_v3v3_v3_array to get min and max values on each ↵Bastien Montagne
components of an array of 3D vectors.
2015-01-09BLI_math: add vector's dot_v3v3v3() func, for when you have three points ↵Bastien Montagne
instead of two vectors.
2014-07-21GSOC 2013 paintAntony Riakiotakis
Yep, at last it's here! There are a few minor issues remaining but development can go on in master after discussion at blender institute. For full list of features see: http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.72/Painting Thanks to Sergey and Campbell for the extensive review and to the countless artists that have given their input and reported issues during development.
2014-07-09Math Lib: add function to get signed angle about an axisCampbell Barton
2014-05-27Correct ortho_v2_v2 arg sizeCampbell Barton
2014-05-06Fix for uninitialized unit_use_radians variable with inset and bevelCampbell Barton
2014-04-16Math Lib: increase epsilon for ortho_basis_v3v3_v3Campbell Barton
passing in a unit length vector wouldn't always compute unit length vectors because the epsilon tested was too small.
2014-04-03Optimize BLI_convexhull_aabb_fit_hull_2d, avoid atan2, sin, cosCampbell Barton
add utility functions for using a 2d unit vector as a rotation matrix mul_v2_v2_cw & mul_v2_v2_ccw
2014-03-31Py API: Vector.slerp(). also added interp_v3_v3v3_slerp(_safe) functionsCampbell Barton
2014-03-31Fix for error in normalize_vn_vn(), add len_squared_vnCampbell Barton
2014-03-30Convenience macro for print_ funcs, saves passing id each timeCampbell Barton
2014-03-28Code cleanup: use len_v2v2_int for view zoom-scaleCampbell Barton
2014-03-16Fix T39210: Grid Fill is generating mesh that's inconsistent with selected ↵Bastien Montagne
edge loops Issue was in BLI's rotation_between_vecs_to_quat(), which did not handled correctly cases where both vectors are colinear. Patch by Campbell Barton and me. Issue originaly tracked down by Yan Shi, many thanks!
2014-02-10UI: panel tabs, use simple color interpolation that ignores alphaCampbell Barton
2013-12-05Code Cleanup: use strict flags for math lib, add inline declarationsCampbell Barton
2013-12-04Code Cleanup: correct fabsf/fabs/abs useCampbell Barton
2013-11-26Math library: minor additions sqrtf_signed and copy_v2_fl2Campbell Barton
2013-11-20Math Library: add dot_m4_v3_row_x/y/zCampbell Barton
2013-10-22add copy_v4_fl4, replace QUATSET macro.Campbell Barton
2013-10-19Move utility functions from mball to mathutilsSergey Sharybin
2013-09-01Move GCC attributes into a centraized definesSergey Sharybin
Instead of having ifdef __GNUC__ all over the headers to use special compiler's hints use a special file where all things like this are concentrated. Makes code easier to follow and allows to manage special attributes in more efficient way. Thanks Campbell for review!