Microdisplacement ignores freestyle lines #50554

Closed
opened 2017-01-30 00:39:14 +01:00 by Mateus Salviano · 7 comments

System Information
Windows 7, Gigabyte GTX 1070

Blender Version
Broken: 2.78
Worked: N/A

Short description of error
Microdisplacement creates a small problem when used along with freestyle line drawing; the lines will completely ignore the new silhouette created by the microdisplacement, therefore the lines will be drawn above the microdisplaced geometry.

Exact steps for others to reproduce the error
1- Make sure the new microdisplacement feat is ready to be used
2- Create a simple sphere and give it a Subdivision Surface modifier, set it up to be adaptive
3- Give your sphere a material and add some random (strong) displacement texture output to that
4- Make sure the sphere material settings has the "Displacement" mode set to True
5- Add a suzanne (or any mesh really) behind the sphere
6- Set freestyle lines configs
7- Position the camera in a way that the monkey is behind the microdisplaced geometry of the sphere
8- Render
9- The generated lines will ignore the sphere's new geometry

bug.png
bug.blend

**System Information** Windows 7, Gigabyte GTX 1070 **Blender Version** Broken: 2.78 Worked: N/A **Short description of error** Microdisplacement creates a small problem when used along with freestyle line drawing; the lines will completely ignore the new silhouette created by the microdisplacement, therefore the lines will be drawn above the microdisplaced geometry. **Exact steps for others to reproduce the error** 1- Make sure the new microdisplacement feat is ready to be used 2- Create a simple sphere and give it a Subdivision Surface modifier, set it up to be adaptive 3- Give your sphere a material and add some random (strong) displacement texture output to that 4- Make sure the sphere material settings has the "Displacement" mode set to True 5- Add a suzanne (or any mesh really) behind the sphere 6- Set freestyle lines configs 7- Position the camera in a way that the monkey is behind the microdisplaced geometry of the sphere 8- Render 9- The generated lines will ignore the sphere's new geometry ![bug.png](https://archive.blender.org/developer/F442402/bug.png) [bug.blend](https://archive.blender.org/developer/F442404/bug.blend)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @Mateus_Salviano

Added subscriber: @Mateus_Salviano

Added subscriber: @zeauro

Added subscriber: @zeauro

Microdisplacement is an experimental feature of Cycles renderer.
Freestyle is a part of Blender Internal Renderer.
And Blender Internal does not support such microdisplacement.

So what happens when you render a Cycles scene with Freestyle lines ?
First, blender uses Cycles to render scene based on cycles settings.
Then, blender uses Blender Internal to create Freestyle lines.
Eventually, Blender Internal render is drawn on Top of Cycles one.

There is no bug, here. It is just a limitation of current system.

You can obtain contour lines from microdisplacement by using compositing nodes (IDmask, Filter) from a Cycles pass (Diffuse Color or Object Index).
You can try displace modifier supported by BI and Cycles.
But Freestyle or Cycles microdisplacement is not the right tool, in this case.

Microdisplacement is an experimental feature of Cycles renderer. Freestyle is a part of Blender Internal Renderer. And Blender Internal does not support such microdisplacement. So what happens when you render a Cycles scene with Freestyle lines ? First, blender uses Cycles to render scene based on cycles settings. Then, blender uses Blender Internal to create Freestyle lines. Eventually, Blender Internal render is drawn on Top of Cycles one. There is no bug, here. It is just a limitation of current system. You can obtain contour lines from microdisplacement by using compositing nodes (IDmask, Filter) from a Cycles pass (Diffuse Color or Object Index). You can try displace modifier supported by BI and Cycles. But Freestyle or Cycles microdisplacement is not the right tool, in this case.

Added subscriber: @Sergey

Added subscriber: @Sergey

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sergey Sharybin self-assigned this 2017-01-31 12:51:58 +01:00

The way how Freestyle works is it tessellates edges and passes them to the render engine to be rendered. Surely such tessellation from outside of Cycles can't take displacement into account.

So as @zeauro, this is a known limitation of the system. Thanks for the report anyway.

The way how Freestyle works is it tessellates edges and passes them to the render engine to be rendered. Surely such tessellation from outside of Cycles can't take displacement into account. So as @zeauro, this is a known limitation of the system. Thanks for the report anyway.
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#50554
No description provided.