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
2020-03-06CodeCleanup: Use eDrawTypeJeroen Bakker
This patch will make use of the eDrawType where it was used as a variable or parameter name. The eObjectDrawType was renamed to eDrawType as it is also used by `View3DShading.type`.
2020-03-06Cleanup: use 'BKE_' prefix for BKE_deform API callsCampbell Barton
- Use 'BKE_object_defgroup' prefix for object functions. - Rename 'defvert_verify_index' to 'defvert_ensure_index' since this adds the group if it isn't found.
2020-03-05Sculpt Face SetsPablo Dobarro
Face Sets are the new system to control the visibility state of the mesh in sculpt and paint modes. They are designed to work in modes where brushes are the primary way of interaction and they provide much more control when working with meshes with complex shapes and overlapping surfaces. This initial commit includes: - Sculpt Face Sets data structures and PBVH rendering. - Face Set overlay and opacity controls. - Sculpt Undo support. - Remesher reprojection support. The visibility state of the mesh is also preserved when remeshing. - Automasking and Mesh filter support. - Mask expand operator mode to expand Face Sets (Shift + W) and flood fill areas by connectivity (press Ctrl while expanding). - Sculpt Mode Face Sets and Visibility API. - Sculpt Face Sets creation and visibility management operators. - Operator to randomize the Face Sets colors. - Draw Face Sets brush tool to create and edit the Face Sets. Drawing on the mesh creates a new Face Set. Pressing Ctrl before drawing modifies the Face Set under the brush at the beginning of the stroke. - Updated keymap and menu to work with Face Sets from Sculpt Mode (H to toggle visibility, Alt + H to show all, Shit + H to hide). - Pie menu on the W key with Face common Sets operations. Know limitations: - Multires support. The Face Sets and Visibility API needs to be implemented for Multires. Reviewed By: jbakker, #user_interface, Severin Differential Revision: https://developer.blender.org/D6070
2020-03-05Cleanup: formatting, strip trailing spaceCampbell Barton
2020-03-04Cleanup: replace CLAMP macros with functionsCampbell Barton
2020-03-03Revert "Fix T74110: EEVEE Shadow Pass"Jeroen Bakker
This reverts commit 403bb357ae2b1d2561a0d77c96035ba54c197cbd. The old implementation matches cycles closer. See T74378
2020-03-03Cleanup: formatting, spellingCampbell Barton
2020-02-28Objects: make evaluated data runtime storage usable for types other than meshBrecht Van Lommel
This is in preparation of new object types. This only changes mesh_eval, we may do the same for mesh_deform_eval and other areas in the future if there is a need for it. This previously caused a bug in T74283, that should be fixed now. Differential Revision: https://developer.blender.org/D6695
2020-02-28Revert "Objects: make evaluated data runtime storage usable for types other ↵Brecht Van Lommel
than mesh" This reverts commit f2b95b9eae2ee913c99cff7595527b18d8b49d0a. Fix T74283: modifier display lost when moving object in edit mode. The cause is not immediately obvious so better to revert and look at this carefully.
2020-02-27Cleanup: more refactoring of GPU material attributes and texturesBrecht Van Lommel
This further separates requested attributes and textures from the actual node graph, that can be retained after the graph has been compiled and freed. It makes it easier to add volume grids as a native concept, which sits somewhere between an attribute and a texture. It also adds explicit link types for UDIM tile mapping, rather than relying on fairly hidden logic.
2020-02-27Fix T74110: EEVEE Shadow PassJeroen Bakker
Shadow could penetrate occluded geometry. This patch adds a check to see if the light is in the right location to light the pixel. Reviewed By: fclem Differential Revision: https://developer.blender.org/D6918
2020-02-27Objects: make evaluated data runtime storage usable for types other than meshBrecht Van Lommel
This is in preparation of new object types. This only changes mesh_eval, we may do the same for mesh_deform_eval and other areas in the future if there is a need for it. Differential Revision: https://developer.blender.org/D6695
2020-02-25DrawEngine: Clean upJeroen Bakker
Put DefaultFramebufferList and DefaultTextureList into an own header file. These structs were private, but also used by the window manager and gpu package. The previous implementation we needed to keep these structs in sync.
2020-02-20Cleanup: declatatuons for functions that don't existCampbell Barton
2020-02-20Fix T74019 Eevee High Quality Normals causing pitch black facesClément Foucault
Was due to a mistake when removing previous code...
2020-02-20DRW: Fix facing reset when drawing with inverted cameraClément Foucault
2020-02-19DRW: Support inverted view matrixClément Foucault
We detect the case where we need to invert the facing directly inside the DRWView update and do the appropriate GL calls at draw time. Fix T63047 Camera with negative scale works only in Cycles Rendered view Fix T71352 Negative scale camera causes BLI_assert
2020-02-19DRW: New High Quality Normal & Tangent extractClément Foucault
This patch adds a dedicated path to extract 16bit normals instead of packing them into 10bits/comp. The tangents are also packed to 10bits/comp if not using the new High Quality Normal option. Fix T61024 Degraded texture shading on dense meshes Reviewed By: brecht Differential Revision: https://developer.blender.org/D6614
2020-02-18DRW: Fix wrong view transform used in solid mode if using workbench engineClément Foucault
2020-02-17Fix T73518: Normal OverlayJeroen Bakker
This change will not render the normals for faces that are hidden. Before we had instance drawing the hidden faces were registered in the index buffer. During the overlay refactoring the rendering was migrated to instance rendering. Instance rendering does not use the index buffer so the data was ignored. This patch stored the normal visibility in the .w part of the normal or for face normals it will set the normal to zero. The shader looks at this and renders the normals fully transparent when detected. Reviewed By: Clément Foucault Differential Revision: https://developer.blender.org/D6798
2020-02-15Cleanup: refactor GPU material attribute and texture requestsBrecht Van Lommel
2020-02-15Cleanup: split off code from gpu_codegen.c into smaller filesBrecht Van Lommel
2020-02-14DRW: Fix viewport render always rendering with transparent backgroundClément Foucault
2020-02-13DRW: Fix color management in material/rendered modeClément Foucault
We only do exposure/gamma if not using scene lighting
2020-02-12DRW: Fix debug drawcalls and annotation drawingClément Foucault
2020-02-11DRW: Color Management improvementClément Foucault
Reviewed By: brecht sergey jbakker Differential Revision: http://developer.blender.org/D6729
2020-02-11Cleanup: extra semicolons, comma use, undeclared varsCampbell Barton
2020-02-05Merge branch 'blender-v2.82-release'Clément Foucault
2020-02-05Fix T70121 EEVEE/GPencil: Curves cause crash when using background renderingClément Foucault
This was caused by a faulty initialization of cache->surf_per_mat which should have been empty.
2020-02-04Merge branch 'blender-v2.82-release'Julian Eisel
2020-02-04Fix T61685 Curve extrusion looses flat shading in certain viewport shadingClément Foucault
This was caused by default surface batch not using loop normals.
2020-02-04Fix T72504 EEVEE: Crash when rendering Instance Collection with hairClément Foucault
This was caused by a double free of the instance data. Remove the need of the instance data fix the issue.
2020-02-04Selection: Add conservative rasterization to select really small objectsClément Foucault
The conservative depth shader is ~4.5x slower than the normal one as it uses geometry shader and fragment shader discard. This patch also includes a hack to also fix the view parallel planar geometry and the really small wire objects. For some reason, the conservative raster fix does not work with normal selection but does with box select. This is a fix for T63356. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D6714
2020-02-04Merge branch 'blender-v2.82-release'Campbell Barton
2020-02-04Fix T73095: Edit Mode Overlay Linked MeshJeroen Bakker
When using duplicate linked meshes, objects that are not in edit-mode will be drawn as it is in edit mode, when another object with the same mesh is in edit mode. This will not be the case when one of the objects are influenced by modifiers. The change reflects more how it was done in Blender 2.79. The current change introduces a draw manager method that checks in detail who is responsible for the drawing (render engine or overlay engine). If the edit mesh is not the original or the object that is drawn doesn't draw the original mesh the object will be drawn by the render engine. Known Limitation of this patch is that the rendering outside edit mode doesn't reflect the latest changes until the user switches between object and edit mode. When there are no modifiers in use, the updating is done immediately. IMO this would be sufficient for blender 2.82, it also fixes parts of T72733. The updating of the surface batches requires more development and is post-poned for now. Reviewed By: fclem, brecht Differential Revision: https://developer.blender.org/D6737
2020-01-31Merge branch 'blender-v2.82-release'Brecht Van Lommel
2020-01-31Displist: Add mikktspace tangent space generation for DL_SURFClément Foucault
This should match mesh tangents form surfaces converted to mesh.
2020-01-30Merge branch 'blender-v2.82-release'Campbell Barton
2020-01-30Displist: Add mikktspace tangent space generation for DL_INDEX3Clément Foucault
This now matches the Mesh behavior. Surfaces and metaball implementation are yet to be implemented.
2020-01-30Merge branch 'blender-v2.82-release'Campbell Barton
2020-01-30DRW: Add support for tangent on objects using display lists.Clément Foucault
Only Metaballs are left unsupported. However, the implementation does not match 100% with cycles which converts all objects to meshes. Fixes T63424 EEVEE: Normal map node doesn't works with curve objects
2020-01-30Merge remote-tracking branch 'origin/blender-v2.82-release'Ray Molenkamp
2020-01-30Fix crash when adding modifiers to curve/surface/text objectsClément Foucault
2020-01-29Merge branch 'blender-v2.82-release'Philipp Oeser
Merge conflict in source/blender/gpu/GPU_texture.h
2020-01-29Fix T73188: RenderResult as Camera BG ImageJeroen Bakker
In blender 2.79 you could use a render result as a camera background image. This is useful during layout/compositing. During Blender 2.80 development there were 2 issues introduced that removed this feature. * to receive a render result the image required a lock. This lock wasn't passed and therefore no image was read from the result. Generating an GPUTexture from an Blender image also didn't do the locking. * the iuser->scene field wasn't set what is required for render results. This change adds an optional `ibuf` parameter to `GPU_texture_from_blender` that can be passed when available. Reviewed By: fclem, brecht Differential Revision: https://developer.blender.org/D6684
2020-01-28Merge branch 'blender-v2.82-release'Brecht Van Lommel
2020-01-28Fix T62730 Overlay: Selected edit hair points highlight is incorrectClément Foucault
This was due to the fact the drawing code was expecting the editpoints to be equaly spaced. Reuse the code in particle.c to output the select mask in red color channel of the particle (which is unused in new code).
2020-01-28Merge remote-tracking branch 'origin/blender-v2.82-release'Sybren A. Stüvel
2020-01-28Fix T72593 Blender crashes when modifier change the material countClément Foucault
Instead of changing the modifiers behavior, we make sure to always use the data->totcol instead of the ob->totcol. Also we centralize getting this number to avoid future issues. Fix T72593 Blender crashes when separating mesh Fix T72017 Crash on set visibility change
2020-01-23Merge branch 'blender-v2.82-release'Antonio Vazquez