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-02-14DRW: de-duplicate vertex & weight paint enginesCampbell Barton
These were almost exact duplicates, use one engine for drawing both kinds of vertex color.
2019-02-14Cleanup: vertex painting variable useCampbell Barton
Assign to local variables when setting up passes, avoids mix-up between similarly named struct members.
2019-02-14Fix vertex/weight paint showing edge selectionCampbell Barton
When vertex/face selection are disabled - show all wire ignoring selection & hidden state.
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.
2019-01-23Cleanup: add BEGIN/END to GPL headersCampbell Barton
2019-01-223D View: Support vert & weight paint mask clippingCampbell Barton
2019-01-22Cleanp: use single global for draw managerCampbell Barton
Add 'G_draw' for all draw manager globals, avoids adding extern to each file. Connection between `ts` and `globals_ubo` wasn't obvious, now called `G_draw.block` & `G_draw.block_ubo`.
2018-12-18DRW: Cleanup / Renaming of mesh batch cache functionsClément Foucault
THis is in order to avoid the jungle of names being different at each step of the API. Also removes some unused functions.
2018-12-18Mesh Batch Cache: Port vertex paint surface to batch requestClément Foucault
2018-12-18Mesh Batch Cache: Port weight paint surface to batch requestClément Foucault
2018-12-18Weight Paint Overlay: Refactor wire drawingClément Foucault
This reduce the number of batch/data needed. Stores a select/visiblee flag inside the vert/loop normals.
2018-12-17Mesh Batch Cache: Port Texture paint wires to new batch requestClément Foucault
2018-12-01Texture Paint: fix wireframe and hiding not working with subsurf.Alexander Gavrilov
The editflag field is only valid in the original mesh instance.
2018-10-08Implement display of weight isoline contours in the fragment shader.Alexander Gavrilov
Add an option to display contour lines tracing through points with the same interpolated weight value in weight paint mode. This can be useful for working on gentle gradients over a relatively high resolution mesh, where the difference in color between adjacent vertices is very small. The contour grid has 3 levels of detail going down to step 0.001, which automatically fade in or out based on the weight gradient. Fade out works by capping both screen space and weight space line width, and reducing alpha when the screen space width becomes too small for moire and noise-less rendering. Reviewers: fclem Differential Revision: https://developer.blender.org/D3749
2018-09-27Implement a new dedicated weight painting shader.Jeroen Bakker
Move the weight paint drawing to the fragment shader. The shader uses a texture that uses the U.coba_weight custom color band, or an internal color band. In addition to actual weights, the shader has to display two alert colors: missing vertex group, and zero weight. The zero weight alert has to be blended with regular weight colors, so that a single alert vertex surrounded by weighted ones is still visible. Reviewers: campbellbarton, fclem Differential Revision: https://developer.blender.org/D3675
2018-09-25Weight Paint: Fix weight paint overlay not displaying correctlyClément Foucault
This was because weight paint was using the original obj to show weights. But the mesh can be deformed by the armature and this is not visible on the original object.
2018-09-25Implement correct drawing of advanced Weight display features.Alexander Gavrilov
This adds existing behavior from calc_weightpaint_vert_array that was missing from the new rendering code: - No selected Vertex Group displays as a solid pink color. - Zero weight displays as alert color depending on Options. - Multipaint mode correctly displays collective weight. In order to properly implement this variety, a data structure holding all relevant parameters is introduced. Reviewers: fclem, campbellbarton Subscribers: jbakker Differential Revision: https://developer.blender.org/D3722
2018-09-24Weight Paint: Multiply overlay on the meshJacques Lucke
Use the multiply blending mode for the weight paint overlay. To support the opacity slider, we need a new shader. Otherwise this combination of multiplication and mixing does not seem to be supported by glBlendFunc. Reviewers: brecht Differential Revision: https://developer.blender.org/D3727
2018-09-03Weightpaint mode: Removing barbarian batch tagging on engine initDalai Felinto
This was introduced in the original implementation of weightpaint in 2.8 (20f95de6ba2d). But this is very shortsighted, we can't assume only one object will be edited at once, nor should we tag things during drawing. There is a chance this introduces "bugs". If it does, we then tackle them in the proper way (usually tagging DEG after operators changing the weight paint data).
2018-08-23Rename: *_batch_cache_dirty > *_batch_cache_dirty_tagDalai Felinto
2018-08-08Fix missing uniform for vert/weight/texture paintCampbell Barton
Entering any of these modes would assert immediately.
2018-07-18GWN: Port to GPU module: Replace GWN prefix by GPUClément Foucault
2018-07-04Weight Paint: draw from original meshCampbell Barton
Selection changes weren't showing.
2018-06-22PaintMode: Full Shading Boolean => SliderJeroen Bakker
There was a Full Shading bool that was shared across the WP, VP and TP modes. This commit makes some changes: - Replace the bool with a factor. This gives the user more control on the visibility. - Also draw it on top of the Material and Rendered mode so the user can control what he needs. In certain cases you don't want to see the final rendered material, but the actual texture. - Removed the skipping of objects when in paint modes. As now the paint modes are blended.
2018-05-20DRW: Rename some DRW_STATE_* for more consistency.Clément Foucault
2018-05-053D Viewport: move overlay settings from collections to 3D viewport.Brecht Van Lommel
For some we may add per object overrides, but for most we plan to keep them strictly per viewport settings. Display settings from the mesh still need to be moved here, only collections were done to remove that code.
2018-04-30Workbench: Integration VertexPaint and WeightPaint modesJeroen Bakker
- Disable VertexPaint and WeightPaint for OB_MATERIAL and OB_RENDER. Users want to see the final result - When in OB_SOLID, the active object should be rendered without any color. The lighting information is multiplied with the VertexPaint/WeightPaint color - Removed the use_shading flag from VertexPaint and WeightPaint - add method to check if render engine should draw without color (DRW_object_in_only_lighting_mode) Reviewers: fclem Tags: #code_quest Maniphest Tasks: T54894 Differential Revision: https://developer.blender.org/D3191
2018-01-30DRW / Render: Add support for render pipeline in drawmanager.Clément Foucault
For simplicity we choose to execute the rendering of Opengl engines in the main thread and block the interface. This might be addressed in the future at least for video rendering. A drawmanager wrapper (DRW_render_to_image) is called by the render pipeline to set up the Opengl state and then call the specific draw_engine->render_to_image function.
2018-01-17Revert "Fix use-after free in DRW_shader_create_with_lib"Campbell Barton
Caused an error entering edit-mode. d60f26f37a & 2659500835
2018-01-17DRW: Codestyle refactor: Use macro to create shader libs.Clément Foucault
This clears up the code from many DynStr usage. Easier to read.
2017-09-25DRW : Add new view_update mechanism.Clément Foucault
This makes updates for the viewport cleaner and also add the possibility to add a new callback called when the scene is updated.
2017-08-22Cleanup: naming for mesh dirty flagsCampbell Barton
- NOCHECK -> ALL - ALL -> MAYBE_ALL Where 'MAYBE_ALL' checks to see if the mesh has changed. This is clearer that `BKE_MESH_BATCH_DIRTY_ALL` is dirty and going to be updated without any guess-work.
2017-07-14DwM: Show face-mask overlay even with full-shadingCampbell Barton
Without this face selection would be used but invisible, display this over fully shaded surface.
2017-06-26Fix T51559: Update draw cache when changing flat/smooth shadingLuca Rood
This also renames some flags/variables to be more generic for updating purposes. The call used here was previously only used for updating paint data, but as it was reused here, flags and variables were renamed to accomodate more clearly to the new usages.
2017-06-19Gawain API naming refactorCampbell Barton
Use consistent prefix for gawain API names as well as some abbreviations to avoid over-long names, see: D2678
2017-05-17Cleanup: line lengthCampbell Barton
2017-05-17DWM: minor changes to face-flag useCampbell Barton
2017-05-17DWM: use DRWContextState.obactCampbell Barton
2017-05-05Pass selection to weight paint vert overlay instead of colorsLuca Rood
2017-05-05Implement overridable scene render settingsDalai Felinto
This add a new set of (possible) render settings that can be defined at the scene level and overridable at the scene layer level. Once we get workspaces we can either add workspace inbetween scene and scene layer evaluation. Or to replace layer settings, to avoid extra confusion to users. An example of this setting is "samples", as implemented now for the clay engine.
2017-05-05Clean up weight/vertex painting codeLuca Rood
Now passing selection state instead of colors for the wire/face mask overlay thing. Also added masking indication on the faces in vertex paint.
2017-05-04Vertex paint with draw managerLuca Rood
Reviewers: fclem Subscribers: campbellbarton, dfelinto Differential Revision: https://developer.blender.org/D2658
2017-05-03Fix building on Windows and blenderplayer linking after weightpaint engineDalai Felinto
Those problems were introduced on 20f95de6ba2d32dcff553251ff4de2efd5b76955.