Cloth Cache appears in wrong position #32944

Closed
opened 2012-10-21 20:19:14 +02:00 by Daniel Salazar · 8 comments
Member

%%%Open environment/Envionment.blend

Cloth cache should work fine in viewport

Now render

Cloth is far away from camera%%%

%%%Open environment/Envionment.blend Cloth cache should work fine in viewport Now render Cloth is far away from camera%%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Member

%%%Problem here is basically the same as in #32846:
https://projects.blender.org/tracker/index.php?func=detail&aid=32846&group_id=9&atid=498

When dupli-objects are generated in the dupli group, the object->obmat matrix is temporarily set to the total dupli instance matrix. Each time a dupli instance is generated it also calls the cloth modifier, which reads the cached state and applies it to the DM vertices. However, the cloth cache is stored in world space, so the cloth mod applies the inverted obmat transform to supposedly get vertices in object space. But since the obmat is actually the instance matrix, this ends up looking like the instance is completely untransformed ...

In order to work correctly the cloth mod would have to know the actual unchanged base object transform, but this is not available. A serious design flaw with dupli objects IMHO ...

I'll try to find a fix, assigning to myself.%%%

%%%Problem here is basically the same as in #32846: https://projects.blender.org/tracker/index.php?func=detail&aid=32846&group_id=9&atid=498 When dupli-objects are generated in the dupli group, the object->obmat matrix is temporarily set to the total dupli instance matrix. Each time a dupli instance is generated it also calls the cloth modifier, which reads the cached state and applies it to the DM vertices. However, the cloth cache is stored in world space, so the cloth mod applies the inverted obmat transform to supposedly get vertices in object space. But since the obmat is actually the *instance* matrix, this ends up looking like the instance is completely untransformed ... In order to work correctly the cloth mod would have to know the *actual* unchanged base object transform, but this is not available. A serious design flaw with dupli objects IMHO ... I'll try to find a fix, assigning to myself.%%%
Member

%%%Wouldn't the flaw be in the point cache then? World space isn't useful for instanced groups.%%%

%%%Wouldn't the flaw be in the point cache then? World space isn't useful for instanced groups.%%%
Member

%%%Ok, it's not a nice situation but apparently there is no easy fix to make this way of linking point cached data possible. Several people have suggested complicated workarounds, but i didn't understand a single one in detail. Closing the report.%%%

%%%Ok, it's not a nice situation but apparently there is no easy fix to make this way of linking point cached data possible. Several people have suggested complicated workarounds, but i didn't understand a single one in detail. Closing the report.%%%
Member

%%%Reopened and assigned to Campbell. Ton said you made some sort of workaround for this, maybe want to comment on this?%%%

%%%Reopened and assigned to Campbell. Ton said you made some sort of workaround for this, maybe want to comment on this?%%%
Author
Member

%%%I think I figured out what it is. It's because the linked dupligroup was moved away from the scene origin before creating the proxy. This creates an offset between the group's origin and the scene origin that is ignored by the cloth cache%%%

%%%I think I figured out what it is. It's because the linked dupligroup was moved away from the scene origin before creating the proxy. This creates an offset between the group's origin and the scene origin that is ignored by the cloth cache%%%
Member

%%%This will get added to the standard checklist for recode work on proxy, groups, depsgraph, point cache, name it.. ;)%%%

%%%This will get added to the standard checklist for recode work on proxy, groups, depsgraph, point cache, name it.. ;)%%%
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
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
3 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#32944
No description provided.