Regression: Surface Deform modifier bind to object with different viewport/render subdiv level will be buggy when rendering #108104

Open
opened 2023-05-20 15:04:16 +02:00 by himisa · 0 comments
Contributor

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 528.49

Blender Version
Broken: version: 3.3.0 Alpha, branch: master, commit date: 2022-06-22 08:45, hash: rBdf2ab4e758c7
Worked: version: 3.2.0, branch: master, commit date: 2022-06-08 10:22, hash: rBe05e1e369187

Short description of error
If object A has a subdiv modifier with different level for viewport/render, and object B has a SurfaceDeform modifier that bind to A.

When A is deforming in viewport, B will also deform normally in viewport. However in rendered result, B will become chaotic. Clearly the 'bind' option in B's SurfaceDeform modifier remembers A's vertices that subdived for levels of viewport setting, but when rendering, A will be subdived for levels of render setting, and have a different number of vertices, making B's bind invalid.

Any other modifiers with bind option, e.g. MeshDeform, may also suffer from this.

I wonder if this can be fixed. Two possible solutions:

  1. for every subdiv step, add additional vertices at the end of original vertices. So the original vertices will remain index unchanged, and the bind may work as well.
  2. When rendering, check if render subdiv level != viewport subdiv level, and always use viewport subdiv level for binding of any other modifiers. The render subdiv level should only affect render visual effect. Maybe an option for this can present in subdiv modifier, if this change may introduce incompatibility issues.

Exact steps for others to reproduce the error
Following above information, reproduce should be easy. However, an example .blend file is provided.

  1. open example.blend. This file contains a surface with subdiv level 2/5 for viewport/render and a torus with SurfaceDeform bind to it.
  2. F12/render and see the torus go bad.
**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 528.49 **Blender Version** Broken: version: 3.3.0 Alpha, branch: master, commit date: 2022-06-22 08:45, hash: `rBdf2ab4e758c7` Worked: version: 3.2.0, branch: master, commit date: 2022-06-08 10:22, hash: `rBe05e1e369187` **Short description of error** If object A has a subdiv modifier with different level for viewport/render, and object B has a SurfaceDeform modifier that bind to A. When A is deforming in viewport, B will also deform normally in viewport. However in rendered result, B will become chaotic. Clearly the 'bind' option in B's SurfaceDeform modifier remembers A's vertices that subdived for levels of viewport setting, but when rendering, A will be subdived for levels of render setting, and have a different number of vertices, making B's bind invalid. Any other modifiers with bind option, e.g. MeshDeform, may also suffer from this. I wonder if this can be fixed. Two possible solutions: 1. for every subdiv step, add additional vertices at the end of original vertices. So the original vertices will remain index unchanged, and the bind may work as well. 2. When rendering, check if render subdiv level != viewport subdiv level, and always use viewport subdiv level for binding of any other modifiers. The render subdiv level should only affect render visual effect. Maybe an option for this can present in subdiv modifier, if this change may introduce incompatibility issues. **Exact steps for others to reproduce the error** Following above information, reproduce should be easy. However, an example .blend file is provided. 1. open example.blend. This file contains a surface with subdiv level 2/5 for viewport/render and a torus with SurfaceDeform bind to it. 2. F12/render and see the torus go bad.
himisa added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-05-20 15:04:16 +02:00
Iliya Katushenock added the
Interest
Modeling
Interest
Modifiers
Interest
Render & Cycles
labels 2023-05-20 16:46:32 +02:00
Iliya Katushenock changed title from SurfaceDeform modifier bind to object with different viewport/render subdiv level will be buggy when rendering to Regression: Surface Deform modifier bind to object with different viewport/render subdiv level will be buggy when rendering 2023-05-20 17:15:50 +02:00
Iliya Katushenock added
Module
Modeling
Status
Confirmed
and removed
Status
Needs Triage
Interest
Modeling
labels 2023-05-20 17:16:04 +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
1 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#108104
No description provided.