Regression: Issue with subdivision subsurface modifier and >= 8 levels #98693

Closed
opened 2022-06-08 21:40:32 +02:00 by Tupps · 10 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.95
CPU: Ryzen 5600x

Blender Version
Broken: version: 3.2.0, branch: master, commit date: 2022-06-08 10:22, hash: e05e1e3691
Worked: 3.1.2

Short description of error
So, I downloaded new 3.2 version and for some reasons I can't use Displacement shader with Subdivision Surface modifier above level 7. For example if I type value of 8 and hit render, it renders as if it's at level 0. In both Catmull-Clark and Simple mode and for both viewport and render options, CPU and GPU rendering.
But if I add some other modifier after Subdiv (Triangulate for example), it renders correctly.

Exact steps for others to reproduce the error

  • Switch render engine to Cycles
  • Add plane
  • Create a new material for it
  • In the shader tab, plug a noise texture (for example) to the displacement socket
  • In the material setting switch displacement to Displacement only
  • Add subdivision surface modifier to this plane
  • Change subdivision level to 8
  • Hit render

Blend file with first 7 steps included:
#98693.blend
Desktop 2022.06.08 - 23.30.38.03.mp4

**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.95 CPU: Ryzen 5600x **Blender Version** Broken: version: 3.2.0, branch: master, commit date: 2022-06-08 10:22, hash: `e05e1e3691` Worked: 3.1.2 **Short description of error** So, I downloaded new 3.2 version and for some reasons I can't use Displacement shader with Subdivision Surface modifier above level 7. For example if I type value of 8 and hit render, it renders as if it's at level 0. In both Catmull-Clark and Simple mode and for both viewport and render options, CPU and GPU rendering. But if I add some other modifier after Subdiv (Triangulate for example), it renders correctly. **Exact steps for others to reproduce the error** - Switch render engine to Cycles - Add plane - Create a new material for it - In the shader tab, plug a noise texture (for example) to the displacement socket - In the material setting switch displacement to Displacement only - Add subdivision surface modifier to this plane - Change subdivision level to 8 - Hit render Blend file with first 7 steps included: [#98693.blend](https://archive.blender.org/developer/F13140986/T98693.blend) [Desktop 2022.06.08 - 23.30.38.03.mp4](https://archive.blender.org/developer/F13140478/Desktop_2022.06.08_-_23.30.38.03.mp4)
Author

Added subscriber: @Tupps

Added subscriber: @Tupps
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

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

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

Added subscriber: @kevindietrich

Added subscriber: @kevindietrich
Member

Thanks for the report. I'm able to confirm this. Issue is only reproducible when GPU Subdivision is enabled.
This issue came between c486da0238bd - 52a5f6856268
cc @kevindietrich

(I'm not sure about the exact commit which has caused this)

Thanks for the report. I'm able to confirm this. Issue is only reproducible when GPU Subdivision is enabled. This issue came between `c486da0238bd` - `52a5f6856268` cc @kevindietrich (I'm not sure about the exact commit which has caused this)
Pratik Borhade changed title from Issue with subdivision subsurface modifier and displacement shader to Regression: Issue with subdivision subsurface modifier and displacement shader 2022-06-09 06:20:51 +02:00

This issue was referenced by a8c92331cb

This issue was referenced by a8c92331cb0b0eb99ecc2d502996be5e2dbc0adb

This issue was referenced by ca9d65cc97

This issue was referenced by ca9d65cc97ba8e872a0ef456e51dacadd06e237e
Brecht Van Lommel changed title from Regression: Issue with subdivision subsurface modifier and displacement shader to Regression: Issue with subdivision subsurface modifier and >= 8 levels 2022-06-13 20:37:36 +02:00

Added subscriber: @brecht

Added subscriber: @brecht

This is caused by char subsurf_resolution, which overflows because resolution = (1 << 8) + 1 = 257.

I accidentally fixed it in D15184: Fix #98813: crash with GPU subdiv in edit mode and instance objects by changing the resolution to int.

This is caused by `char subsurf_resolution`, which overflows because `resolution = (1 << 8) + 1 = 257`. I accidentally fixed it in [D15184: Fix #98813: crash with GPU subdiv in edit mode and instance objects](https://archive.blender.org/developer/D15184) by changing the resolution to `int`.

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Brecht Van Lommel self-assigned this 2022-06-14 14:59:55 +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
4 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#98693
No description provided.