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-07Cleanup: use post increment/decrementCampbell Barton
When the result isn't used, prefer post increment/decrement (already used nearly everywhere in Blender).
2019-06-21Fix T65745: Bone Selection X-Ray Drawing.Jeroen Bakker
The Pose Bone Selection used normal matric multiplication, but that mismatched the Depth buffer from all draw engines. They used the optimized matrices from common_view_lib. This change will use the optimized version, so the depth buffer matches and the render artifacts would be correct. Please note that bone selection is not using shcfg and therefore render clipping is still off. Reviewed By: fclem Differential Revision: https://developer.blender.org/D5100
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-17Cleanup: DRW: Remove uneeded DRWState valuesClément Foucault
This removes: - DRW_STATE_TRANS_FEEDBACK - DRW_STATE_WIRE - DRW_STATE_POINT
2019-05-14Cleanup: DRW: Remove uneeded _add suffix from DRW_shgroup_call_addClément Foucault
2019-04-26Fix T62880 Severe FPS drop with multiple bone shapesClément Foucault
Fix instancing batches not being reused by custom bone shapes. Drawing thoses is now faster than 2.79 (40fps instead of 30fps)
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-14Cleanup: doxy commentsCampbell Barton
Use doxy references to function and enums, also correct some names which became out of sync.
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-23Fix T62097 Bone transparancy not enabled when Xray enabledClément Foucault
This forces bone transparency / wireframe display when Xray is enabled. This makes sense as the bone transparency is a kind of Xray and should be linked to the Xray display.
2019-03-05Cleanup: rename RENDER_OVERRIDE -> HIDE_OVERLAYSCampbell Barton
Match the UI naming (changed since 2.7x).
2019-02-27Armature: Make selection only work on outlines in wireframe modeClément Foucault
This was not working in edit mode and broken in posemode + bounding box display type. This makes possible to select bones inside other bones.
2019-02-27Armature: Remove the Transparent Bone overlay optionClément Foucault
The option is replaced by the Wireframe mode display which (in edit & pose mode) does exactly what transparent bones did.
2019-02-27Armature: Force Transparent bone in wireframe display type/modeClément Foucault
This makes the bones transparent when the object or the viewport display type is Wireframe. This is in order to make things consistent. In object mode all bones are fully transparent to not create more visual noise if the scene is complex. Another small addition is that the Bounding Box draw mode now works as expected on armatures.
2019-02-23Cleanup: quiet undeclared variable warningCampbell Barton
Also move view_ubo into G_draw.
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-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-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-26Cleanup: draw manager headersCampbell Barton
2019-01-23Cleanup: add BEGIN/END to GPL headersCampbell 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-073D View: hide pose bones w/o overlaysCampbell Barton
Part of T58690
2018-11-23Cleanup: rename bone-select to xrayCampbell Barton
This shows bones in font and uses the xray toggle binding. Also 'bone select' isn't very meaningful on it's own.
2018-11-23Pose: make pose-bone xray usable in wpaint modeCampbell Barton
Update UI, draw-manager and operator to support with pose-bone-xray when in weight paint mode.
2018-08-22Cleanup: styleCampbell Barton
2018-08-17Armature: Add ghosting support (old x-ray)Clément Foucault
2018-07-30Armature: Fix bone always transparent when enabling MSAAClément Foucault
2018-07-18GWN: Port to GPU module: Replace GWN prefix by GPUClément Foucault
2018-07-15WM: rename manipulator to gizmo internallyCampbell Barton
2018-07-11Cleanup: simplify RNA namesCampbell Barton
2018-07-103D View: overlay option to show bonesCampbell Barton
Allows drawing motion paths without the bones.
2018-07-04Fix Pose Mode selection overlay breaking other overlay.Clément Foucault
Fix T55758
2018-06-07Bone selection: user control contrastJeroen Bakker
Experiment: let the user be in control of the alpha channel as some rigs are hard too see during bone selection. Especially rigs that were designed for 2.79 wireframe mode.
2018-05-29Missed own last commitCampbell Barton
2018-05-22Cleanup: namingCampbell Barton
Use 'ob' prefix for objects, 'eval' suffix for evaluated data.
2018-05-20DRW: Rename some DRW_STATE_* for more consistency.Clément Foucault
2018-05-20Cleanup: whitespace, duplicate includesCampbell Barton
2018-05-17T55090: Proxy bones were not selectableJeroen Bakker
- Implemented custom selection in pose mode overriding the rest. This selection mode is only done for bone selection right now
2018-05-17Remove ViewLayer settings - cleanup 1/2Dalai Felinto
2018-05-15Fix T55078: Assert statementJeroen Bakker
2018-05-11Cleanup: whitespaceCampbell Barton
2018-05-11T54983: Bone selection overlayJeroen Bakker
Bone selection overlay is only available in pose mode. and when active overrules the selection buffer. This is currently `tricked` by switching the draw engines, but this is an exception. Not sure how to solve this in a better way. After this is solved we can look at how to localize the dim effect to only the objects connected to the active armatures. Currently it dims the whole screen (including background). @campbellbarton I added you as reviewer as it you have done a lot in the DRW_draw_select_loop Reviewers: campbellbarton, fclem Reviewed By: fclem Subscribers: campbellbarton Tags: #bf_blender_2.8, #code_quest Maniphest Tasks: T54983 Differential Revision: https://developer.blender.org/D3241
2018-05-07Armature: Add new Transparent Bone overlay option.Clément Foucault
This is half the replacement of the old wireframe mode. It's not doing any XRay drawing at the moment.
2018-05-07Armature: Add back relationship lines.Clément Foucault
2018-05-07Object Mode: Use stipple shader for relationship lines.Clément Foucault
2018-05-06Armature: Add a special Pass for bone axes.Clément Foucault
In object mode, the axes are drawn like any other wire objects with depth test and depth write. Thus enabling MSAA to work but not their xray behaviour. In edit armature/pose mode, draw smooth line without depth testing. This produces wrong draw ordering problem but still gives the desired xray behaviour. We do it outside of the MSAA pass since the xray behaviour is not compatible with it. But we are drawing smoothed lines so no need for MSAA. The lines are 2px thick and improve readability.
2018-05-06Armature: Put passes in a struct easier to pass around.Clément Foucault
2018-05-02Armature: Envelope Bones: Change drawing method.Clément Foucault
We now use a more pleasant and efficient way to display enveloppe bones and their radius. For this we use a capsule geometry that is displaced (in the vertex shader) to a signed distance field that represents the bone shape. The bone distance radius are now drawn in 3D using a "pseudo-fresnel" effect. This gives a better understanding of what is inside the radius of influence. When capsules are not needed, we switch to default raytraced points. The capsules are not distorded by the bone's matrix (same as their actual influence radius) and are correctly displayed even with complex scaled parents hierarchy.