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
2014-08-15Cleanup: comment & var nameCampbell Barton
2014-07-30Cleanup: general cleanup in BLI_math code (mostly, use 'const' where ↵Bastien Montagne
possible, true/false for booleans, format for float litterals).
2014-07-21Fix errors in hsv calculation from recent optimization patch.Antony Riakiotakis
Code was different from original here, result was apparent in color picker wedge position.
2014-07-21Optimisation to rgb <-> hsv/l conversionAntony Riakiotakis
Basically avoid redundant computations. Gives ~1-4% speedup in the compositor depending on the use case. For more info see: http://lolengine.net/blog/2013/01/13/fast-rgb-to-hsv Reviewers: psy-fi, sergey Subscribers: campbellbarton Differential Revision: https://developer.blender.org/D596
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-03-18Fix T39228 Gamma/lift/gain are burned out in the circular color pickersAntony Riakiotakis
and value/lightness slider stops midway. Issue here is manyfold: Color wheel does not support properties with different soft min/max values than 1.0 (which after experimenting a little I left as is), and also color management is completely destroying the mapping between the value slider and the RNA property value range. To solve this I have disabled color management by setting the property to gamma corrected (only in RNA, Sequence editor coders please check!), otherwise it will just become a big mess of tracking where color comes from and what kind of color transforms it needs in different color pickers (if property has non normalized range etc). HSL is not really meant to represent colors outside a normalized space so I have disabled setting lightness above 1.0 in this model. This will work, however it is hacking a color picker to do something other than what it is supposed to do: pick a color from the screen accurately. Which means normalized values always. The non normalized colors picked for lift/gain/gamma through the pickers do not correspond to any accurate colors; they are rather a user friendly way to 'sort of' choose a color and a gamma with an indication of maximum value. I think that lift/gamma/gain nodes need a dedicated widget for this (besides it is quite clear that some options are written for that use case) -or- a separate gamma multiplier for the picked color (which should itself be in a normalized space)
2014-03-15Code cleanup: use r_ prefix for return argsCampbell Barton
2014-03-12HSL color wheel implementation.Antony Riakiotakis
This is a standard Hue - Saturation - Lightness model (see for instance entry on wikipedia here: https://en.wikipedia.org/wiki/HSL_and_HSV) Note though the difference between HSV and HSL saturation, which are not the same. The advantage of having this color selection scheme is that artists can select shades and tints of a color easily by using the lightness slider. Also colors are arranged on (approximated) perceived lightness on the color wheel. Beware, Old files opened with this preference saved will crash! Reviewers: sergey, brecht, campbellbarton Differential Revision: https://developer.blender.org/D385
2014-02-12NDOF: fix for negative colors and flickering hue when picking with HSVCUBECampbell Barton
2013-12-08Math lib: optimize hsv/rgb conversionCampbell Barton
2013-12-07Compiler warnings: quiet warnings for gcc4.7xCampbell Barton
patch from Sergey
2013-12-06Appease grumpy ole gcc 4.7 of MinGW64 (possibly gcc 4.6 of MinGW32 too?)Antony Riakiotakis
that cannot convert float to char without false warnings that are turned into errors with strict flags. I expect that any real conversion warnings can be caught on linux.
2013-12-05Code Cleanup: use strict flags for math lib, add inline declarationsCampbell Barton
2013-07-21code cleanup: add break statements in switch ()'s, (even at the last case).Campbell Barton
2013-05-30UI: support 3 digit hex colors like HTML, e.g. #123 becomes #112233.Brecht Van Lommel
Patch #35359 by Forest Ka.
2013-04-28Fix #34233: bad alpha blending for 3D texture painting. Same changes as theBrecht Van Lommel
previous fix for 2D image painting were done, and also: * For brushes that do masking (keeping the max contribution to a pixel limited), the alpha from textures is now part of the mask. In many cases the logic worked out the same and where it didn't it used to cause artifacts. * Color interpolation for smear and soften tools now happens in premultipied space, to avoid bleeding of RGB colors from zero alpha areas. * Fix a few cases where byte <=> float conversion was not doing the proper straight <=> premul conversion. * Replace some float division by constants with multiplications, is faster. Note: float texture painting seems to have some issues updating the OpenGL texture, but issue was already there before this commit.
2013-03-26style cleanup:Campbell Barton
also rename mesh_getVertexCos() --> BKE_mesh_vertexCos_get() to match curve function.
2012-12-21replace MIN/MAX 3,4 with inline functionsCampbell Barton
2012-09-15quiet -Wmissing-prototypes warnings, and enable this warning by default for ↵Campbell Barton
C with gcc. helps for finding unused functions and making functions static, also did some minor code cleanup.
2012-06-13style cleanupCampbell Barton
2012-06-13move one line color conversion functions to be inline.Campbell Barton
2012-06-13add rgb_to_luma_y(), was being done inline in many places.Campbell Barton
2012-06-05style cleanupCampbell Barton
2012-05-31math lib changes from tomatoCampbell Barton
2012-05-26add vector versions of hsv_to_rgb, rgb_to_hsv & rgb_to_hsv_compatCampbell Barton
2012-03-25style cleanup: issues missed last commitCampbell Barton
2012-03-25style cleanup: conform to style guide - mostly operator whitespace changesCampbell Barton
2012-03-24style cleanup: follow style guide for formatting of if/for/while loops, and ↵Campbell Barton
else if's
2012-03-04style cleanup / comment formatting for bli/bke/bmeshCampbell Barton
2012-02-04Code Cleanup: avoid double promotion.Campbell Barton
2012-01-19Fix issue in recent color commits, was still doing a multiplication by 255 tooBrecht Van Lommel
many, also don't check uchar range after casting to int, this can still cause overflow with large float values.
2012-01-19use color conversions functions in more places.Campbell Barton
also add rgba_float_to_uchar, rgba_uchar_to_float
2012-01-19rename rgb_float_to_byte, rgb_byte_to_float to rgb_float_to_uchar, ↵Campbell Barton
rgb_uchar_to_float and swap args (math functions mostly have dest arg first like strcpy).
2012-01-14add utility function to BLI_math_color - rgb_to_luma, rgb_to_luma_byte, also ↵Campbell Barton
use rgb_to_grayscale in more places.
2012-01-14ensure functions are not used within FTOCHAR macro since they run 2-3 times.Campbell Barton
brushes were doing curve lookups within this macro for example.
2012-01-08Color:Brecht Van Lommel
* Accelerated sRGB <=> linear conversion using lookup table, this can speed up loading of images in the compositor and simple renders quite a bit. * Dithering now uses the Floyd-Steinberg algorithm. Previously it would simply randomize each pixel slightly, adding noise, now that should be reduced. Patch #29309 by David M.
2011-12-28Code refactoring: add unified image buffer functions for doing float => byte,Brecht Van Lommel
byte => float, float => float, byte => byte conversions with profile, dither and predivide. Previously code for this was spread out too much. There should be no functional changes, this is so the predivide/table/dither patches can work correctly.
2011-10-23remove $Id: tags after discussion on the mailign list: ↵Campbell Barton
http://markmail.org/message/fp7ozcywxum3ar7n
2011-06-24fix [#27746] Black and White Render doesn't work and/or Saves as a Blank screenCampbell Barton
convert to grayscale when saving renders rather then only writing the red channel.
2011-05-27own recent commits caused crash with the grease pencil in camera view, ↵Campbell Barton
always pass rv3d argument now. also found a bug where hex_to_rgb could use un-initialized memory.
2011-04-21whitespace only, no functional change mixed tabs/spaces --> tabs.v2.57aCampbell Barton
2011-03-27math lib and UV project: floats were being implicitly promoted to doubles, ↵Campbell Barton
adjust to use floats.
2011-02-27doxygen: blender/blenlib tagged.Nathan Letwory
2011-02-23doxygen: prevent GPL license block from being parsed as doxygen comment.Nathan Letwory
2011-01-08remove unused code & variables.Campbell Barton
2010-12-31Silence more compiler warnings.Guillermo S. Romero
2010-12-20fix [#25283] Edge length display difficult to readCampbell Barton
- made theme colors for mesh edge len & face angle/area display. - use %g rather then %f for float display, trims unneeded zeros. - store cached 2d and 3d text color as bytes rather then floats, compare when drawing to avoid setting the context. - use unsigned char for more color functions, avoids casting to glColorubv().
2010-12-03- added GCC warning -Wstrict-prototypesCampbell Barton
- fixed bug in paste material, exposed by stricter warnings. - removed/renamed various shadowed vars. - removed BGE lamp.colour, only allow lamp.color attribute.
2010-10-14hex color input wasnt clamped.Campbell Barton
2010-10-13bugfix [#23355] Square Color picker moving by itself and locking upCampbell Barton