Normal Edit modifier incorrectly causes faces to become 'back faces' #55470

Closed
opened 5 years ago by WispBart · 7 comments

System Information
Operating system and graphics card
N/A

Blender Version
Broken: 2.79b f4dc9f9
Worked: 2.73

Short description of error
In previous versions of Blender (tested 2.73) when adding a normal edit modifier, this would affect vertex normals but not face normals. In 2.79 the face normals are affected and faces are being culled.
I need the old behaviour for a non-realistic cell-shaded look. Lighting should be affected by the vertex normals, but obviously faces should not turn invisible just because the normals have been twisted. The erroneous behaviour persists when exporting to FBX and bringing the model into Unity.

Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps

  • Open attached .Blend file.
  • Inspect the Icosphere and notice that a number of its faces are being culled.
  • Move the 'PointNormalsAt' transform around to see both lighting and face culling change.
  • Select the Icosphere and turn the Edit Normals modifier off to see the full icosphere with faces outward as they should be.

normaleditbug.blend

**System Information** Operating system and graphics card N/A **Blender Version** Broken: 2.79b f4dc9f9 Worked: 2.73 **Short description of error** In previous versions of Blender (tested 2.73) when adding a normal edit modifier, this would affect vertex normals but not face normals. In 2.79 the face normals are affected and faces are being culled. I need the old behaviour for a non-realistic cell-shaded look. Lighting should be affected by the vertex normals, but obviously faces should not turn invisible just because the normals have been twisted. The erroneous behaviour persists when exporting to FBX and bringing the model into Unity. **Exact steps for others to reproduce the error** Based on a (as simple as possible) attached .blend file with minimum amount of steps - Open attached .Blend file. - Inspect the Icosphere and notice that a number of its faces are being culled. - Move the 'PointNormalsAt' transform around to see both lighting and face culling change. - Select the Icosphere and turn the Edit Normals modifier off to see the full icosphere with faces outward as they should be. [normaleditbug.blend](https://archive.blender.org/developer/F3683870/normaleditbug.blend)
Poster

Added subscriber: @WispBart

Added subscriber: @WispBart
Collaborator

Added subscribers: @mont29, @lichtwerk

Added subscribers: @mont29, @lichtwerk
Collaborator

changed between 2.77a and 2.78
e3841c91f9, f08018f928, #42526

Imho current behaviour seems actually more correct (for most scenarios... but as you say: there might be other cases where poly flipping is undesired...)

Also not sure what NPR look exactly you are after, there might be solutions on the Unity side of things?

  • Turn off culling in Unity shader? (for npr this might be enough?)
  • somthing like this ?

@mont29: or should we make this [polygons_check_flip] an option in the modifier?

changed between 2.77a and 2.78 e3841c91f9, f08018f928, #42526 Imho current behaviour seems actually more correct (for most scenarios... but as you say: there might be other cases where poly flipping is undesired...) Also not sure what NPR look exactly you are after, there might be solutions on the Unity side of things? - Turn off culling in Unity shader? (for npr this might be enough?) - somthing like [this ](https://forum.unity.com/threads/double-sided-rendering-without-special-shaders.197923/)? @mont29: or should we make this [`polygons_check_flip`] an option in the modifier?
mont29 was assigned by lichtwerk 5 years ago
Collaborator

This issue was referenced by 0eb3246713

This issue was referenced by 0eb32467131543f224a222f0caf42df4ff9d7d65
mont29 commented 5 years ago
Owner

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
mont29 closed this issue 5 years ago
mont29 commented 5 years ago
Owner

Am not happy with re-introducing such buggy behavior, but on the other hand there is not other way I can think of to get same effect, and NPR often relies on buggy/incorrect behaviors anyway, so...

Am not happy with re-introducing such buggy behavior, but on the other hand there is not other way I can think of to get same effect, and NPR often relies on buggy/incorrect behaviors anyway, so...
Poster

Thanks for the fix!

The look we're going for is flat-shaded characters with hard shadow lines (see Guilty Gear xrd for an example). Turning off backfaces could cause problems down the road, since these are logically just front facing tri's. We just want more control over how much light they are receiving.

Thanks for the fix! The look we're going for is flat-shaded characters with hard shadow lines (see Guilty Gear xrd for an example). Turning off backfaces could cause problems down the road, since these are logically just front facing tri's. We just want more control over how much light they are receiving.
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/Collada
Interest/Compositing
Interest/Core
Interest/Cycles
Interest/Datablocks and Libraries
Interest/Dependency Graph
Interest/Development Management
Interest/Eevee
Interest/Eevee & Viewport
Interest/Freestyle
Interest/Geometry Nodes
Interest/Images & Movies
Interest/Overrides
Interest/Performance
Interest/Pipeline, Assets & I/O
Interest/Translations
Interest/Undo
Interest/USD
Interest/Video Sequencer
legacy module/Animation & Rigging
legacy module/Core
legacy module/Development Management
legacy module/Eevee & Viewport
legacy module/Grease Pencil
legacy module/Modeling
legacy module/Nodes & Physics
legacy module/Pipeline, Assets & IO
legacy module/Platforms, Builds, Tests & Devices
legacy module/Python API
legacy module/Rendering & Cycles
legacy module/Sculpt, Paint & Texture
legacy module/Triaging
legacy module/User Interface
legacy module/VFX & Video
legacy project/1.0.0-beta.2
legacy project/Asset Browser (Archived)
legacy project/BF Blender: 2.8
legacy project/BF Blender: After Release
legacy project/BF Blender: Next
legacy project/BF Blender: Regressions
legacy project/BF Blender: Unconfirmed
legacy project/Blender 2.70
legacy project/Code Quest
legacy project/Game Animation
legacy project/Game Audio
legacy project/Game Data Conversion
legacy project/Game Engine
legacy project/Game Logic
legacy project/Game Physics
legacy project/Game Python
legacy project/Game Rendering
legacy project/Game UI
legacy project/GPU / Viewport
legacy project/Grease Pencil
legacy project/GSoC
legacy project/Import/Export
legacy project/Infrastructure: Websites
legacy project/LibOverrides - Usability and UX
legacy project/Line Art
legacy project/Masking
legacy project/Milestone 1: Basic, Local Asset Browser
legacy project/Modeling
legacy project/Modifiers
legacy project/Motion Tracking
legacy project/Nodes
legacy project/Nodes & Physics
legacy project/OpenGL Error
legacy project/Papercut
legacy project/Performance
legacy project/Physics
legacy project/Platforms, Builds, Tests & Devices
legacy project/Pose Library Basics
legacy project/Python API
legacy project/Render & Cycles
legacy project/Render Pipeline
legacy project/Retrospective
legacy project/Sculpt, Paint & Texture
legacy project/Text Editor
legacy project/Tracker Curfew
legacy project/Triaging
legacy project/User Interface
legacy project/UV Editing
legacy project/VFX & Video
legacy project/Virtual Reality
legacy project/Wintab High Frequency
Meta/Good First Issue
Meta/Papercut
migration/requires-manual-verification
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 & Devices
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 Information 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

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#55470
Loading…
There is no content yet.