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
2011-02-27doxygen: blender/blenlib tagged.Nathan Letwory
2011-02-23doxygen: prevent GPL license block from being parsed as doxygen comment.Nathan Letwory
2011-02-08fix [#25975] Quaternion/Vector.negated() isn't availableCampbell Barton
theres no need for value.negated(), better use -vec / -quat. however -quat didn't exist.
2011-02-06bugfix [#25824] Quats + Camera + Fly = MadnessCampbell Barton
ensure quat, delta rotation is set to a unit quaternion on older files.
2011-02-02- some parts of the code to remove rotation were not removing axis/angle ↵Campbell Barton
rotation (only functional change of this commit). - use BLI_math functions for removing rotations from objects and pose channels. - add unit_axis_angle() to avoid setting the Y axis inline anywhere rotation needs removing.
2011-01-15remove/comment unused defines.Campbell Barton
2010-12-12New math util funcitons:Sergey Sharybin
- equals_v2v2 - project_v2_v2v2 - isect_seg_seg_v2_point which would be necessery for my further multires interpolation commit M_Geometry_LineIntersect2D now uses isect_seg_seg_v2_point(). Behaviour of this function was changed a bit -- it haven't returned intersection point in several cases when two segments are making angle.
2010-11-25bugfix [#24907] bone roll z up broken and python script showing correct ↵Campbell Barton
method to roll bones from Josh Wedlake (joshwedlake), who provided a reference script used to apply changes in ED_rollBoneToVector(). - Obvious bug fixed where Z-Up didnt work right. - More align axis options to Recalculate Roll operator: X/Y/Z/View Axis & Negate. - Axis Only option, ignore the axis direction, use shortest rotation to align bones. ED_rollBoneToVector() changes: - would give bad roll when the axis wasn't normalized or perpendicular to the bone. some callers accounted for this but not all. - option to align to the axis but not the direction.
2010-11-12take delta's into account when applying the objects matrix (dloc, drot, dsize).Campbell Barton
Now object_apply_mat4() can be used as the reverse of object_to_mat4(). Noticeable result is fly mode and 'Apply Visual Transform' dont jump when deltas are used, also means setting matrix from python works as expected.
2010-10-15replace SIDE_OF_LINE macro with line_point_side_v2() inline function.Campbell Barton
made a number of files build without unused warnings.
2010-10-03added len_squared_v2v2, use instead of len_v3v3 for font handle tests, also ↵Campbell Barton
fixed some warnings.
2010-07-27bugfix [#21754] Smooth view + repeeted view orbit results in slow orbiting.Campbell Barton
- original quat was not assigned yet so never gave a good result. - quat angle comparison as vector is wrong.
2010-05-07Merge image related changes from the render branch. This includes the imageBrecht Van Lommel
tile cache code in imbuf, but it is not hooked up to the render engine. Imbuf module: some small refactoring and removing a lot of unused or old code (about 6.5k lines). * Added a ImFileType struct with callbacks to make adding an file format type, or making changes to the API easier. * Move imbuf init/exit code into IMB_init()/IMB_exit() functions. * Increased mipmap levels from 10 to 20, you run into this limit already with a 2k image. * Removed hamx, amiga, anim5 format support. * Removed colormap saving, only simple colormap code now for reading tga. * Removed gen_dynlibtiff.py, editing this is almost as much work as just editing the code directly. * Functions removed that were only used for sequencer plugin API: IMB_anim_nextpic, IMB_clever_double, IMB_antialias, IMB_gamwarp, IMB_scalefieldImBuf, IMB_scalefastfieldImBuf, IMB_onethird, IMB_halflace, IMB_dit0, IMB_dit2, IMB_cspace * Write metadata info into OpenEXR images. Can be viewed with the command line utility 'exrheader' For the image tile cache code, see this page: http://wiki.blender.org/index.php/Dev:2.5/Source/Imaging/ImageTileCache
2010-04-15Merge various small changes from render branch:Brecht Van Lommel
* Division by zero fix for TNT SVD code. * Sound fix, in case ffmpeg decode fails, don't use the samples. * Fix for incorrect bounds of transformed objects in new raytracing code. * Gave memory arena's a name used for allocations for easier memory usage debugging. * Dupligroup no_draw option was using layers but not restrict view/render setting. (not a bugfix exactly but would do display list context switching while drawing for no reason). * Fix objects instanced on hair particles not giving consistent results when the object is transformed. * New math functions: madd_v4_v4fl, len_squared_v3v3, interp_v4_v4v4v4, mul_v4_m4v4, SH and form factor functions, box_minmax_bounds_m4. * mul_m4_m4m4 and mul_m3_m3m3 now accept the same pointers for multiple arguments. * endjob callback for WM jobs system. * Geometry node uv/color layer now has search list/autocomplete. * Various small buildsystem tweaks, not strictly needed yet in trunk.
2010-03-22Math Lib: make some more vector functions use const arguments.Brecht Van Lommel
2010-03-22spaces -> tabs, (4 spaces == 1 tab, only for white space preceding text)Campbell Barton
2010-03-06reprojectCampbell Barton
- use render mesh settings rather then view settings. - fixed bug with brush size being overwritten and allowing non mesh objects to be projected onto. - made the paint loop less messy & minor cleanup
2010-02-12correct fsf addressCampbell Barton
2010-01-22Math Lib:Brecht Van Lommel
* inline some more functions, from math_base and math_vector * also made some changes to the way inline is done so it can work for more than one file * reflect_v3_v3v3 requires input vectors to be normalized now. * added rgb_to_grayscale * added zero_v4, copy_v4_v4, swap_v4_v4, is_one_v3 * added box_clip_bounds_m4 to clip a bounding box against a projection matrix
2010-01-12Math lib: added normalize_v3_v3 in addition to normalize_v3.Brecht Van Lommel
2010-01-07fix for painting bug added since 25391 (own fault)Campbell Barton
Making shell_angle_to_dist use radians was needed for solidify but somehow broke paint. Need to look into further but for now this fixes it.
2009-12-29* speedup for animating bones, in one scene with sintel and a dragon ↵Campbell Barton
animated its over 4x faster. * utility function BLI_findstring to avoid listbase lookup loops everywhere. eg: ListBase *lb= objects= &CTX_data_main(C)->object; Object *ob= BLI_findstring(lb, name, offsetof(ID, name) + 2); * made some more math functions use const's, (fix warnings I made in previous commits)
2009-12-27barycentric transform utility geometry function.Campbell Barton
From 2 triangles and 1 point, the relative position between the point and the first triangle is applied to the second triangle to find the target point. the barycentric weights are calculated in 2D space with a signed area so values outside the triangle bounds are supported. wrapped by python: pt_to = Geometry.BarycentricTransform(pt_from, t1a, t1b, t1c, t2a, t1b, t1c) NOTE: - moved some barycentric weight functions out of projection painting into the math lib. - ended up making some of the math functions use const args. TODO: - support exceptional cases. zero area tries and similar.
2009-11-28Math Lib: merging over some changes from the sculpt branch:Brecht Van Lommel
* swap v2/v3 * multiply-and-add (madd) v3 * inline v3 short/float conversion * mul_v3_m3v3
2009-11-10Math LibBrecht Van Lommel
* Fix remaining issues before conversion. * Inline various vector functions, currently enabled for all platforms. I expect this to work in GCC/MSVC at least, if other platforms don't support it, #ifdef's can be added.