Shrinkwrap constraint causes geometry to lag #51493

Closed
opened 2017-05-14 14:28:53 +02:00 by KiJeon · 9 comments

Blender Version
Broken: 2.78

Short description of error
I'm developing a humanoid rig and I have the shrinkwrap constraint on various bones for the eyebrows, mouth, and eyelids. The shrinkwrap constraints on the eyebrows and mouth target one object ("Surface1"), and the ones for the eyelids target another ("Surface2").

The problem: When I move around a parent bone, the eyebrows and mouth parts of the geometry are fine, but the eyelids lag..

As a test, if I replace the eyelid shrinkwrap targets from Surface2 to Surface1 (the target for the eyebrows and mouth), it works fine. So initially, I assumed there's some object setting difference causing the problem, but strangely, if I just duplicate Surface1 and have the eyelid shrinkwraps to target the Surface1 duplicate, it lags again.

Problem file: ShrinkwrapLag.blend
Try rotating the selected bone and the problem should be apparent right away.
The surface geometries are on layer 2.

**Blender Version** Broken: 2.78 **Short description of error** I'm developing a humanoid rig and I have the shrinkwrap constraint on various bones for the eyebrows, mouth, and eyelids. The shrinkwrap constraints on the eyebrows and mouth target one object ("Surface1"), and the ones for the eyelids target another ("Surface2"). The problem: When I move around a parent bone, the eyebrows and mouth parts of the geometry are fine, but the eyelids lag.. As a test, if I replace the eyelid shrinkwrap targets from Surface2 to Surface1 (the target for the eyebrows and mouth), it works fine. So initially, I assumed there's some object setting difference causing the problem, but strangely, if I just duplicate Surface1 and have the eyelid shrinkwraps to target the Surface1 duplicate, it lags again. Problem file: [ShrinkwrapLag.blend](https://archive.blender.org/developer/F598389/ShrinkwrapLag.blend) Try rotating the selected bone and the problem should be apparent right away. The surface geometries are on layer 2.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @0o00o0oo

Added subscriber: @0o00o0oo

Added subscriber: @zeauro

Added subscriber: @zeauro

By adding an armature modifier to Surface objects used by constraints of bones of same armature, you create a dependency cycle difficult to handle.

There is a simple solution. Do not force checking for surfaces deformations. Uses Head bone as parent of surfaces and delete their armature modifier.

It should be sufficient to avoïd the lag.

By adding an armature modifier to Surface objects used by constraints of bones of same armature, you create a dependency cycle difficult to handle. There is a simple solution. Do not force checking for surfaces deformations. Uses Head bone as parent of surfaces and delete their armature modifier. It should be sufficient to avoïd the lag.

Added subscriber: @Sergey

Added subscriber: @Sergey

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sergey Sharybin self-assigned this 2017-05-15 10:44:50 +02:00

As @zeauro already explained, there is a real dependency cycle in your setup. having lag of some sort in such setup in inevitable.

Tweak your settings so you don't run into dependency cycle, that is the only solution here.

As @zeauro already explained, there is a real dependency cycle in your setup. having lag of some sort in such setup in inevitable. Tweak your settings so you don't run into dependency cycle, that is the only solution here.
Author

@zeauro Thanks, that worked like a charm! I'm actually a little disappointed that I didn't think of that myself.

Aside from the solution, I do think it's a strange behavior that Surface1 causes no lag even though it should be causing the exact same dependency cycle.
Stranger still, just duplicate it and Surface1.001 will now cause a lag.

Does this look like a bug?

@zeauro Thanks, that worked like a charm! I'm actually a little disappointed that I didn't think of that myself. Aside from the solution, I do think it's a strange behavior that Surface1 causes no lag even though it should be causing the exact same dependency cycle. Stranger still, just duplicate it and Surface1.001 will now cause a lag. Does this look like a bug?

As long as the system reports dependency cycle (the only place to check that currently is the system console) then lag is not a bug. If there is a lag and no dependency cycles reported in the console it's a bug.

As long as the system reports dependency cycle (the only place to check that currently is the system console) then lag is not a bug. If there is a lag and no dependency cycles reported in the console it's a bug.
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
3 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#51493
No description provided.