Control Mesh Only Partially Drawn After Filling a Surface From a Cage of Surface Curves #79580

Closed
opened 2020-08-06 11:53:06 +02:00 by Garry R. Osgood · 10 comments

System Information
Operating system: Linux 5.4.38-gentoo-gwen #1 SMP Wed May 27 04:32:46 EDT 2020 x86_64 Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz GenuineIntel GNU/Linux
Graphics card: Intel Corporation 3rd Gen Core processor Graphics Controller
system-info.txt

Blender Version

  • First Broken Version (from git bisect): bf8b62e874
    • Author: Campbell Barton ideasman42@gmail.com
    • Date: Mon Jun 15 15:28:51 2020 +1000
    • Title: Fix curve handle color ID display
  • Last Good Version (from git bisect): 24d77e7db7
    • Author: Tobias Heinke
    • Date: Sun Jun 14 19:14:26 2020 -0400
    • Title: API docs: mathutils leaked markup
  • Also Broken: Current 2.90 Beta, branch: master, commit date: 2020-08-05 21:36, hash: c5b6b3d82f, type: Release

Looks like the real culprit is 49f59092e7 see my comment #79580#997407?

  • Known to be good: 2.83.4 Long Term Release

Short description of error
After lofting a set of surface curves, the control mesh is only partially drawn. This is a papercut: proceeding to edit the mesh results in the complete drawing of control meshes.
Exact steps for others to reproduce the error

  • Add a set of surface curves with the aim of lofting a surface. Ensure the surface curves are joined into a single object
  • With the object selected, enter into edit mode (TAB) and select the entire cage. See Figure F8751637
    Screenshot at 2020-08-05 17-14-09.png
  1. Alternatively, open surfacecage.blend and find the object SurfCurve selected, in edit mode, and with all surface curves in the cage selected.
    surfacecage.blend
  2. Press {key F} to fill the surface in. Observe that the surface is complete, but only parts of the control mesh are drawn. See Figure 8751682
    Screenshot at 2020-08-05 17-14-27.png
  3. With the current 2.83.4 Long term release and the Last Good Version, the control mesh is fully drawn. See Figure 8751697
    Screenshot at 2020-08-05 17-19-14.png
**System Information** Operating system: Linux 5.4.38-gentoo-gwen #1 SMP Wed May 27 04:32:46 EDT 2020 x86_64 Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz GenuineIntel GNU/Linux Graphics card: Intel Corporation 3rd Gen Core processor Graphics Controller [system-info.txt](https://archive.blender.org/developer/F8751573/system-info.txt) **Blender Version** - First Broken Version (from git bisect): bf8b62e874 - Author: Campbell Barton <ideasman42@gmail.com> - Date: Mon Jun 15 15:28:51 2020 +1000 - Title: Fix curve handle color ID display - Last Good Version (from git bisect): 24d77e7db7 - Author: Tobias Heinke <TobiasH> - Date: Sun Jun 14 19:14:26 2020 -0400 - Title: API docs: mathutils leaked markup - Also Broken: Current 2.90 Beta, branch: master, commit date: 2020-08-05 21:36, hash: c5b6b3d82f56, type: Release Looks like the real culprit is 49f59092e7 see my comment #79580#997407? - Known to be good: 2.83.4 Long Term Release **Short description of error** After lofting a set of surface curves, the control mesh is only partially drawn. This is a papercut: proceeding to edit the mesh results in the complete drawing of control meshes. **Exact steps for others to reproduce the error** - Add a set of surface curves with the aim of lofting a surface. Ensure the surface curves are joined into a single object - With the object selected, enter into edit mode (TAB) and select the entire cage. See Figure **[F8751637](https://archive.blender.org/developer/F8751637/Screenshot_at_2020-08-05_17-14-09.png)** ![Screenshot at 2020-08-05 17-14-09.png](https://archive.blender.org/developer/F8751637/Screenshot_at_2020-08-05_17-14-09.png) 3. Alternatively, open **surfacecage.blend** and find the object **SurfCurve** selected, in edit mode, and with all surface curves in the cage selected. [surfacecage.blend](https://archive.blender.org/developer/F8751668/surfacecage.blend) 4. Press {key F} to fill the surface in. Observe that the surface is complete, but only parts of the control mesh are drawn. See Figure **8751682** ![Screenshot at 2020-08-05 17-14-27.png](https://archive.blender.org/developer/F8751682/Screenshot_at_2020-08-05_17-14-27.png) 5. With the current 2.83.4 Long term release and the Last Good Version, the control mesh is fully drawn. See Figure **8751697** ![Screenshot at 2020-08-05 17-19-14.png](https://archive.blender.org/developer/F8751697/Screenshot_at_2020-08-05_17-19-14.png)

