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-03-26replace view3d_get_view_aligned_coordinate with ED_view3d_win_to_3d_int()Campbell Barton
2013-03-21code cleanup: use bool where values are true/false, for view3d and related ↵Campbell Barton
functions.
2013-03-20code cleanup: use booleans for mesh and selection code.Campbell Barton
2013-03-18Fix: Setting cursor to semitransparent objects will fail because of clipAntony Riakiotakis
alpha, added option when drawing depth to disable alpha clip override. We use that in texture paint cursor now. Not too common but may be useful for people dealing with cloning plugins. Reported by kgeogeo on irc, thanks.
2013-03-17code cleanup: name mesh functions more consistently, also use bools for mesh ↵Campbell Barton
args.
2013-03-15Fix: multisample viewport drawing didn't work well with selection or particleBrecht Van Lommel
brushes, due to issues with color coded drawing or slow/buggy reading from such a buffer on some systems. In case multisample is enabled now, it uses an offscreen buffer for such drawing, which is not multisampled and so should not cause issues. This does mean there is some extra GPU memory usage when multisample is enabled, and we could optimize triple buffer to work together here somehow to share buffers, but it's better than having selection not working.
2013-03-14minor knife refactor to prepare for running non interactively.Campbell Barton
2013-03-14code cleanup: de-duplicate view clipping function for paint and knife tool, ↵Campbell Barton
minor changes to knife initialization.
2013-03-09code cleanup: move runtime var zfac out of RegionView3D. rename initgrabz() ↵Campbell Barton
-> ED_view3d_calc_zfac() and have it return the zfac to use.
2013-03-09ruler3d: replace ED_view3d_cursor3d_position() with lower level function ↵Campbell Barton
view3d_get_view_aligned_coordinate()
2013-03-09code cleanup: favor braces when blocks have mixed brace use.Campbell Barton
2013-03-04code cleanup: view3d_clipping_test was making a vector copy for no reason.Campbell Barton
2013-02-28fix for harmless glitch rotating the camera in camera mode, having the ↵Campbell Barton
center point so close to the viewpoint caused the helper line to erratically move about because of float precision.
2013-02-21code cleanup: pass mval to ED_view3d_cursor3d_position() rather then event x/yCampbell Barton
2013-01-05Changes for opengl render to reflect new alpha premul pipelineSergey Sharybin
without hurting quick texture painting - ED_view3d_draw_offscreen will now output buffer with transparent alpha, if sky needed it should be alpha-undered later. - ED_view3d_draw_offscreen_imbuf now accepts alpha mode as an argument which could be either R_ADDSKY or R_PREMULALPHA - OpenGL render and sequencer's opengl preview will now reflect scene's Alpha Mode - Quick Edit will use OpenGL with transparent alpha mode
2012-12-26Todo item:Ton Roosendaal
- Drop group into 3d window now puts itself at mouse cursor location. - Drop objects into 3d window now doesn't move the 3d cursor anymore. Added new function ED_view3d_cursor3d_position() to handle this, so the temporarily object-drop operator macro also could go away. (Which was setting 3d cursor)
2012-12-23add zbuf/depth option to weight paint lasso select.Campbell Barton
2012-12-21fix own regression in 2.65 [#33643] Rotation does not work at certain zoom levelCampbell Barton
caused by not projecting points behind the perspective view, even though this worked in 2.64 the values were flipped (rotating direction was reversed and the center point was flipped). added V3D_PROJ_TEST_CLIP_NEAR, when omitted ED_view3d_project_*** will project points from behind a perspective view plane.
2012-12-12Sequencer: add textured solid option for opengl previewSergey Sharybin
2012-12-11change to r52888, since we dont always want ED_view3d_offset_distance() to ↵Campbell Barton
give a corrected value, instead pass a fallback so callers don't allow zero by accident.
2012-12-11define the size of matrix args for both rows/cols.Campbell Barton
2012-12-10fix for knife tool when the mouse was moved outside the clipped area the ↵Campbell Barton
mouse line would reset to 0/0/0 a few areas that use ED_view3d_win_to_segment_clip() didnt take into account the case where the segment was filly clipped, some callers even needed the segment not to be clipped. - added ED_view3d_win_to_segment() - ED_view3d_win_to_segment_clip() now returns FALSE if the segment is totally clipped, but the start/ends of the line are not zero'd as they were before.
2012-12-09fix [#33442] UnitsCampbell Barton
adding meshes were scaling the user input values so the distance on the button didnt relate to the scale of the object added. Now use an invoke function that scales unset default values.
2012-11-30add margin to view fitting view-all/local-view (wasn't obvious with the ↵Campbell Barton
models I was testing with).
2012-11-30fix for r51636 - making the lens work in ortho mode made view-all and ↵Campbell Barton
local-view operators give bad zoom levels.
2012-11-30make previous commit work when the camera is locked to the view (in that ↵Campbell Barton
case use the camera lens, not the viewport lens value).
2012-11-30fix for view-all operator not taking the view-angle into account.Campbell Barton
2012-10-24Patch #29142: Reduce hopping when switching between perspective and ↵Sergey Sharybin
orthographic on 3D view Patch by Yasuhiro Fujii, thanks! Original issue was that in vases viewport's lens are different from default value switching between perspective and orthographic projections will change viewplane a lot, which is disorienting and annoying.
2012-10-23Fix #32941: Sequencer Preview shows texture which is apart of the window.Sergey Sharybin
Issue was caused by buffer shadows were binding buffer after offscreen buffers was bind which lead to some unpredictable results. Made it so ED_view3d_draw_offscreen wouldn't bind any buffers and for proper shadows ED_view3d_draw_offscreen_init should be manually be called before drawing to an offscreen. This should also make open gl render with AA enabled a bit faster. Also fixed missing sequencer cache invalidation when open gl render type is changing. Material and Rendered modes are still a TODO for sequencer.
2012-10-17code cleanup:Campbell Barton
- move object_iterators.c --> view3d_iterators. (ED_object.h had to include ED_view3d.h which isn't so nice) - move projection functions from view3d_view.c --> view3d_project.c (view3d_view was becoming a mishmash of utility functions and operators). - some some cmake includes as system-includes.
2012-10-10refactor foreachScreen functions for clipping, now the projection clipping ↵Campbell Barton
flag is passed down directly rather then converting the enum into a flag, also fix own recent crash lasso seleting in object mode with pose objects.
2012-10-10code cleanup: split `foreach` object data iterator functions out of ↵Campbell Barton
drawobject.c (since they are used for selection too), into their own file: object_iterators.c
2012-10-10refactor screen foreach functions to accept float[2] arguments rather then ↵Campbell Barton
int pairs. overall means less converting between float and int (and short in some cases).
2012-10-07style cleanup: line length,Campbell Barton
rename V3D_PROJ_RET_SUCCESS -> V3D_PROJ_RET_OK
2012-10-06add mball_foreachScreenElem() and use for lasso & circle selection, also ↵Campbell Barton
utility metaball functions to (de)select all.
2012-10-05use pose_foreachScreenBone for pose lasso and circle selectCampbell Barton
2012-10-05code cleanup: use functions to initialize selection user data structs, use ↵Campbell Barton
radius-squared for circle select comparisons. edge_fully_inside_rect() & edge_inside_rect() args were shorts when all callers were passing ints.
2012-10-05fix for bug in loop select, picking the active vert/edge/face was using ↵Campbell Barton
global space checks on object space coordinates. this removes last use of ED_view3d_project_float_noclip().
2012-10-05replace ED_view3d_project_float with ED_view3d_project_float_globalCampbell Barton
2012-10-05add ED_view3d_project_float_global, ED_view3d_project_float_object, ↵Campbell Barton
ED_view3d_project_float_ex function calls and cleanup cursor3d set function which had some odd logic.
2012-10-04make ED_view3d_project_int equivalent to ED_view3d_project_short functions.Campbell Barton
2012-10-04refactor ED_view3d_project_short & ED_view3d_project_short_noclip,Campbell Barton
This is apart of a code cleanup to make ED_view3d_project_short/ED_view3d_project_int/ED_view3d_project_float interchangeable. Currently they work very differently in a way thats quite confusing (and cause of bugs in blender that remain uncorrected) - fixes coming. There are also cases where ED_view3d_project_short is used, then the values are converted from shorts into int's after because ED_view3d_project_int() behaves differently, will unify behavior of these functions after this commit. - rather then clip/noclip versions, pass flags (for bound-box clip, window clip). - rather then store the invalid clip-value, return success (or error value clip_near, clip_bb, clip_win, overflow). - remove local copies of project functions from drawobject.c: view3d_project_short_clip, view3d_project_short_noclip, view3d_project_short_clip_persmat. add functions: - ED_view3d_project_short_global() global space projection - ED_view3d_project_short_object() object space projection. - ED_view3d_project_short_ex() take perspective matrix and local space option as args. - ED_view3d_project_base() - special function to set the Object 'Base' screen coords (sx, sy), since this is a common enough operation.
2012-09-20code cleanup:Campbell Barton
- make view3d project names more consistent. - remove apply_project_float() its not needed. - update comments referencing an old function name. - move doxygen docs into the C file, prefer they are kept here to avoid getting out of sync with code.
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-08-14fix [#32315] Circle select unreliable when in vertex+edge select modeCampbell Barton
dist_squared_to_line_segment_v2() was returning the sqrt'd value in some cases. also use int's for edge_inside_circle() rather then shorts since it was doing int/float/short conversions and we're now using int's for screen vars in more places.
2012-06-06- background images now draw in opengl renderCampbell Barton
- fix bug where forground images could be invisible when clipping was enabled.
2012-05-31Fix #31657: adding mesh objects did not take units into account for the gridBrecht Van Lommel
scale that sets the default size.
2012-05-13code cleanup: header cleanup and remove some duplicate defines.Campbell Barton
2012-05-05feature request from VenomGfx- lock to active as an operator since its ↵Campbell Barton
tedious setting the object and bone manually (especially if you have it right in front of you) uses keys - Shift+PadPeriod --- to set - Alt+PadPeriod --- to clear (also clears cursor and camera locking)
2012-04-27code cleanup:Campbell Barton
- move lasso functions into BLI (were in 3D view but UV editor needs access) - remove unused UV functions (ones that assumed 3-4 sized UVs only)