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
2013-05-23Fix #35469: image editor smear and soften paint tools not working correct forBrecht Van Lommel
float images, was not taking premul/straight convention into account properly.
2013-05-12Image paint: 2D painting now supports texture masks and does masking moreBrecht Van Lommel
consistent with projection painting. Also did some refactoring of this code, moving the brush image creation code out of brush.c and making it consistent with image updating code.
2013-05-01style cleanupCampbell Barton
2013-04-30More image painting fixes:Brecht Van Lommel
* 2D image painting support for masking to limit the max contribution of a stroke to a pixel, to get it working compatible with projection painting. Not strictly a bugfix, but the inconsistency here was annoying. * Fix python errors in Texture Mask panel in image editor, was missing overlay options. * Clamp paint mask to 0..1 in case some texture exceeds it, this could give black pixels due to integer overflow.
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-04-27Fix part of #34233: bad alpha blending for 2D image painting. This is a veryBrecht Van Lommel
old issue, the formulas here were never quite right, should all work ok now with byte and float images. Some differences: * Colors with zero alpha from the background will never have an influence, so you don't get alpha fringes when painting over such areas. This does give hard edges when looking at the RGB channels alone, but there's no way to avoid that and fringes at the same time, same behavior as other painting apps. * Add/Subtract/Multiply/Lighten/Darken now leave the alpha channel unchanged and work only the RGB channels, again same behavior as many other apps. * Erase/Add alpha now compensates for premultiplied float images to keep the straight RGB colors the same. Next: fix projection painting.
2013-04-26Fix image painting not adding alpha when 2D painting in the image editor. ThisBrecht Van Lommel
code got lost after the optimizations in revision 55033.
2013-04-25style cleanupCampbell Barton
2013-04-25Fix part of #34640: colors darkening when using the vertex paint blur tool.Brecht Van Lommel
The problem was that vertex colors only have 8 bits of precision, and integer division always rounds down, so after some color blending iterations everything gets darker. Instead use integer division that behaves like round() instead of floor() for blending operations.
2013-03-31style cleanupCampbell Barton
2013-03-19Fix: Clamp alpha to 1.0 or adding alpha in paint creates "isolines" dueAntony Riakiotakis
to integer overflow. One of the beautiful bugs that is sad to see fixed. Also remove unused timer variable
2013-03-17Fix "can't paint" bug no.1, painting with black on image editor did notAntony Riakiotakis
paint. Was own regression when optimizing colour operations. I will not use an alpha bit mask since it may run into portability issues with byte order.
2013-03-17code cleanup: incorrect sized array args, remove some redundant code.Campbell Barton
2013-03-05code cleanup: also change BKE_blender.h BLENDER_VERSION_CHAR to 'a' so as ↵Campbell Barton
not to confuse things.
2013-03-05Image buffer rectangle operation optimization: Remove a switch statementAntony Riakiotakis
outside of loop and remove a function call. Should give a little speedup when painting inside the image editor.
2013-02-12Fix for own multilayer EXR fix, should not have caused any issues might as wellBrecht Van Lommel
make sure it works if this function gets called from other places.
2013-02-12Fix #34213: crash loading openexr multilayer with use alpha disabled.Brecht Van Lommel
2012-11-09style cleanup: indentationCampbell Barton
2012-10-21style cleanup: trailing tabs & expand some non prefix tabs into spaces.Campbell Barton
2012-09-15Color Management, Stage 2: Switch color pipeline to use OpenColorIOSergey Sharybin
Replace old color pipeline which was supporting linear/sRGB color spaces only with OpenColorIO-based pipeline. This introduces two configurable color spaces: - Input color space for images and movie clips. This space is used to convert images/movies from color space in which file is saved to Blender's linear space (for float images, byte images are not internally converted, only input space is stored for such images and used later). This setting could be found in image/clip data block settings. - Display color space which defines space in which particular display is working. This settings could be found in scene's Color Management panel. When render result is being displayed on the screen, apart from converting image to display space, some additional conversions could happen. This conversions are: - View, which defines tone curve applying before display transformation. These are different ways to view the image on the same display device. For example it could be used to emulate film view on sRGB display. - Exposure affects on image exposure before tone map is applied. - Gamma is post-display gamma correction, could be used to match particular display gamma. - RGB curves are user-defined curves which are applying before display transformation, could be used for different purposes. All this settings by default are only applying on render result and does not affect on other images. If some particular image needs to be affected by this transformation, "View as Render" setting of image data block should be set to truth. Movie clips are always affected by all display transformations. This commit also introduces configurable color space in which sequencer is working. This setting could be found in scene's Color Management panel and it should be used if such stuff as grading needs to be done in color space different from sRGB (i.e. when Film view on sRGB display is use, using VD16 space as sequencer's internal space would make grading working in space which is close to the space using for display). Some technical notes: - Image buffer's float buffer is now always in linear space, even if it was created from 16bit byte images. - Space of byte buffer is stored in image buffer's rect_colorspace property. - Profile of image buffer was removed since it's not longer meaningful. - OpenGL and GLSL is supposed to always work in sRGB space. It is possible to support other spaces, but it's quite large project which isn't so much important. - Legacy Color Management option disabled is emulated by using None display. It could have some regressions, but there's no clear way to avoid them. - If OpenColorIO is disabled on build time, it should make blender behaving in the same way as previous release with color management enabled. More details could be found at this page (more details would be added soon): http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.64/Color_Management -- Thanks to Xavier Thomas, Lukas Toene for initial work on OpenColorIO integration and to Brecht van Lommel for some further development and code/ usecase review!
2012-09-10code cleanup: use more specific argsCampbell Barton
2012-08-13fix [#32126] STAMP: Setting a background color causes color flickerCampbell Barton
when rendering the sequencer can output float or char buffers which stamp wasn't accounting for.
2012-08-13style cleanupCampbell Barton
2012-05-26code cleanup: use array size and const for vector argsCampbell Barton
2012-05-08style cleanup: misc editor changes.Campbell Barton
2012-04-29style cleanup: whitespace / commasCampbell Barton
2012-03-24style cleanup: follow style guide for formatting of if/for/while loops, and ↵Campbell Barton
else if's
2012-03-18spelling cleanupCampbell Barton
2012-03-09style cleanup: comment blocksCampbell Barton
2011-10-23remove $Id: tags after discussion on the mailign list: ↵Campbell Barton
http://markmail.org/message/fp7ozcywxum3ar7n
2011-08-31fix [#28430] Image with Stampinfo does not get saved correctly with alphaCampbell Barton
2011-06-15fix [#27662] Storing png/tga images ignore Alpha settingsCampbell Barton
- don't clear alpha when baking RGB images - when baking results in partial alpha. set the depth to 32.
2011-03-27imbuf, mathutils & readfile: floats were being implicitly promoted to ↵Campbell Barton
doubles, adjust to use floats.
2011-02-27doxygen: blender/imbuf tagged.Nathan Letwory
2011-02-23doxygen: prevent GPL license block from being parsed as doxygen comment.Nathan Letwory
2011-01-07remove references to BKE_utildefines where its not needed.Campbell Barton
- move GS() define into DNA_ID.h - add BLI_utildefines as an automatic include with makesrna generated files.
2011-01-07split BKE_utildefines.h, now it only has blender specific defines like GS() ↵Campbell Barton
MAKE_ID, FILE_MAXDIR, moved the generic defines to BLI_utildefines.h. no functional changes.
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-02-15Fix #21078: image paint undo didn't work correct with wrap option, movedBrecht Van Lommel
wrapping code to paint_image.c so it can be used for the undo push.
2010-02-12correct fsf addressCampbell Barton
2009-12-08ImBuf: Fix bug in clippingBenoit Bolsee
2008-09-20Patch #8461, by Rob HausauerTon Roosendaal
This unifies all usage of FTOCHAR, putting it in utildefines.h Submitter did several interesting tests for speed, check it here: http://projects.blender.org/tracker/?func=detail&atid=127&aid=8461&group_id=9
2008-04-17Patch from GSR that a) fixes a whole bunch of GPL/BL licenseChris Want
blocks that were previously missed; and b) greatly increase my ohloh stats!
2008-02-22Fix for [#8303] stamp gives wrong file name when using unsaved filesCampbell Barton
Also made alpha color work with OpenGL render caused by buf_rectfill_area not working on char rect's.
2007-10-29Routine purge of compiler warnings. Yet again, they were mostly ↵Joshua Leung
uninitialised vars.
2007-10-29render stamp drawing is now done everywhere - (not just when saving Campbell Barton
images) separated stamp metadata and stamp draw functions.
2007-10-24Patch by GSR #7628, I also added alpha for text background.Campbell Barton
The list of changes (some are fixes): - Properly horizontally centered tags in all fields (bug?). - File area does not have trailing space and has leading "File " at start instead (probably a bug). - Small separation between to time related fields, space saving. - Removed colons, for consistency and space saving again. - Frame field is zero aligned for higher visual stability. - Marker name shows a rarer name, "<none>" (using <> is typical for cases in which there is nothing: <none>, <empty>, <blank>, etc). - Top area for misc info that can be really long (file, note and render date). - Bottom area for more constantly changing but short ones (marker, SMPTE, frame, camera and scene). - Only render date moves a line (when note field is not used), and frame one moves if no SMPTE (still in same line, so no big jump), for extra visual stability (marker is fixed, assuming most people would show frame and or SMPTE). - ISO 8601 date format for render date, localization independant. Comparision images: http://www.infernal-iceberg.com/blender/stamp-original.png http://www.infernal-iceberg.com/blender/stamp-cleanup.png
2007-10-20Image Stamping patch by Diego (and peach request)- stamps image info into ↵Campbell Barton
metadata and optionally draws into the frame. This patch includes some changes I made... * use blenders bitmap fonts (rather then own fonts) * select font size * user interface layout changes * Marker as another image stamp option Also added some new API calls BMF_GetFontHeight(font); BMF_DrawStringBuf(...); - so we can draw text into an imbuf's image buffer. get_frame_marker(frame) - get the last marker from the frame. IMB_rectfill_area(...) - fill in an image buffer with a rectangle area of color. TODO - draw stamp info in 3d view, at the moment it just displays in the animation.
2007-02-15Bugfix (via email)Ton Roosendaal
Bake crashed when baking to float images. Caused by an Imbuf call not handling float imbufs well.
2007-01-13Fix for bug #5694:Brecht Van Lommel
Another issue with division by zero in texture paint, this time in torus wrapping.