Operations that alter topology (e.g. Mirror modifier AND mirror operator, loopcut, subdivide, knife) destroy custom normals #53763

Closed
opened 2018-01-11 16:51:05 +01:00 by Zsolt Stefan · 13 comments

System Information
Windows 7 Pro
Quadro K2100M
Intel Core i7-4900MQ

Blender Version
Broken: 2.79
Worked: afaik never

Short description of error
Using the mirror modifier on a mesh with custom normals, the normals are not mirrored correctly, but are rotated all over the place, giving ugly render artifacts.

I work on heavy triangle meshes imported from other programs, and I often use the YAVNE addon to correct the normals (usually using "face area" for weighing). Other times I import FBX files including their custom normals. I do not want to double the geometry, so I use (or would like to use) the mirror modifier on all symmetrical parts. But this throws off their normals. And I also cannot just mirror them in edit mode (CTRL-M).

I have read somewhere that this behaviour if known. It does however look like a bug, and can destroy models if users are not aware (since custom normals data, once lost, cannot be reaquired).

In fact, I do not know of a way around the problem. How do I mirror custom normals? Maybe there is a way to fix this?

Exact steps for others to reproduce the error
I have attached a small file. The original object looks OK, the mirrored side looks distorted.
Bug_mirror_modifier_custom_normals.blend

**System Information** Windows 7 Pro Quadro K2100M Intel Core i7-4900MQ **Blender Version** Broken: 2.79 Worked: afaik never **Short description of error** Using the mirror modifier on a mesh with custom normals, the normals are not mirrored correctly, but are rotated all over the place, giving ugly render artifacts. I work on heavy triangle meshes imported from other programs, and I often use the YAVNE addon to correct the normals (usually using "face area" for weighing). Other times I import FBX files including their custom normals. I do not want to double the geometry, so I use (or would like to use) the mirror modifier on all symmetrical parts. But this throws off their normals. And I also cannot just mirror them in edit mode (CTRL-M). I have read somewhere that this behaviour if known. It does however look like a bug, and can destroy models if users are not aware (since custom normals data, once lost, cannot be reaquired). In fact, I do not know of a way around the problem. How do I mirror custom normals? Maybe there is a way to fix this? **Exact steps for others to reproduce the error** I have attached a small file. The original object looks OK, the mirrored side looks distorted. [Bug_mirror_modifier_custom_normals.blend](https://archive.blender.org/developer/F1788406/Bug_mirror_modifier_custom_normals.blend)
Author

Added subscriber: @ZsoltStefan

Added subscriber: @ZsoltStefan

#63840 was marked as duplicate of this issue

#63840 was marked as duplicate of this issue

#55219 was marked as duplicate of this issue

#55219 was marked as duplicate of this issue

Added subscriber: @dmarra

Added subscriber: @dmarra

I see the artifact on the top of the mirrored object. I'll look a little deeper to see if the solution is obvious

I see the artifact on the top of the mirrored object. I'll look a little deeper to see if the solution is obvious
Member

Added subscribers: @mont29, @lichtwerk

Added subscribers: @mont29, @lichtwerk
Bastien Montagne was assigned by Philipp Oeser 2018-01-19 23:53:49 +01:00
Member

I've made another file for demonstration purposes.

#53763.blend

#53763.png

Its a grid with custom normals pointing towards an empty. Mirrored on all 3 axis with the mirror modifier.
There's definitely a pattern and on 'every second' axis the result is actually correct, so I guess there is some minor treatment to the lnors that can be accounted for in the mirror modifier.

Assigning to @mont29, but feel free to bounce back to me :)

I've made another file for demonstration purposes. [#53763.blend](https://archive.blender.org/developer/F1900069/T53763.blend) ![#53763.png](https://archive.blender.org/developer/F1900095/T53763.png) Its a grid with custom normals pointing towards an empty. Mirrored on all 3 axis with the mirror modifier. There's definitely a pattern and on 'every second' axis the result is actually correct, so I guess there is some minor treatment to the lnors that can be accounted for in the mirror modifier. Assigning to @mont29, but feel free to bounce back to me :)

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

Thanks for the report, but there is nothing new here, custom normals have never been supported with topology-editing modifiers or operations (like mirror one). Iirc, 2017 GSoC tackling editing of custom normals also added their support to mirror modifier, not sure when we'll have time to merge it in master though :|

But in general, you should never modify topology of your mesh once you have added custom normals, we might end up supporting a limited set of cases (like the mirror modifier), but this is not a good idea anyway. Custom normals are designed to support alterations of the shape (deformations), but absolutely not of the topology, this is not possible. So this is a known limitation/low priority TODO at best. ;)

Thanks for the report, but there is nothing new here, custom normals have never been supported with topology-editing modifiers or operations (like mirror one). Iirc, 2017 GSoC tackling editing of custom normals also added their support to mirror modifier, not sure when we'll have time to merge it in master though :| But in general, you should never modify topology of your mesh once you have added custom normals, we might end up supporting a limited set of cases (like the mirror modifier), but this is not a good idea anyway. Custom normals are designed to support alterations of the shape (deformations), but absolutely not of the topology, this is not possible. So this is a known limitation/low priority TODO at best. ;)
Member

Added subscriber: @RobHue

Added subscriber: @RobHue
Member

Added subscriber: @Fubax-1

Added subscriber: @Fubax-1

Added subscriber: @Zeirus

Added subscriber: @Zeirus
Philipp Oeser changed title from Mirror modifier AND mirror operator destroys custom normals to Operations that alter topology (e.g. Mirror modifier AND mirror operator, loopcut, subdivide, knife) destroy custom normals 2022-05-03 14:13:34 +02:00
Member

Note: some of this should be supported since 93c8955a72, but there is still cases/reports like #97698 (Custom Normals: some operations that alter topology (bisect, loopcut, subdivide, knife, triangulate modifier) destroy them while other operations (e.g. Connect Vertex Path, triangulate operator) preserve them)

Note: some of this should be supported since 93c8955a72, but there is still cases/reports like #97698 (Custom Normals: some operations that alter topology (bisect, loopcut, subdivide, knife, triangulate modifier) destroy them while other operations (e.g. Connect Vertex Path, triangulate operator) preserve them)
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
6 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#53763
No description provided.