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
2010-12-14Bugfix #22040Ton Roosendaal
Old bug report: Image Editor, Painting: crash when texture was visible in Material or Texture preview. Was caused by paint code freeing mipmaps. Now replaced with a mipmap tag (to be done again), and a new mipmap function that doesn't re-allocate.
2010-12-01bugfix [#23406] DPX Images load darker then saved, UI broken.Campbell Barton
- a linear float buffer was being created and saved into a non-linear DPX/Cineon file. - removed the UI since the settings are not used at the moment. added a utility function IMB_float_profile_ensure(), which returns a float buffer in the requested profile, using the existing if needed or returning an allocated buffer if the profile is different to that of the ImBuf. - Useful this case where the save function has its own linear setting.
2010-11-19use 'const char *' for imbuf and file ops.Campbell Barton
2010-11-17use 'const char *' by default with RNA functions except when the value is ↵Campbell Barton
flagged as PROP_THICK_WRAP. Also use const char in many other parts of blenders code. Currently this gives warnings for setting operator id, label and description since these are an exception and allocated beforehand.
2010-11-16option to write images to a files on single frame renders, this isn't ↵Campbell Barton
accessed by the UI at the moment, but could eventually be used for saving test-renders. The main reason to have this is so renders can be scripted to write to a specific file without having to do annoying tricks like set a dummy start/end frame range, render an animation and work out the current frame image will be written to, then rename after rendering. Also made some 'char *' args into 'const char *'
2010-10-16most unused arg warnings corrected.Campbell Barton
- removed deprecated bitmap arg from IMB_allocImBuf (plugins will need updating). - mostly tagged UNUSED() since some of these functions look like they may need to have the arguments used later.
2010-09-28images bigger then 32k no longer crash blender, use unsigned int for image ↵Campbell Barton
size rather then short. also check if jpeg fails to allocate an imbuf.
2010-09-15bugfix [#23405] PNG Images bigger then 2gig wont load with blender.Campbell Barton
all image formats should be able to load files bigger then 2gig (when its supported)
2010-07-12sequencer float conversion was only using rgb -> float conversion ↵Campbell Barton
inconsistantly, some places used colorspace conversion, some not. Added IMB_float_from_rect_simple() for the sequencer to use.
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-03-14Remove SAT texture filter. It's not working, thought it was but that'sBrecht Van Lommel
because the mipmap was not being refreshed. Also this will be problematic to support when I add tile/mipmap cache, so would not rather not try to. Can be added back afterwards if someone wants to make it work.
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-07-212.5: Texture FilteringBrecht Van Lommel
Patch by Alfredo de Greef with high quality image texture filters. This adds 3 new filters: * SAT: Summed Area Tables. This is like mipmaps, but using somewhat more memory avoids some artifacts. * EWA: Ellipitical Weighted Average, anisotropic filter. * FELINE: Fast elliptical lines for anisotropic texture mapping. The one change I made to this was to try to fix an alpha/premul problem, hopefully I didn't break anything, it looks compatible with the existing filter now for me.
2009-06-092.50:Brecht Van Lommel
svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r19820:HEAD Notes: * Game and sequencer RNA, and sequencer header are now out of date a bit after changes in trunk. * I didn't know how to port these bugfixes, most likely they are not needed anymore. * Fix "duplicate strip" always increase the user count for ipo. * IPO pinning on sequencer strips was lost during Undo.
2008-12-142.50: svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender ↵Brecht Van Lommel
-r17434:HEAD
2008-11-19Split up the following imbuf functions in 2...Campbell Barton
void bicubic_interpolation(struct ImBuf *in, struct ImBuf *out, float u, float v, int xout, int yout); void neareast_interpolation(struct ImBuf *in, struct ImBuf *out, float u, float v, int xout, int yout); void bilinear_interpolation(struct ImBuf *in, struct ImBuf *out, float u, float v, int xout, int yout); Added... void bicubic_interpolation_color(struct ImBuf *in, unsigned char *col, float *col_float, float u, float v); void neareast_interpolation_color(struct ImBuf *in, unsigned char *col, float *col_float, float u, float v); void bilinear_interpolation_color(struct ImBuf *in, unsigned char *col, float *col_float, float u, float v); This is needed so for projection painting but generally useful if you want to get the interpolated color of a pixel in an image without having a destination imbuf. While editing these I noticed the functons are a bit dodgy, they assume the input ImBuf has matching float/chr buffer to the output.
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-03-09* Bakeing fix for apricot, stop pixels being extended for parts of the image ↵Campbell Barton
that are not being baked (useful for multiple objects) * Added support for baking alpha, as well as extending alpha margins.
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-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-10-12== IMBuf fix ==Peter Schlaile
Fixed Campbell's patch for IMB_flipx: - header file declaration is corrected - reordered loops to make things faster (less cache misses and no tests for float-buffers on a _per pixel basis_!) (Campbell: it'd be nice, if you could check with me before patching the sequencer. Or at least pay attention to compiler warnings :) )
2007-10-11Peach requestCampbell Barton
new option for the image sequencer's image strips, flip x/y, (useful when making animatics to test the direction characters walk across the screen) added IMB_flipy was alredy there, needed to add IMB_flipx.
2007-09-03more warning fixes.Stephen Swaney
sprinkle a few 'const char*'s around to remove warnings about discarding qualifiers in imbuf code.
2007-09-02== imagebrowser ==Andrea Weikert
Initial commit of imagebrowser in trunk. BIG COMMIT! Main changes: * completely reworked imasel space * creation and storage of the preview images for materials, textures, world and lamp * thumbnails of images and movie files when browsing in the file system * loading previews from external .blend when linking or appending * thumbnail caching according to the Thumbnail Managing Standard: http://jens.triq.net/thumbnail-spec/ * for now just kept imasel access mostly as old imgbrowser (CTRL+F4, CTRL+F1) a bit hidden still. * filtering of file types (images, movies, .blend, py,...) * preliminary managing of bookmarks ('B' button to add, XKEY while bookmark active to delete) More detailed info which will be updated here: http://wiki.blender.org/index.php/User:Elubie/PreviewImageBrowser Places that need special review (and probably fixes): * BLO_blendhandle_get_previews in readblenentry * readfile.c: do_version and refactorings of do_library_append * UI integration TODO and known issues still: * Accented characters do not display correctly with international fonts * Crash was reported when browsing in directory with movie files * Bookmark management still needs some UI work (second scrollbar?), feedback here is welcome! Credits: Samir Bharadwaj (samirbharadwaj@yahoo.com) for the icon images. Many thanks to everyone who gave feedback and helped so far!
2007-07-10This is patch [#6929] Interpolation MethodsKent Mein
http://projects.blender.org/tracker/index.php?func=detail&aid=6929&group_id=9&atid=127 Its a subset of patch [#6766] Transform Sequencer effect It adds 3 image functions for different types of interpolation. For people that like pictures: http://wiki.blender.org/index.php/User:Damiles#Interpolations_Algorithms Patch provided by David Millán Escrivá (damiles) Kent
2007-04-04moved source and text to american spellingCampbell Barton
* colour -> color * centre -> center * normalise -> normalize * modelling -> modeling
2006-12-20The Big Image refactor!Ton Roosendaal
Please read: http://www.blender3d.org/cms/Imaging.834.0.html Or in short: - adding MultiLayer Image support - recoded entire Image API - better integration of movie/sequence Images Was a whole load of work... went down for a week to do this. So, will need a lot of testing! Will be in irc all evening.
2006-11-19Long waited feature: Render BakingTon Roosendaal
Here's the full release log with example file. http://www.blender3d.org/cms/Render_Baking.827.0.html For people who don't read docs; just press ALT+CTRL+B on a Mesh with texture faces! Todos: - maybe some filter options extra? - Make normal maps in Tangent space
2006-11-07Added two new blend modes to image painting brushes, erase alpha andBrecht Van Lommel
add alpha, for painting transparency in images. When using the eraser tool of a tablet pen, the erase alpha blend mode is activated.
2006-07-31ImagePaint Refactoring:Brecht Van Lommel
- ImagePaint now uses ImBuf directly, and the rect blending functions were moved into the imbuf module. - The brush spacing, timing and sampling was abstracted into brush.c, for later reuse in other paint modes. Float ImagePaint support. Textured Brushes: - Only the first texture channel is used now. - Options for size and offset should be added, but need to find some space in the panel, or add a second one ..
2006-06-28=== warnings cleanup ===Andrea Weikert
added missing includes for undefined symbols in windows release build warnings: creator.c(490) : 'libtiff_init' undefined; transform_manipulator.c(237) : 'EM_editselection_center' undefined; src\transform_manipulator.c(241) : 'EM_editselection_normal' undefined; transform_manipulator.c(242) : 'EM_editselection_plane' undefined; \python\api2_2x\Object.c(3658) : 'get_local_bounds' undefined;
2006-03-07this patch features several cleanups and bugfixes for the sequencer:Peter Schlaile
- blur works again (this was a serious bug in gamwarp...) - seperates all sequence effects into a seperate file with a clean interface - thereby fixing some obscure segfaults - seperates the scope views into a seperate file - adds float support to all effects and scope views - removes a bad level call to open_plugin_seq - FFMPEG seeking improved a lot. - FFMPEG compiles with debian sarge version cleanly - Makes hdaudio seek and resample code really work
2006-02-11Added ability to render Zbuffer to an image.Kent Mein
Just use SHIFT-F3 and save an image. Basically all this does is copy the zbuffer to a new Image buffer and pass that to the save image function. Sample output: http://www.cs.umn.edu/~mein/blender/kungfu_zbuf255.jpg Also thanks to Jesterking for helping me debug dumbness... ;) and the nice screenshot. Kent
2006-02-10Interesting commit for artists using huge textures;Ton Roosendaal
The code that generated mipmaps took a real long time to do it... on a 5k x 5k image it took here (no optim, debug compile) 32.5 sec. Recoded the very old filtering routine, which already brought it down to 2.8 seconds. Then tested if we even need this filtering... in many cases the images are painted or photographs, which is filtered OK already. Without the filter, the mipmap timing went down to 0.39 second. :) http://www.blender.org/bf/filters/index1.html Here's an example of two 'mips' generated with or without gauss filter. Note that aliasing in an image remains there... which can be a wanted effect anyway. So; added the gauss filter as option in making mipmaps. Also had to reshuffle the buttons there in a more logical manner. There's also disabled code in the do_versions to set 'gauss' on in older files. Will be enabled during release time.
2006-02-05* Add memcache limitor-support to imbufsPeter Schlaile
* Add ffmpeg-read support in anim.c and util.c * Makes ImBufs refcountable. You can now increase an internal refcounter in ImBufs (using IMB_refImBuf) which is decreased by freeImBuf. This makes it possible to simply pass ImBuf pointers around in the sequencer saving a few memcopies.
2006-01-24Orange: made Image window react nicer to compositor output and own Curves;Ton Roosendaal
- Image curves are only applied now when curves panel is in use. Closing the panel will disable curves, reopen Panel enable curves. You can minimize the Curves panel to keep it active. That latter then works as visualization curves are being applied. - Compositor output now also uses Image window curves, if active.
2006-01-12Orange:Ton Roosendaal
- cleanup of color curves code; goes at least twice faster now! (includes black/white point stuff) - When using 'Curves' in image window on a byte rect, it creates a (temp) float rect to operate on. So curves work for regular pictures too now.
2006-01-12Orange;Ton Roosendaal
Until now, the zbuffer was written straight from the internal zbuffer, which has values that are inverse-proportional (like 1.0/z) which makes it very hard to use it for postprocess, like zblur or other composit effects that require Z. Based on info from ILM, the values stored for Z in exr files is the actual distance from a camera. I think that's about time to migrate to that convention! By default now, after render, the z values are converted to floats. This saves in exr files now, but not in the Iris Z files. That latter was a blender-only anyway, so might be not a real hassle to drop. :) You can see the difference in the image window, but notice the range now is linear mapped from camera clipstart to clipend. Note; I just discover that ortho Z values need a different correction...
2006-01-09Orange: more exr & imbuf cleanupTon Roosendaal
- Reading exr images now goes OK. I've unified the code for reading 'half' and 'float' (was nicely possible!). And removed useless copying of data around. - Fixed bug in allocating new rects, like for making mipmaps. flag issues. - filter code accidentally incremented wrong pointer (crash on mipmap too)
2006-01-09Orange branch: OpenEXR finally in Blender!Ton Roosendaal
Credits go to Gernot Ziegler, who originally coded EXR support, and to Austin Benesh for bringing it further. Kent Mein provided a lot of code for integrating float buffers in Blender imbuf and ImBuf API cleanup, and provided Make and Scons and static linking. At this moment; the EXR libraries are a *dependency*, so you cannot get the Orange branch compiled without having OpenEXR installed. Get the (precompiled or sources) stuff from www.openexr.com. Current default is that the headers and lib resides in /user/local/ Several changes/additions/fixes were added: - EXR code only supported 'half' format (16 bits per channel). I've added float writing, but for reading it I need tomorrow. :) - Quite some clumsy copying of data happened in EXR code. - cleaned up the api calls already a bit, preparing for more advanced support - Zbuffers were saved 16 bits, now 32 bits - automatic adding of .exr extensions went wrong Imbuf: - added proper imbuf->flags and imbuf->mall support for float buffers, it was created for *each* imbuf. :) - found bugs for float buffers in scaling and flipping. Code there will need more checks still - imbuf also needs to be verified to behave properly when no 32 bits rect exists (for saving for example) TODO: - support internal float images for textures, backbuf, AO probes, and display in Image window Hope this commit won't screwup syncing with bf-blender... :/
2005-11-23Forgot to note in previous commit: also cleaned up warnings in code,Ton Roosendaal
like using exported functions without adding it in the .h.
2005-11-23New stuff & fixes in Blender OSA filtering.Ton Roosendaal
While investigating alternative filters (Mitchell), I found two small errors in the Gauss code, it clipped wrong and multiplied wrong, causing settings other than filter size 1.0 to not work properly. Took the last-minute liberty to add more filter types in Blender too. Also wrote an extensive log about how sampling & filtering in Blender works. http://www.blender3d.org/cms/Samples_and_Filtering.723.0.html
2005-11-20Patch provided by Alfredo de GreefTon Roosendaal
This adds Radiance HDR image file support. So now at least we can save the 'fbuf' (4x32 bits float colors) in Blender. It doesn't change anything for internal support in imbuf for floa colors, so when reading .hdr files it still converts it to 32 bits RGBA. As an extra I've added that saving images with F3 now also adds the optional extension, when the F10 "Extensions" option is set. One important note; I don't know the proper license for the code, it was provided without... will await feedback from Alfredo about it. For now I've added the standard Blender GPL header.
2005-03-11Gernot Ziegler's patch to add OpenEXR support to blender.Kent Mein
To enable it you will need to download OpenEXR and install it. For the Makefiles you will need to set WITH_OPENEXR=true and set NAN_OPENEXR to point to where OpenEXR is installed. For scons you'll need to remove config.opts to get the new options so you can enable OpenEXR, I was not able to get blender to link with scons so the scons stuff may need to be tweaked a little but I think it should work. For other platform managers The OpenEXR stuff is similar to QUICKTIME you need to define WITH_OPENEXR and setup the library stuff and as you'll notice in this commit there are two extra files. Kent
2004-07-27Removed 'static' declaration from addzbufImBuf(). This is an exportedTon Roosendaal
function, static is for local functions... Reason was it gave loads of warnings in compiling.
2004-07-16Bunch of small fixes for warnings and whatnot....Kent Mein
intern/SoundSystem/intern/SND_AudioDevice.cpp Initalized a var that could fall through with no value. source/blender/readblenfile/intern/BLO_readblenfile.c source/blender/src/space.c intern/SoundSystem/intern/SND_Scene.cpp source/gameengine/Converter/BL_MeshDeformer.cpp removed unused var's intern/SoundSystem/openal/pthread_cancel.cpp fixed a nested /* source/blender/imbuf/IMB_imbuf.h added static to the type returned for addzbufImBuf source/blender/imbuf/intern/IMB_bmp.h had a wrong prototype source/blender/src/view.c added newline at end of file. source/blender/src/sequence.c removed unused var added #include <stdlib.h> to avoid: warning: implicit declaration of function `abs' initalized a var that could have been used without being set. Kent
2004-04-06Going through some really old bf-committers email and Casey CornKent Mein
brought up the following "fixes": removed these prototypes since they were not used anymore: void cspace(struct ImBuf *ibuf, float mat[][4]); void freezbufImBuf(struct ImBuf * ibuf); void IMB_init_movie_pointers(void); Renamed IMB_addzbufImBuf prototype so it maches the actual function: addzbufImBuf Kent
2003-09-18removed native quicktime init/exit calls from main blender code.Rob Haarsma
2003-09-10moved Quicktime init function from creator.cRob Haarsma