Curves have offset animations (alembic / USD) #112308
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#112308
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: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 4080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 536.99
Blender Version
Broken: version: 3.6.2, branch: blender-v3.6-release, commit date: 2023-08-16 16:43, hash:
e53e55951e7a
Worked: 2.79
Hi ! When i import animated curves ( like hair ) as alembic from houdini or maya, and i play the timeline, the alembic have 1 frame offset compare to other primitives alembics ( like body supposed to have the same animation as hair ).
When i play the timeline backwards, it does the same thing in reverse, so it gets an offset of 1 frame backward.
If i chose one specific frame by clicking on it, the problem disappear.
Sadly, it's rendering with the offset.
It works fine on maya and Houdini.
I tried 3.5 and 3.6.
Here is the file, the alembic named "Test" contains Curve Shape and Primitive Shape. If you click on play, you should see an offset between the two objects.
Thanks for the report. I can confirm the problem.
It seems to be an old issue, as I also tested it in Blender 3.0 and the same is seen there.
This actually worked in 2.79 it seems...
OK, a bit of progress here:
the issue is the result of the alembic generating the mesh that replaces the one in the modifier stack is actually the result of the current
DispList
(seeBKE_mesh_new_nomain_from_curve
/BKE_mesh_new_nomain_from_curve_displist
how this works)if we call
BKE_displist_free
and recreate the DispList withcurve_to_displist
, we get rid of the offsetdoing that we loose the stuff from the Geometry panel though (Bevel/Extrude etc.) so a bit more investigation is needed for a final fix
So the way I understand it:
pretessellatePoint
(so nothing happens in terms ofBKE_curve_calc_modifiers_pre
)AbcCurveReader::read_mesh
(called via the modifiermodify_mesh
callback) it completely replaces that curve under the hoodBKE_mesh_new_nomain_from_curve
) and that replaces the one in the modifier stackBKE_mesh_new_nomain_from_curve
just uses the existing DispLists (these dont include anything from the new curve, the whole thing hasnt been recreated, thus it is a frame too "old")As a solution, we could:
mesh_new_from_curve_type_object
-- this completely wipes previous derived_caches and re-creates DispLists
-- this calls
BKE_displist_make_curveTypes
"again" -- which does modifiers "again" -- shouldnt this get into a loop? wasted efforts? works in a local patch though... see below :)-- use that mesh instead
pretessellatePoint
(this seems a bit cleaner to me -- more tweaks needed though since atm. this is only meant for deform only modifiers, cant replace the whole curve from here [yet])before I try the second solution as well, I'd like input from @Sergey and/or @HooglyBoogly regarding the plan of attack
Curves or points alembics have offset animationsto Curves have offset animations (alembic / USD)CC @kevindietrich
To fix the issue properly the Alembic curve reader needs to be changed. Currently it violates design in a sense that it modifies object/mesh which is an input of the modifier. Instead, it should output new mesh with curves geometry set.
It does output a new mesh, no?
It does modify the "original" curve though (dont even think this is necessary, could work on a tmp curve as well to get a mesh from I believe)
When you say "with curves geometry set", you mean the new
Curves
type?Wouldnt we loose all the DispList features then?
It does output new mesh, but first it modifies the input object.
I don't think it modifies original curve, but the curve which is an input to the modifier. If it modifies the actual original curve then the issue is even worse, as it will be causing race conditions (as multiple dependency graphs can be evaluated in parallel).
It is a new geometry type, yes.
We need to phase out old curves and
DispList
, which will also mean making a decision on the modifiers support.It will be more robust and clean solution than adding more permutations in the conversion code.
OK, thx @Sergey for the input.
Sorry, this is what I meant to say (used "original" in the wrong way here)
Will step down from this issue then, to block others doing the port to the new Curves type.
OK, so solution is already in the works (close to being landed it seems) : see !115623
This report is essentially a duplicate of #58704 (I don't know if we can merge, or what to do in this situation).
Resolved with
ea256346a8