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
2009-12-11Sculpt Branch:Brecht Van Lommel
* Added detection if VBO extension is supported. * Redraw other 3d views after sculpting. * Fix brush sometimes punching through mesh with very small polygons, added an extra epsilon to the ray-triangle intersection.
2009-12-09Sculpt Branch:Brecht Van Lommel
* Smooth brush works again for multires. * Optimal Display option for multires modifier, same as subsurf.
2009-12-09Sculpt Branch: sculpting with modifiers and shape keys working again.Brecht Van Lommel
2009-12-07Sculpt Branch:Brecht Van Lommel
Subdivision set with Ctrl+1-5 now works for multires as well.
2009-12-07Sculpt Branch:Brecht Van Lommel
svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r24889:25180
2009-12-07Sculpt Branch:Brecht Van Lommel
* Don't allow adding/removing multires levels in editmode. * Customdata code for swapping mdisps restored. * Fix inflate brush crashing with multires. * Smooth and layer brush don't work yet with multires, but at least avoids crashing now. * Fix threading issue with flatten brush.
2009-12-03Sculpt Branch:Brecht Van Lommel
* Multithread parts of multires and subsurf. Only loops working on face grid data and do no memory allocation have been multithreaded, others would be more complicated. * Force some CCGSubsurf functions to be inlined, gives a small overall speedup in subsurf code. * Fix sculpting not working correct with transformed objects. * Fix a few cases of "spikes" on lower level multires levels. There's still cases where it happens, usually on boundary cornders. The problem is that in such cases the limit surfaces can be very different from the low res surface, so the tangent space is very different too.. * Fix crash deleting multires higher levels with level set to 0. * Fix crashes that happened sometimes when adding faces in editmode.
2009-11-301. Extend option for 3d view border select now does something (default True ↵Martin Poirier
to keep same behavior) 2. Add action parameter to Select_All_Toggle operators, rename to Select_All. Options are Toggle (default), Select, Deselect, Invert (same as select swap). This makes it possible to map separate hotkeys for select all and deselect all. NOTE for Aligorith: I didn't change animation operators for select_all which already had an Invert operator. These should be fixed eventually.
2009-11-25Sculpt:Brecht Van Lommel
svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r24483:24889
2009-11-25Sculpt: MultiresBrecht Van Lommel
* Displacement coordinates are now stored differently, as a grid per face corner. This means there is duplication of coordinates, especially at low subdivision levels, but the simpler implementation justifies it I think. * ToDo: conversion of existing multires files (2.4x or 2.5x), loading them may even crash now. * Editmode preservation/interpolation code also has not been updated yet. * Multires now works on the CCGDerivedMesh grids instead of CDDerivedMesh, which should be more memory efficient. * There are still bad memory peaks (if you're using 32bit) when subdividing or propagating displacements. Though at least there should be no huge memory blocks allocated, which windows is now to have trouble with. * Still found some weird spike artifacts at lower multires levels, some also happening before this commit. Perhaps computation of tangents needs to be tweaked more. * Multires modifier now has viewport, sculpt and render levels. Also the levels have been made consistent with subsurf, previously the same level of subdivision was one less for multires. * Both multires and subsurf modifier now can have their subdivision level set to 0 for no subdivision.
2009-11-25Sculpt: Grid based PBVHBrecht Van Lommel
* PBVH can now be created contain both from face grids or standard meshes. The former is much quicker to build for high res meshes. * Moved some drawing code into pbvh (mostly for the frustum test). * Moved ray intersection code into pbvh. * GPU buffers also can be built from either mesh or grids now. * Updated sculpt code to work with this. The ugly part is that there is now a macro for iterating over vertices, to handle both cases, and some duplicated code for e.g. undo. * Smooth brush does not work yet with grids.
2009-11-25Sculpt: SubsurfBrecht Van Lommel
* Now uses the CCG DerivedMesh also in object mode, used to be edit mode only. * Create CD_ORIGINDEX layer on demand, to save memory. * Removed ss_to_cdderivedmesh function, and instead create ccgdm and then convert that to cddm, to avoid code duplication. * Added and implement DerivedMesh interface functions to obtain face grids. * Store edge/face flags more memory efficient. * Export CCGDerivedMesh struct in BKE_subsurf.h
2009-11-22Patch #19953: [2.5] repeated include entries in a number of SConscript filesJoshua Leung
Thanks for the patch Jeff Doyle (nfz)
2009-11-22Sculpt branch:Nicholas Bishop
Fixed grab brush, was creating holes in the mesh due to uninitialized values.
2009-11-21Sculpt branch:Nicholas Bishop
Corrected the calculation of the center of the flatten effect.
2009-11-21[#19930] Nurb CV select is failing because of view clippingCampbell Barton
- the clipping test function was using the rv3d->viewmatob where it needed to use the object matrix. - added a local clipping member to rv3d, the clipping planes in object-space, avoids many matrix multiplications when testing verts or clipping pixels when projection painting.
2009-11-20* Removed tablet pressure sensitive number field widget scrubbing, wasn't ↵Matt Ebb
that useful and I suspect it was the cause of a few bugs * Added tablet pressure support (size/strength) for weight paint and vertex paint * Added tablet eraser support for weight paint and vertex paint (inverts the effect of the current tool) * Removed the old 'soft' option, now weight paint and vertex paint use the influence curve * Made the default brush use a smooth influence curve, rather than sharp
2009-11-17use number keys to set the current brush in paint modesCampbell Barton
2009-11-11Fix bug #19762: sculpt does not work with shape keys.Brecht Van Lommel
2009-11-11Fix #19368: sculpting with subsurf modifier applied did not update correct.Brecht Van Lommel
Fix #19438: sculpt anchored + texture did not center texture correctly.
2009-11-11Sculpt: svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender ↵Brecht Van Lommel
-r24330:24483
2009-11-10Math LibBrecht Van Lommel
* Post-conversion commit, fixing some introduced warnings.
2009-11-10Math LibBrecht Van Lommel
* Convert all code to use new functions. * Branch maintainers may want to skip this commit, and run this conversion script instead, if they use a lot of math functions in new code: http://www.pasteall.org/9052/python
2009-11-10use armature active bone as a pointer rather then a flag for each bone that ↵Campbell Barton
needs looking up. - rna vars arm.bones.active & rna.edit_bones.active - needed special undo support. - readfile.c loads. - duplicate and copy_armature support. - keep the draw flag, renamed to BONE_DRAW_ACTIVE, only use for openGL drawing. Note: it may be better to allow active/unselected as with objects.
2009-11-06Sculpt: WIP brush behavior changesBrecht Van Lommel
* Draw/Inflate/Layer now keep working on the original mesh coordinates and normals from when the stroke started. This helps avoid the mesh blowing up, but can still be better. The old behavior is still available as "Accumulate" in the UI. * This requires some more memory usage for the BVH, would like to find a way to avoid that. * Smooth falloff is now the default. * Spacing is now enabled by default, with a value of 7.5. * Anchored now stores normals per node to save some memory.
2009-11-05Sculpt: tool updates for latest changesBrecht Van Lommel
* Smooth: vert-face map is now only created when this tool is used, would be best to also avoid using it here to avoid a sudden increase in memory, but is not trivial. * Grab: now no longer uses active verts list and loops over nodes like other tools. * Layer: uses original coordinates from undo now to save memory when not using persistent layer. * Anchored: this option works again now, though is still quite slow as it loops over all verts/faces. Smooth, layer tools and the anchored option could still be improved to use less memory and/or work faster by only doing things per node.
2009-11-04Sculpt: now uses it's own Undo stack like editmesh. The main advantage here isBrecht Van Lommel
that it is able to store changes in the mesh more compact than global undo. It doesn't integrate well with multires yet, will tackle that when I start looking into multires, for now still focusing on sculpt on regular meshes.
2009-11-04Sculpt: updating normals now no longer uses the vert-face map, to save memory.Brecht Van Lommel
The weak point now is the thread-safe atomic access to normals from multiple threads, did not seem to be a bottleneck in my tests but I don't really trust it to be fast.
2009-11-04Sculpt: derivedmesh no longer created CD_ORIGINDEX layer when thereBrecht Van Lommel
is no modifier, saving some memory.
2009-11-04Sculpt: split generic part of image paint undo system into separateBrecht Van Lommel
paint_undo.c file, to be reused for sculpt.
2009-11-04Sculpt: fix bug where mouse release event was not caught in some cases.Brecht Van Lommel
2009-11-04Moved the show brush flag from sculpt to paint, and it now shows/hides the ↵Nicholas Bishop
brush as expected. Also fixed some errors in the UI scripts.
2009-11-02Sculpt: svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender ↵Brecht Van Lommel
-r24152:24257
2009-11-02Sculpt: Multithreading & PBVH ChangesBrecht Van Lommel
* Sculpting, normal update and bounding box code is now multithreaded using OpenMP. * Fix a number of update issues: normals on node boundaries, outdated bounding boxes, partial redraw, .. . There's probably still a few left, but should be better now. * Clicking once now does a single paint instead of two (was also painting on mouse up event). * Smooth shading now is enabled for the full mesh when the first face uses it (so it can be tested at least). Implementation Notes: * PBVH search can now be done either using a callback or bt gathering the nodes in an array. The latter makes multithreading with OpenMP easier. * Normals update code is now inside PBVH, was doing it per node before but should do all faces first and only then vertices. * Instead of using search modes + 1 modified flag, now nodes get 4 flags to indicate what needs to be updated for them, found that this makes it easier for me to understand the code and fix update bugs. * PBVHNode is now exposed as an abstract type, I think this makes it more clear what is happening than having it's data passed as part of callback functions. * Active_verts list was replaced by looping over nodes and the vertices inside them. However the grab brush still uses the active_verts system, will fix that later. * Some micro-optimizations, like avoiding a few multiplications/divisions, using local variables instead of pointers, or looping over fewer vertices to update the bounding boxes.
2009-11-02how embarrassing!Campbell Barton
2009-11-02- all add object operators now take view_align as an argument, and ↵Campbell Barton
enter_editmode where its used. Makes running the operator from python pradictable without having to know the user prefs. - missing return in function - python error in view3d (assumed active object exists)
2009-10-30two things; made ctrl-p add an armature modifier instead of using PARSKEL, ↵Joseph Eagar
and also made wpaint auto-normalize work with PARSKEL armature setups
2009-10-30added an 'auto-normalize' option for weight paint mode, that automatically ↵Joseph Eagar
ensures vertex groups that affect bones all add up to 1.0. please test and give feedback.
2009-10-29Sculpt: fix first partial redraw giving wrong bounds.Brecht Van Lommel
2009-10-28Avoid an unecessary rebuild of the pbvh.Nicholas Bishop
2009-10-28Moved the PBVH from sculpt session to DerivedMesh/CDDM.Nicholas Bishop
* Multires sculpting appears to work now * PBVH gets recalculated in some cases where it shouldn't, haven't looked into this yet
2009-10-27Commit of the sculpt patch (#19672). Further development will be in this ↵Nicholas Bishop
branch until we merge to trunk.
2009-10-22face mask modeCampbell Barton
- border select - linked selection (Ctrl+L) - select all
2009-10-22added back face mask mouse selection and made shift+k fill weight paint and ↵Campbell Barton
vertex color
2009-10-21Make compiler happy, remove doubtful non init usage.Guillermo S. Romero
2009-10-20move G_FACESELECT from G.f to mesh->editflag, renamed to ME_EDIT_PAINT_MASKCampbell Barton
2009-10-20Auto SaveBrecht Van Lommel
Auto save is now working again in 2.5. It will also remember now what the location of the original file was when recovering it, so that library links still work and saving the restored file does not save to the temp directory. There is also a new Recover Auto Save operator which will open the filebrowser in the temp directory and show the auto saved .blends. Implemenation Notes: * Timer storage was moved from window to windowmanager, so we can have windowmanager level timers too now, doesn't make sense to have autosave timer attached to a particular window. * FileGlobal now has a filename field storing where the file was saved. Note that this is only used when loading a file through the recover operators, regular file read doesn't use it, so copying the quit.blend manually over the original file will still work as expected. * Jobs timer no longer uses operator now, this seems more like an internal thing, changing keymaps should not make it possible to break the jobs manager. * Autosave is postponed by 10 seconds when a modal operator is running, e.g. transform or file browsing. * Moved setting G.sce in setup_app_data before depsgraph updates, these can use the filename for pointcaches.
2009-10-19use the meshes mirror flag for weight paintingCampbell Barton
2009-10-16Bugfix: sculpting with a multires modifier at level 1 would crash.Brecht Van Lommel
2009-10-13Various warning fixesNicholas Bishop