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
2019-09-29Fix T70320: View clipping doesn't hide extra wireframeCampbell Barton
2019-09-17Fix T69809, T69810: sculpt gone or crashing after renderBrecht Van Lommel
Make a distinction between flush sculpt changes for rendering, and forcing sculpt data structures to be rebuilt after mesh changes. Also don't use PBVH for renders.
2019-09-17DRW: Refactor to support draw call batchingClément Foucault
Reviewers: brecht Differential Revision: D4997
2019-09-14Revert "DRW: Refactor to support draw call batching"Clément Foucault
This reverts commit ce34a6b0d727bbde6ae373afa8ec6c42bc8980ce.
2019-09-13DRW: Refactor to support draw call batchingClément Foucault
Reviewers: brecht Differential Revision: D4997
2019-07-02Fix T66295 Collection instance duplicates don't have selection outlineClément Foucault
Was cause by shgroup reuse even if select state changed from previous dupli. Also fixes T64438 Collection Instance object highlight wrong
2019-06-26Fix T65755 "In Front" (X-Ray) doesn't work with wire objectsClément Foucault
We fix by separating the drawing of wire xray objects. These wire objects gets drawn before normal wires and set the stencil to 0x0 just like the solid counterparts. Also a prepass is done to "dig" through non-xray solid.
2019-06-11Fix T65406 Edit Mode: Edge selection is below wireframe overlayClément Foucault
This was due to a double offset of the wireframe. We also reduce the wireframe offset. The look of the wireframe overlay changes a little with on distant wires.
2019-06-04GPU: High Definition Color BufferJeroen Bakker
For offscreen rendering a high definition color buffer is needed. Without it there are banding issues when doing multi-sampling viewport rendering. Reviewed By: fclem Maniphest Tasks: T65287 Differential Revision: https://developer.blender.org/D5009
2019-05-31Fix sculpt mode drawing with modifiers still being wrong in some casesBrecht Van Lommel
Centralize logic for when to use the PBVH for drawing, fix missing tests in mask drawing, fix missing tests for multiple windows, only do more expensive update for all viewports at end of the stroke.
2019-05-30DRW: Refactor to use object pointer for drawcall by defaultClément Foucault
This cleans up a bit of duplicated code and some confusion about what was culled and what wasn't. Now everything is culled based on the given object pointer. If the object pointer is NULL there is no culling performed.
2019-05-28Cleanup: DRW: Rename DRW_STATE_BLEND_* for API clarityClément Foucault
2019-05-27Cleanup: DRW: Move WorldClipPlanes to builtin uniformClément Foucault
2019-05-27Cleanup: Paint Overlays: Remove DRW_STATE_OFFSET_*Clément Foucault
2019-05-22DRW: Remove some usage of DRW_viewport_matrix_getClément Foucault
2019-05-22DRW: Remove DRW_state_clip_planes_set_from_rv3dClément Foucault
This should be handled by DST.view_default
2019-05-14Cleanup: DRW: Remove uneeded _add suffix from DRW_shgroup_call_addClément Foucault
2019-05-10Overlays: Use common_view_lib.glslClément Foucault
This removes ModelViewProjectionMatrix usage
2019-05-09Fix T64384 : Crash when switching to wireframe on tree_creature blendClément Foucault
Was missing NULL pointer check
2019-05-08Overlay Mode: Use common_view_libClément Foucault
This is in order to centralize all matrices transformations.
2019-05-08Wireframe: Create dupli fast path using DRW_duplidata_getClément Foucault
2019-05-04Sculpt: Refactor draw manager sculpt drawing mechanismClément Foucault
Workbench/Eevee now displays multiple multi-materials correctly. Iterate over pbvh nodes when doing object iteration. This makes the rendering process more streamlined and allow for using different materials. This change will make possible to: - Add culling pass of each pbvh leaf node. (speedup if zoomed on a small area) - Reduce number of lead node iteration. - Reduce code complexity
2019-05-02Fix T63997 Weird z-fight during weight paintClément Foucault
PBVH drawing was used even in weightpaint/vertexpaint because both uses the sculpt session.
2019-04-27Cleanup: unused varsCampbell Barton
2019-04-26Fix T58966 Sculpted changes dissapear visually when selecting a second objectClément Foucault
Display sculpt mesh if there is a sculpt session.
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-11Fix T63467: Edge/vertex selection isnt working properly with X-ray set to 1Sebastian Parborg
Edit mode shows the mesh elements in X-ray mode even if alpha is set to 1. Now the code takes this into account so that you can still select visible mesh elements in X-ray edit mode. view3d_draw_legacy need to be updated with the new XRAY flag macros to avoid crashes. Additional cleanup of the XRAY macro flags were done.
2019-04-09Fix T62114: Wireframe mode selection: selects backside objects when clicking ↵Sebastian Parborg
frontside object in 3d-window Now the depth order of objects when trying to select them is only used when not in X-ray mode. Before, this was only the case in wireframe mode regardless of X-ray settings. I've also unified the usage of V3D_XRAY and XRAY_FLAG as they were basically copies of each other. Reviewed By: Clément Differential Revision: http://developer.blender.org/D4504
2019-03-26Fix T62774: Respect Show OverlaysJeroen Bakker
Some draw code did not respect Show Overlays option. These were: * All mode based drawing engines (edit mode) * Wireframe drawing This change make them respect the Show Overlays Option. Reviewed By: fclem, billreynish Maniphest Tasks: T62774 Differential Revision: https://developer.blender.org/D4572
2019-03-16Cleanup: fix compiler warnings.Brecht Van Lommel
2019-03-05Cleanup: rename RENDER_OVERRIDE -> HIDE_OVERLAYSCampbell Barton
Match the UI naming (changed since 2.7x).
2019-03-01Fix T62047 New wireframes missing fresnel effectClément Foucault
Add back some (subtle) fresnel effect on object wireframe. Dupli/set object still remains flat and need more work.
2019-02-23Cleanup: quiet undeclared variable warningCampbell Barton
Also move view_ubo into G_draw.
2019-02-22Wireframe: Add object and random coloring option in wireframe modeClément Foucault
The option is separated from the solid mode color option. Random color uses the same method as solid mode. Selection state is indicated by a brighter color that is outside the brightness range of the unselected state colors. The active state is indicated by the outlines that is, now, still drawn in wireframe mode. Coloring of the selection / active outline is not optimal because it can look ugly in some cases of color combination. But the outline color is using index range coloring so it's not trivial to change the color of the outline per object. For now we use the same outline color used in solid mode for consistency and also still add an emphasis on the selected objects. The Single color option uses the theme color. Maybe it would be nice to change the name of it in a latter commit to avoid confusion.
2019-02-18Wireframe: Fix selection broken since recent wireframe refactorClément Foucault
2019-02-18Sculpt Draw: Add support for wireframe geometryClément Foucault
This introduce the wireframe batches. Creating the indices buffer does not seems to slow down the sculpt in my testing (but it is kind of hard to test reliably) This includes a bit of cleanup in gpu_buffers.c.
2019-02-18Wireframe: Add workaround for osx wide wiresClément Foucault
2019-02-18Wireframe: Fix Artifacts with MSAAClément Foucault
We blit the depth buffer into the MSAA depth buffer so that wires are properly occluded. This also makes the "In front" option work with MSAA.
2019-02-18Wireframe: Add depth offset to prevent zfighting of wireframe overlayClément Foucault
2019-02-18Wireframe: Refactor to use GL_LINES instead of triangles with alpha blendClément Foucault
This gets rid of the progressive fading of the edges as it does not work with depth perception (sorting problem with alpha blending).
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-17Cleanup: rename Mesh.edit_btmesh -> edit_meshCampbell Barton
When bmesh was in a branch we had both edit_mesh and edit_btmesh, now there is no reason to use this odd name.
2019-02-10Cleanup: move clipping shader lib & define into structCampbell Barton
Also compare clipping with the draw context instead of accessing the RegionView3D, currently they're matching but this might not always be the case.
2019-02-10Cleanup: use shorter name for shader configCampbell Barton
The struct name is descriptive, this isn't going to be confused with other variables.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-06GPU: refactor clipped drawing from DRW into GPUCampbell Barton
Needed to fix T61196, supporting clipped back-buffer in the 3D view which is done outside the draw module. It was also inconvenient having DRW_shader_* versions of GPU_shader_* API calls. - Clipping distances are now supported as a shader configuration for builtin shaders. - Add shader config argument when accessing builtin shaders. - Move GPU_shader_create_from_arrays() from DRW to GPU.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-31Cleanup: add trailing commasCampbell Barton
Improve clang-format output.
2019-01-26Cleanup: draw manager headersCampbell Barton
2019-01-23DRW: generalize selecting between regular/clipped shadersCampbell Barton
Each engine was doing this on its own. Move to DRWContextState, use an enum.