August 21, 2021, 03:49 (GMT) |
Dyntopo: Disable mem cache test executable for now as it doens't link on mac |
August 21, 2021, 03:36 (GMT) |
Sculpt dyntopo: * Fixed multires apply base feeding bad original coordinates to deform modifiers. * Roughed out some code for cache performance testing. * Wrote skeleton code for a PBVH texel API; hasn't been tested yet and may be removed. |
August 19, 2021, 04:43 (GMT) |
* BM_mesh_remap can now reorder loops * Wrote yet another BKE_pbvh_reorder_bmesh function |
August 17, 2021, 21:58 (GMT) |
Sculpt dyntopo: yet another undo bug BKE_pbvh_bmesh_add_face had a branch where it ignored the log_face argument, leading to corruption in BMLog. |
August 17, 2021, 06:38 (GMT) |
Sculpt dyntopo: remove debug ATTR_NO_OPT's |
August 17, 2021, 06:17 (GMT) |
Sculpt dyntopo: more undo fixes Yay for massively overdetermined bugs. |
August 17, 2021, 03:50 (GMT) |
Sculpt dyntopo * Added a limited "fast draw" mode to pbvh drawing that tries to limit data sent to the GPU. - Facesets and mask data are disabled. - Indexed mode is forced. - Does not work (at all) for multires. * Finally fixed some outstanding bmesh sculpt undo bugs: - Forgot to mark pbvh nodes to update their bounds, which produced a bug I had thought was caused by something else. - Hopefully fixed a long-standing occasional memory corruption bug. |
August 16, 2021, 22:43 (GMT) |
Sculpt dyntopo: fix various faceset init operator bugs that crept in. |
August 16, 2021, 09:12 (GMT) |
Sculpt dyntopo: Fix memory corruption caused by improperly disabled code. |
August 16, 2021, 08:44 (GMT) |
Sculpt dyntopo: Fix boundary brush for multires This commit fixes boundary brush for multires which broke two commits ago. This required implementing the geodesic api for PBVH_GRIDS, which I did by building topology maps in a rather. . . haphazard fashion. Basically I built a vert->edge map and then used it to derive a pseudo edge to quads mapping (it maps edges to all the verts in the two surrounding quads except the edge's own verts). Just for fun I enabled geodesic mode in mask expand; it seems to work. |
August 16, 2021, 01:14 (GMT) |
Merge branch 'master' into temp_bmesh_multires |
August 16, 2021, 01:02 (GMT) |
Sculpt dyntopo: improve boundary brush for irregular topology (still a wip) The boundary brush now builds a geodesic distance field (from the boundary) from which it derives a tangent field: * These now define the rotation plane for bend mode. * Rotation origins snap to these planes. There is also typedef'd code for visualization tangents in a temporary object (note the sculpt object), to enable define VISBM in sculpt_boundary.c. This will be removed lated. Additional changes: * Added a function to get the number of edges around verts, SCULPT_vertex_valence_get. * Added an API to calculate cotangent weights for vert fans, SCULPT_cotangents_begin (call in main thread first) and SCULPT_get_cotangents. * Sculpt neighbors for PBVH_FACES now uses ss->vemap if it exists. * The Mesh topology mapping code now takes extra parameters for sorting vert/edge cycles geometrically. * Similarly, there is now a function to sort BMesh edge cycles, BM_sort_disk_cycle. * MDynTopoVert->flag now has a bitflag for when the disk cycle sorting needs to be redone, DYNVERT_NEED_DISK_SORT. * The sculpt geodesic code now supports passing in custom vertex coordinates. * The geodesic API can also build an optional map of which vertex in the initial vertex list is closest to any other vertex. |
August 12, 2021, 05:51 (GMT) |
Sculpt dyntopo: fix bug with dyntopo geometry undo push |
August 8, 2021, 05:28 (GMT) |
Sculpt Dyntopo: PBVH draw fixes * The PBVH draw subsystem is now told whether any viewports have drawtype >= OB_MATERIAL before anything in any windows are drawn. There are no alternatives given the design constraints of sculpting, where simply uploading data to the GPU quickly becomes a bottleneck. * Fixed flat vcol shading mode. |
August 8, 2021, 02:25 (GMT) |
* Don't rely on BMLog's stored normals, instead flag pbvh nodes to update normals on undo/redo. |
August 7, 2021, 01:39 (GMT) |
Sculpt dyntopo: Fix bug in cleanup_valence_3_4 |
August 6, 2021, 19:51 (GMT) |
Merge branch 'master' into temp_bmesh_multires Also fixed a pbvh corruption bug |
August 6, 2021, 16:58 (GMT) |
Dyntopo sculpt: add dev operator to debug memory cache coherency |
July 29, 2021, 23:08 (GMT) |
Merge branch 'master' into temp_bmesh_multires Also: * added BMLog function to save mesh IDs. - Used by SCULPT_UNDO_DYNTOPO_BEGIN/END instead of saving the whole mesh, which was the previous behavior. * SCULPT_UNDO_DYNTOPO_BEGIN no longer pushes a non-dyntopo geomtry undo node, as this is no longer necassary. This greatly speeds up going into/out of sculpt mode with dyntopo enabled, as before it was copying the mesh twice. |
July 25, 2021, 12:28 (GMT) |
sculpt dyntopo: fix memory corruption and associated memory leak |
|