Loop normals display not working if have custom split normals #57620
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#57620
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
MacOS 10.14. Intel HD Graphics 530 1536 MB
Blender Version
Broken: 2.8 hash
642fe9e0f2
Nov 4Short description of error
If one sets up custom normals on a mesh and then modifies them, and enables loop normals in the overlay options, then the displayed normals stay at whatever the loop normals would be just for the face that the loop is for.
Exact steps for others to reproduce the error
This blend
cubecustomnorm.blend
was made by setting autosmooth on the cube, making the top edges sharp, setting the object to smooth shading, then using alt-L to enter normal editing mode, then using m (point at mouse) and moving the mouse a bit, and then left clicking. The matcap shows that normals are affected when doing this.
The commit
478899dee7
appears to have added loop normal display support so I'll assign to fclem but maybe the problem is due to a number of TODOs in draw_cache_impl_mesh.c about "real loop normals".Added subscriber: @howardt
#57658 was marked as duplicate of this issue
I'm not sure if this should be assigned to Clement, Campbell, or someone else. Also not sure if this is a bug that is intended to be fixed before the beta.
Added subscriber: @ideasman42
Seems like a TODO in add_overlay_tri.
I might have a look if @ideasman42 is too busy.
Added subscribers: @skywalger, @rboxman
the overlay also displays bad amount of normals, in 2.79 it works as it should by my opinion:
2.79
2.8
This issue was referenced by
a915da221f
Changed status from 'Open' to: 'Resolved'
Changed status from 'Resolved' to: 'Open'
Campbell, your recent commit
ff3601b9
seems to have broken some of the code that was written to fix this, or maybe just broke the code that fetches and uses custom normals in shading. Now when autosmooth is on it doesn't seem like the workbench display uses custom normals at all (e.g., trying to modify them with the mesh -> normals -> point normals to target command, using m for mouse -- nothing happens now).Can you have a look please?
Added subscriber: @fclem
I put this in my draw_cache_impl_mesh.c so that I could turn on #define of USE_BM_MAPPED_LOOPNORMAL and get it to use custom loop normals properly in display.
but I'm pretty sure this is not the right fix, else you likely would have done this in the first place.
Is the issue that mlt->tri- [ ] is just wrong if there's a modifier that sets things on the CD_ORIGINDEX layer?
People will likely start filing bugs about "custom split normals don't work at all" if we don't do something to use the CD_CUSTOMLOOPNORMAL layer in shading.
Added subscriber: @angavrilov
No idea about bmesh stuff, but with regular meshes the ORIGINDEX layer doesn't exist if the object only has deform modifiers and thus the topology is unchanged from base, and you have to account for that.
This issue was referenced by
34b73cb11c
Changed status from 'Open' to: 'Resolved'