Material ID pass from Cycles contains wrong samples (pixels) #42448

Closed
opened 2014-10-30 16:20:17 +01:00 by Jasper van Nieuwenhuizen · 5 comments

System Information
OS X 10.8.5 (12F45) - NVIDIA GeForce GT 650M 1024 MB
Windows 7 Professional (with SP1) - ATI FirePro V7800 (FireGL V)
Linux Mint 16 KDE - ATI FirePro V7800 (FireGL V)

Blender Version
Broken:
OSX: 2.72.1 409b3c9; 2.72.0 95182d1
Windows 7: 2.72.1 beaed66
Working:
Linux: 2.71.0 9337574; 2.72.1 beaed66

Short description of error
When rendering the material ID of an objects which has thickness and a different material for the inside and the outside, sometimes some pixels give the wrong material ID. I tried both with CPU and GPU rendering and got the same problem, just different pixels.
When I render the same scene with Blender Internal it works fine. Also the problem seems only to be affecting Blender when running on OSX or Windows, on Linux I can't reproduce the bug.

Exact steps for others to reproduce the error
Open the .blend file and press render. In the image viewer the wrong pixels are marked with the grease pencil (if you load with 'keep UI') (they were on the same place on different computers for me). On layer 1 the object still has the modifiers on layer 2 the modifiers are applied. Both have exactly the same behavior.
In the compositor you can switch between ID 1 and 2 to see the same problem for both materials.

material_id_bug_cycles.blend

**System Information** OS X 10.8.5 (12F45) - NVIDIA GeForce GT 650M 1024 MB Windows 7 Professional (with SP1) - ATI FirePro V7800 (FireGL V) Linux Mint 16 KDE - ATI FirePro V7800 (FireGL V) **Blender Version** Broken: OSX: 2.72.1 409b3c9; 2.72.0 95182d1 Windows 7: 2.72.1 beaed66 Working: Linux: 2.71.0 9337574; 2.72.1 beaed66 **Short description of error** When rendering the material ID of an objects which has thickness and a different material for the inside and the outside, sometimes some pixels give the wrong material ID. I tried both with CPU and GPU rendering and got the same problem, just different pixels. When I render the same scene with Blender Internal it works fine. Also the problem seems only to be affecting Blender when running on OSX or Windows, on Linux I can't reproduce the bug. **Exact steps for others to reproduce the error** Open the .blend file and press render. In the image viewer the wrong pixels are marked with the grease pencil (if you load with 'keep UI') (they were on the same place on different computers for me). On layer 1 the object still has the modifiers on layer 2 the modifiers are applied. Both have exactly the same behavior. In the compositor you can switch between ID 1 and 2 to see the same problem for both materials. [material_id_bug_cycles.blend](https://archive.blender.org/developer/F120407/material_id_bug_cycles.blend)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @jasperge-2

Added subscriber: @jasperge-2
Sergey Sharybin was assigned by Bastien Montagne 2014-10-31 09:30:23 +01:00

Added subscriber: @mont29

Added subscriber: @mont29

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

This is a precision issue by the looks of it. Using watertight ray/tri intersection avoids this artifacts. We've got patch for this, but we still need to solve issued before we can commit it.

Thanks for the report, but for now it's a TODO.

This is a precision issue by the looks of it. Using watertight ray/tri intersection avoids this artifacts. We've got patch for this, but we still need to solve issued before we can commit it. Thanks for the report, but for now it's a TODO.
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#42448
No description provided.