Page MenuHome

Overlay: 3D Printing
ClosedPublic

Authored by Jeroen Bakker (jbakker) on Apr 19 2019, 2:49 PM.

Details

Summary

Enabling the drawing of the mesh analysis layers.
Currently the settings are part of the scene. What somehow makes sense, but does not fit well with the blender 2.80 overlays
but makes it not possible to draw a multiple mesh analysis at the same time.

I also did not spend time in optimizing/cleaning up the CPU based color determination. This is something we could do in a later patch.

Diff Detail

Repository
rB Blender
Branch
T63680 (branched from master)
Build Status
Buildable 3386
Build 3386: arc lint + arc unit

Event Timeline

Harbormaster completed remote builds in B3382: Diff 14823.
source/blender/draw/intern/draw_cache_impl_mesh.c
5259

Seems like a copy paste error. will remove

source/blender/draw/modes/edit_mesh_mode.c
541

Remove comment

697

remove comment

@Clément Foucault (fclem) can you take a special look into the naming convention inside the draw_cache?

Jeroen Bakker (jbakker) edited the summary of this revision. (Show Details)

Code style + cleanup

source/blender/draw/modes/shaders/edit_mesh_overlay_mesh_analysis_vert.glsl
21

Hmmm.... This is unused for now... Should test.

Brecht Van Lommel (brecht) requested changes to this revision.EditedApr 19 2019, 3:09 PM

It appears to be broken when using a subsurf modifier, both edit cage on and off have issues. In 2.79 it doesn't display any overlay colors in that case, which is ok as far as bringing back the functionality for 2.80. But we should avoid colors being on random faces as it is now.

Otherwise seems to be working well.

This revision now requires changes to proceed.Apr 19 2019, 3:09 PM

Don't show overlay when an modifiers are enabled in edit mode

source/blender/draw/intern/draw_cache.h
62

Not sure how relevant this is since we won't support other object type.

source/blender/draw/intern/draw_cache_impl_mesh.c
1914

If data is per loop use loop_ prefix

1962

Use edit_mesh_analysis instead

Jeroen Bakker (jbakker) marked 3 inline comments as done.

naming conventions in draw manager

This revision is now accepted and ready to land.Apr 25 2019, 11:14 AM
This revision was automatically updated to reflect the committed changes.