Shrinkwrap modifier does not work with multiple scenes and VSE #42658

Closed
opened 2014-11-20 08:44:25 +01:00 by Benoit ROUSSELLE · 10 comments

System Information
Debian GNU/Linux jessie (8/testing)

Blender Version
Broken: 2.72b 9e963ae

Short description of error
using shrinkwrap modifier to hide/reveal text object in a single scene works as expected.
using previous scene by importing it in VSE in another scene does not work in 2 cases:

  • when trying to render in batch mode
  • when opening the file and try to render without viewing the HideReveal scene.
    Please check details below as it does work again in interactive mode if you view the scene and refresh the sequencer.

Exact steps for others to reproduce the error
Please see attached file for the example.
Description of the setup:

  • loaded factory settings
  • 2 scenes:
    • "HideRevealText" : short animation with text that has Shrinkwrap modifier applied. Plane rendering is disabled outliner view
    • "Scene": we import HideRevealText scene in VSE.

When you do all this for the first time, everything works as expected in scene "Scene"
Now you save and close the file.

With the example file:

  • Open it and try to render at current frame (15) (without doing anything else !): you see the bug, as full text object is displayed.
  • Go to "HideRevealText" scene, come back to "Scene" scene, refresh sequencer: bug as disappeared. Move cursor: you see the right animation.
  • batch mode bugs: blender -b bugShrinkwrapMod.blend -F PNG -s 15 -e 15 -a

I have also tried to not use the "disable rendering Plane" in the outliner by using the layers + node compositing, but the result is the same.
I can provide the file if this is usefull.

Thanks a lot, blender is such a wonderfull piece of software !!
Cheers,
Benoit.bugShrinkwrapMod.blend

**System Information** Debian GNU/Linux jessie (8/testing) **Blender Version** Broken: 2.72b 9e963ae **Short description of error** using shrinkwrap modifier to hide/reveal text object in a single scene works as expected. using previous scene by importing it in VSE in another scene does not work in 2 cases: - when trying to render in batch mode - when opening the file and try to render without viewing the HideReveal scene. Please check details below as it does work again in interactive mode if you view the scene and refresh the sequencer. **Exact steps for others to reproduce the error** Please see attached file for the example. Description of the setup: - loaded factory settings - 2 scenes: - "HideRevealText" : short animation with text that has Shrinkwrap modifier applied. Plane rendering is disabled outliner view - "Scene": we import HideRevealText scene in VSE. When you do all this for the first time, everything works as expected in scene "Scene" Now you save and close the file. With the example file: - Open it and try to render at current frame (15) (without doing anything else !): you see the bug, as full text object is displayed. - Go to "HideRevealText" scene, come back to "Scene" scene, refresh sequencer: bug as disappeared. Move cursor: you see the right animation. - batch mode bugs: blender -b bugShrinkwrapMod.blend -F PNG -s 15 -e 15 -a I have also tried to not use the "disable rendering Plane" in the outliner by using the layers + node compositing, but the result is the same. I can provide the file if this is usefull. Thanks a lot, blender is such a wonderfull piece of software !! Cheers, Benoit.[bugShrinkwrapMod.blend](https://archive.blender.org/developer/F124996/bugShrinkwrapMod.blend)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @BenoitROUSSELLE

Added subscriber: @BenoitROUSSELLE

Sorry forgot to say i use Intel HD4000 card.

Sorry forgot to say i use Intel HD4000 card.

Added subscriber: @Psy-Fi

Added subscriber: @Psy-Fi

Confirmed, looking into it

Confirmed, looking into it
Antonis Ryakiotakis self-assigned this 2014-11-20 11:35:39 +01:00

Added subscriber: @Sergey

Added subscriber: @Sergey

Alright, I've spent a good part of the day looking at this. So looks like the reason this fails is that the derived mesh of the plane won't get calculated and thus the text object won't have a valid derivedmesh to intersect against. Easy workaround for the reporter here is to just reenable the render flag for the plane, so the plane mesh but this won't fix the underlying issue of course.

To fix this I need @Sergey's expertise again (sorry for the constant nagging but DAG is really new code to me). Basically, as far as I have seen, on file load, the objects of the current scene will get tagged for update at least once in DAG_on_visible_update, so they all get their derived meshes calculated at least once. For scenes referenced in the sequencer, this doesn't occur, so it's possible to get invalid derived meshes, such as in this case. Forcing drawing like above works here, but the calculation of the derived mesh in time for the other modifier depends on order of drawing so it's not a very good workaround.

What we could do, is make dag_current_scene_layers also include any scenes that are referenced on sequencer strips but that may have performance or other implications. Other solution is to just do that with a specialized function on file load, which only takes updates the sequencer objects just once.

Alright, I've spent a good part of the day looking at this. So looks like the reason this fails is that the derived mesh of the plane won't get calculated and thus the text object won't have a valid derivedmesh to intersect against. Easy workaround for the reporter here is to just reenable the render flag for the plane, so the plane mesh but this won't fix the underlying issue of course. To fix this I need @Sergey's expertise again (sorry for the constant nagging but DAG is really new code to me). Basically, as far as I have seen, on file load, the objects of the current scene will get tagged for update at least once in DAG_on_visible_update, so they all get their derived meshes calculated at least once. For scenes referenced in the sequencer, this doesn't occur, so it's possible to get invalid derived meshes, such as in this case. Forcing drawing like above works here, but the calculation of the derived mesh in time for the other modifier depends on order of drawing so it's not a very good workaround. What we could do, is make dag_current_scene_layers also include any scenes that are referenced on sequencer strips but that may have performance or other implications. Other solution is to just do that with a specialized function on file load, which only takes updates the sequencer objects just once.

Dear Antony,

Thanks for the investigation, and the workaround !

Benoit.

Dear Antony, Thanks for the investigation, and the workaround ! Benoit.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

@Psy-Fi, using current DAG_on_visible_update would only solve situations just after loading the file. If you'll start switching scenes, layers etc and going back to VSE it's still really simple to run into situation when objects needed for visualization wouldn't get updated.

I wouldn't consider this a bug for now, it's a TODO to be handled by the depsgraph_refactor branch.

@Psy-Fi, using current DAG_on_visible_update would only solve situations just after loading the file. If you'll start switching scenes, layers etc and going back to VSE it's still really simple to run into situation when objects needed for visualization wouldn't get updated. I wouldn't consider this a bug for now, it's a TODO to be handled by the depsgraph_refactor branch.
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#42658
No description provided.