Added subscriber: @grosgood

Added subscriber: @grosgood

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

Added subscribers: @ideasman42, @mano-wii

Added subscribers: @ideasman42, @mano-wii

This is a papercut: proceeding to edit the mesh results in the complete drawing of control meshes.

A nurbs surface object may contain any number of disjoint surfaces. In that setting, there is a need to distinguish the active surface from inactive: the somewhat thicker-lined, pink and orange "theme" usually seen exclusively when editing single-cage surfaces, the run-of-the-mill case, is the "active" theme. It is the inactive theme that is only being partially drawn. In light of these two themes, I think I mis-spoke: this is somewhat more than a papercut, but quite less than fatal.

surfacecage_multispline.blend

surfacecage_multispline.blend contains two disjoint surfaces. An approach to this bug may be to align the rendering of the "defective" theme with that which works quite well. I find this a more useful test file than the one I originally submitted because it is easy to select one, then the other cage and examine how the good theme operates with respect to the bad. That is the approach to this I'll take this weekend, as I tentatively wrap my head around this one.

> This is a **papercut:** proceeding to edit the mesh results in the complete drawing of control meshes. A nurbs surface object may contain any number of disjoint surfaces. In that setting, there is a need to distinguish the active surface from inactive: the somewhat thicker-lined, pink and orange "theme" usually seen exclusively when editing single-cage surfaces, the run-of-the-mill case, is the "active" theme. It is the inactive theme that is only being partially drawn. In light of these two themes, I think I mis-spoke: this is somewhat more than a papercut, but quite less than fatal. [surfacecage_multispline.blend](https://archive.blender.org/developer/F8773068/surfacecage_multispline.blend) **surfacecage_multispline.blend** contains two disjoint surfaces. An approach to this bug may be to align the rendering of the "defective" theme with that which works quite well. I find this a more useful test file than the one I originally submitted because it is easy to select one, then the other cage and examine how the good theme operates with respect to the bad. That is the approach to this I'll take this weekend, as I tentatively wrap my head around this one.
Member

Added subscribers: @fclem, @antoniov, @lichtwerk

Added subscribers: @fclem, @antoniov, @lichtwerk
Member

Looks like the real culprit is {49f59092e7}?

I dont see how returning early here can work?
https://developer.blender.org/diffusion/B/browse/master/source/blender/draw/engines/overlay/shaders/edit_curve_handle_geom.glsl$62
(I dont get why we need to return early in case of a v-segment here)

We will never reach this then
https://developer.blender.org/diffusion/B/browse/master/source/blender/draw/engines/overlay/shaders/edit_curve_handle_geom.glsl$88

Probably there were two bugs in 49f59092e7, one that was hiding this one [that was fixed by 49f59092e7], so that this now shows.

CC @antoniov
CC @fclem

Marking as High prio since it is a regression

Looks like the real culprit is {49f59092e7}? I dont see how returning early here can work? https://developer.blender.org/diffusion/B/browse/master/source/blender/draw/engines/overlay/shaders/edit_curve_handle_geom.glsl$62 (I dont get why we need to return early in case of a v-segment here) We will never reach this then https://developer.blender.org/diffusion/B/browse/master/source/blender/draw/engines/overlay/shaders/edit_curve_handle_geom.glsl$88 Probably there were two bugs in 49f59092e7, one that was hiding this one [that was fixed by 49f59092e7], so that this now shows. CC @antoniov CC @fclem Marking as High prio since it is a regression

Proposed fix in D8600

Proposed fix in [D8600](https://archive.blender.org/developer/D8600)

D8600 plays here. Using surfacecage_multispline.blend
Screenshot at 2020-08-17 16-48-56.png

[D8600](https://archive.blender.org/developer/D8600) plays here. Using **surfacecage_multispline.blend** ![Screenshot at 2020-08-17 16-48-56.png](https://archive.blender.org/developer/F8789211/Screenshot_at_2020-08-17_16-48-56.png)

This issue was referenced by 567e333ea4

This issue was referenced by 567e333ea47c3a0712e6e34e34029df51822d408

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Antonio Vazquez self-assigned this 2020-08-18 09:52:32 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#79580
No description provided.