Alembic import with animated normals causes incorrect shading #100164
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#100164
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
Operating system: Linux-5.15.0-43-generic-x86_64-with-glibc2.31 64 Bits
Graphics card: NVIDIA GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 515.65.01
Blender Version
Broken: version: 3.4.0 Alpha, branch: master, commit date: 2022-08-03 07:31, hash:
d269fb1d72
Worked: (newest version of Blender that worked as expected)
Short description of error
I noticed that the shading of a simulation imported as an Alembic from Houdini shows incorrect vertex (or face varying) normals:
The same frame of the animation transferred with OBJ looks correct:
I re-imported the Alembic in Houdini and also in Fusion 9 (these were the only two apps with Alembic support I have access to here). Both look and render correct, too:
Houdini
Fusion
The normals themselves aren't even animated but according to abcinfo they are marked as "animated":
Exact steps for others to reproduce the error
explosion_small.abc
explosion_frame_34.obj
Added subscriber: @SteffenD
Alembic Import with Animated Normals failsto Alembic import with animated normals causes incorrect shadingJust gave animated UVs and normals a try by animating the UVs and normals of a simple grid in Blender, exporting it to Alembic and re-importing it. They both work.
Abcinfo for the animated normals looks very similar to the one coming from Houdini. I wonder why only the one coming from Blender has proper animated normals:
Or am I barking up the wrong tree?
Animated_Normals_v01.abc
Added subscriber: @OmarEmaraDev
I hit an asset when going to edit mode in a debug build, maybe that is related, investigating the normals issue.
It is interesting to note that the new OBJ importer suffered from the same issue in 3.2, but it works correctly in 3.4, so it must have fixed something.
Attached is a dump of the normals from the alembic and obj files attached above. There are differences between both.
obj_normals.txt
alembic_normals.txt
The following returns an array with 9776 elements.
Changed status from 'Needs Triage' to: 'Confirmed'
Looks like normals just need to be normalized.
Above patch is just for testing, probably need to normalize other normal processors as well.
Wow! Thanks for investigating the issue and finding the problem.
Because we don't have access to setting normals in Geometry Nodes yet, I went back to Houdini, imported the "explosion_small.abc", normalized the normals (pun intended ;) ) and re-exported an Alembic.
It displays and renders perfectly in Blender. I hope your fix finds a way into master soon.
Here's the normalized version of the Alembic:
explosion_small_normalized.abc
BTW the very same goes for USD import: The normals need to be normalized there as well. Here's the "explosion_small.abc" converted to USD which also shows the problem when imported in Blender:
explosion_small.usd
And another quick addition:
The Alembics and USDs with normalized normals render fine BUT as soon as I switch on motion blur another problem occurs which I reported a few days ago: https://developer.blender.org/T100134
Here's a rendering without MB:
and MB on:
EDIT: Eevee renders motion blur and shading fine