multires modifier: adjusting mesh at lower sculpt levels of subdivision adds polygonal artifacts to higher sculpt levels. #69433

Closed
opened 2019-09-03 04:13:08 +02:00 by Bay Raitt · 17 comments

System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce GTX 980/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.07

Blender Version
Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: f6cb5f5449
Worked: (optional)

when changing mulitres sculpt levels higher, the higher resolution mesh details are not recalculated correctly.

steps:
create a cube
add multires modifier
subdiv 6 times.
Set sculpt level to 6.
sculpt details
reduce sculpt level to 2
adjust with grab brush.
Set sculpt level to 6
bug here:
notice polygonal artifacts have destroyed details.

hunch:
looks like it's not calculating the higher resolution details relative to the limit catmull clark subdiv and is just using simple subdivision stored in object space without any relative wavelet compression at each subdivision.

multri_res_bug2.gif

multri_res_subd_bug.gif

(this fast resolution switcher addon I wrote highlights the problem even more)
https://gumroad.com/l/subd_navigator

**System Information** Operating system: Windows-10-10.0.18362 64 Bits Graphics card: GeForce GTX 980/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.07 **Blender Version** Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: `f6cb5f5449` Worked: (optional) when changing mulitres sculpt levels higher, the higher resolution mesh details are not recalculated correctly. steps: create a cube add multires modifier subdiv 6 times. Set sculpt level to 6. sculpt details reduce sculpt level to 2 adjust with grab brush. Set sculpt level to 6 bug here: notice polygonal artifacts have destroyed details. hunch: looks like it's not calculating the higher resolution details relative to the limit catmull clark subdiv and is just using simple subdivision stored in object space without any relative wavelet compression at each subdivision. ![multri_res_bug2.gif](https://archive.blender.org/developer/F7714710/multri_res_bug2.gif) ![multri_res_subd_bug.gif](https://archive.blender.org/developer/F7714709/multri_res_subd_bug.gif) (this fast resolution switcher addon I wrote highlights the problem even more) https://gumroad.com/l/subd_navigator
Author

Added subscriber: @spiraloid-3

Added subscriber: @spiraloid-3
Author

hitting apply base on subdivided cube after modifying lowest and highest levels of subdivision is producing odd artifacts too.

image.png

hitting apply base on subdivided cube after modifying lowest and highest levels of subdivision is producing odd artifacts too. ![image.png](https://archive.blender.org/developer/F7714728/image.png)
Author

on further reflection, I think I made be misunderstanding the intended behaviour of multi-res. I was expecting it to behave like open subdiv (i.e. pixar, zbrush, maya etc)
http://graphics.pixar.com/opensubdiv/docs/release_34.html

with a hierarchical subdiv relationship between different levels of subdivision. the existence of the the Apply Base button makes me realize that this is not the case.

on further reflection, I think I made be misunderstanding the intended behaviour of multi-res. I was expecting it to behave like open subdiv (i.e. pixar, zbrush, maya etc) http://graphics.pixar.com/opensubdiv/docs/release_34.html with a hierarchical subdiv relationship between different levels of subdivision. the existence of the the Apply Base button makes me realize that this is not the case.
Author

looks to still be a problem in

blender-2.81-d74cc6c08c42-win64

image.png

image.png

hunch:
looks like it's not calculating the higher resolution details relative to the limit catmull clark subdiv and is just using and edgewise linear subdivision to store the higher levels of detail offsets. This means it's not doing relative wavelet compression at each subdivision level and each successive subdivision is being stored relative to the faces, instead of relative to the limit surface of the subd... which would explain the polygonal looking artifacts on the dense mesh.

I think the solution is that each time the sculpt_level decreases, the lower resolution cage needs to be adjusted so that it's limit surface fits the current surface. then the surface details need to be recalculated and stored in tangent space relative to the lower level's limit surface. Then to correctly the sculpt modifications from a lower level, a new limit surface gets calculated and the higher detail level's surface offsets are applied in tangent space relative to the new limit surface....

looks to still be a problem in blender-2.81-d74cc6c08c42-win64 ![image.png](https://archive.blender.org/developer/F7714899/image.png) ![image.png](https://archive.blender.org/developer/F7715098/image.png) hunch: looks like it's not calculating the higher resolution details relative to the limit catmull clark subdiv and is just using and edgewise linear subdivision to store the higher levels of detail offsets. This means it's not doing relative wavelet compression at each subdivision level and each successive subdivision is being stored relative to the faces, instead of relative to the limit surface of the subd... which would explain the polygonal looking artifacts on the dense mesh. I think the solution is that each time the sculpt_level decreases, the lower resolution cage needs to be adjusted so that it's limit surface fits the current surface. then the surface details need to be recalculated and stored in tangent space relative to the lower level's limit surface. Then to correctly the sculpt modifications from a lower level, a new limit surface gets calculated and the higher detail level's surface offsets are applied in tangent space relative to the new limit surface....

Added subscriber: @item412

Added subscriber: @item412
Author

After looking at it it a bit more, it looks like these issues are all because multires was not implemented as a conventional hierarchical subdiv and is instead storing the vertices relative to the edgewise linear interpolation of the parent level subdivision. it's also not adjusting the parent's cage vertice positions during level switching and instead only does a reshape when choosing "apply base" instead of on each level switch.

more info here:

https://renderman.pixar.com/resources/RenderMan_20/hierarchsubdiv.html

After looking at it it a bit more, it looks like these issues are all because multires was not implemented as a conventional hierarchical subdiv and is instead storing the vertices relative to the edgewise linear interpolation of the parent level subdivision. it's also not adjusting the parent's cage vertice positions during level switching and instead only does a reshape when choosing "apply base" instead of on each level switch. more info here: https://renderman.pixar.com/resources/RenderMan_20/hierarchsubdiv.html

Added subscriber: @ErickNyanduKabongo

Added subscriber: @ErickNyanduKabongo

Multires. has to be rewritten. Please Devs do something :(

Multires. has to be rewritten. Please Devs do something :(

Added subscriber: @AlRedd-3

Added subscriber: @AlRedd-3

Added subscriber: @Xorrito

Added subscriber: @Xorrito

Added subscriber: @AntoineRol

Added subscriber: @AntoineRol

Added subscriber: @unumex-4

Added subscriber: @unumex-4

Added subscriber: @PetterLundh

Added subscriber: @PetterLundh

Added subscriber: @tux21b

Added subscriber: @tux21b

Added subscriber: @TheRedWaxPolice

Added subscriber: @TheRedWaxPolice

Looks like it should be merged to studio/blender-studio#58473

Looks like it should be merged to studio/blender-studio#58473
Member

Closed as duplicate of studio/blender-studio#58473

Closed as duplicate of studio/blender-studio#58473
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
11 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#69433
No description provided.