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-11-04Configurable sensor size:Sergey Sharybin
- Added support of variable size sensor width and height. - Added presets for most common cameras, also new presets can be defined by user. - Added option to control which dimension (vertical or horizontal) of sensor size defines FOV. Old behavior of automatic FOV calculation is also kept. - Renderer, viewport, game engine and collada importer/exporter should deal fine with this changes. Other exporters would be updated soon.
2011-10-28replace VECCOPY and QUATCOPY with inline funcs.Campbell Barton
2011-10-23remove $Id: tags after discussion on the mailign list: ↵Campbell Barton
http://markmail.org/message/fp7ozcywxum3ar7n
2011-09-19Move function out of mathutils to: BLI_math_rotation --- ↵Campbell Barton
single_axis_angle_to_mat3(mat3, axis, angle), copied out from mathutils, axis arg is a char 'X/Y/Z' rather then a vector like axis_angle_to_mat3().
2011-08-27remove deprecated & unused mat3_to_vec_rot and mat4_to_vec_rot functions.Campbell Barton
2011-08-19warning cleanup for -Wdouble-promotionCampbell Barton
2011-04-02add angle wrapping functions: angle_wrap_rad(), angle_wrap_deg().Campbell Barton
use with mathutils.
2011-03-27math lib and UV project: floats were being implicitly promoted to doubles, ↵Campbell Barton
adjust to use floats.
2011-03-08remove unused RegionView3D retopo pointer and set quat printing to const args. Campbell Barton
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-18- clear some warningsCampbell Barton
- rename layout.operator_enums -> operator_enum (since we have operator_menu_enum, only called in 4 places)
2011-02-13fix for warnings from Sparse static source code checker, mostly BKE/BLI and ↵Campbell Barton
python functions. - use NULL rather then 0 where possible (makes code & function calls more readable IMHO). - set static variables and functions (exposed some unused vars/funcs). - use func(void) rather then func() for definitions.
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-13feature request from colin levy, camera lens stamp.Campbell Barton
2010-12-08use prints rather then asserts when normalized quats are expected.Campbell Barton
2010-12-07Added an assert() check for normalized quats which exposed a number of bugs ↵Campbell Barton
where normalized quat was incorrectly assumed. This would have made bug #25003 very simple to find. - Objects had their quats normalized when calculating their matrix, this is inconstant with pose bones and isn't useful for animation. Also it wasn't normalizing the delta rotation so these would give bad rotations. - Converting between rotation modes BKE_rotMode_change_values() assumed normal length quat. changing quat to euler rotation for eg could change the bone. - Clear rotation and transform were not normalizing the quat when 4d loc was disabled on quat rotation, corrected and also made it so the quat scale is restored after conversion so animations curves dont jump. There is 1 case in mat3_to_quat_is_ok() where quat_to_mat3 on an unnormalized quat is needed, for this I had to add an ugly static function quat_to_mat3_no_assert(), but overall its worthwhile IMHO to be able to find incorrect use of rotation conversion.
2010-11-16fix for fix, r33086.Campbell Barton
- incorrect range check broke ZYX euler rotations, use MIN/MAX constants so this doesn't happen again. - BGE Armature PyAPI also wasn't using correct min/max with rotation modes. - clamp on file read rather then when calling the rotation functions, so developers don't use invalid args without realizing it. - added assert() checks for debug builds so invalid axis constants don't slip through.
2010-11-15Bugfix, reported in IRCTon Roosendaal
The enum "rotmode" was read using an array, without checking for boundary cases, causing crashes on bad input. (Wahooney report 2, thanks!)
2010-11-02fix for compiling with the c90 standard, support for non-static variable ↵Campbell Barton
initializers is a c99 feature.
2010-10-30change mat4_to_eulO, mat3_to_eulO to calculate 2 rotations and return the ↵Campbell Barton
smallest one. mat4_to_eul & mat3_to_eul are already working this way. Without this we get problems with constraints, eg: rotation on the Y axis over 90d can be represented by setting the X and Z to -PI, Y would decrease to 0 (infact 180d).
2010-10-30Fix for [#24458] Problem with Axis Angle rotationJanne Karhu
* Added checks to handle zero axis vector.
2010-10-22Add some missing const'sNathan Letwory
2010-10-22Fix for snapping pose bones with axis-angle rotation.Campbell Barton
- armature_mat_pose_to_bone() was missing axis-angle check. - added loc_axisangle_size_to_mat4() for completeness. - use 'const' prefix where possible in math rotation functions.
2010-10-22eulO_to_quat wasn't functional for XZY, YXZ, ZYX rotation orders.Campbell Barton
it also modified the input rotation value which isn't expected for these functions.
2010-10-08quat_apply_track had incomplete commentsCampbell Barton
2010-10-08bugfix [#21483] Twisting when Dupliframing a Surface Circle (Nurbs) along a ↵Campbell Barton
Curve. use the curve's twist for follow path constraint and parent-path.
2010-10-08fix for error in track rotation, found while looking into adding an up axis ↵Campbell Barton
to this function.
2010-10-08move tracking functions into math_rotation.c (no functional changes)Campbell Barton
2010-09-24Fix for [#21875] Copy rotation only on y axiesJanne Karhu
2010-08-15use more BLI math functions.Campbell Barton
2010-08-02python mathutils changeCampbell Barton
quat * quat was returning the dot product (a float), rather then the cross product. Use BLI_math's mul_qt_qtqt() function.
2010-07-26bugfix [#22836] Alt+MMB view alignment don't respect all axes directionsCampbell Barton
also moved rotation_between_quats_to_quat into BLI_math from python mathutils.
2010-04-25minor mathutils updateCampbell Barton
- docstring for Euler.rotate - rotate_eul, use upper case in Py and C. - use less verbose repr method.
2010-04-17move camera lens/angle conversion to BLI_mathCampbell Barton
2010-03-22spaces -> tabs, (4 spaces == 1 tab, only for white space preceding text)Campbell Barton
2010-03-20remove unused includes for blenlib, left ifdef's for non linux os's alone.Campbell Barton
2010-02-22Fix dual quaternions flipping in case of stretched (not scaled) bones.Brecht Van Lommel
2010-02-20Mathutils API: Euler support for rotation order.Campbell Barton
Examples. euler = Euler(1, 2, 3) euler.order = 'ZXY' euler = matrix.to_euler('XZY') Still missing rna support. this still wont give the right order, defaulting to XYZ. eul = object.rotation_euler
2010-02-12correct fsf addressCampbell Barton
2010-01-28* Mathutils attributes documented - ↵Campbell Barton
http://www.blender.org/documentation/250PythonDoc/Mathutils.html * Vector.difference() needed normalized vectors * bpy.DEUBG -> bpy.app.debug
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-10Math LibBrecht Van Lommel
* Pre-conversion commit removing old arithb.c code, this will not compile, next commit fixes that.
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.
2009-11-10Math Lib ReorganizationBrecht Van Lommel
* New header and source files. * Still need a few tweaks before switching code to use them.