Rigid body: Animated body collision geometry have unapplied scale for the first frame. #109108

Open
opened 2023-06-18 19:49:17 +02:00 by Hoang Duy Tran · 4 comments
Member

System Information
Operating system: macOS-12.6.5-x86_64-i386-64bit 64 Bits
Graphics card: Intel(R) Iris(TM) Plus Graphics 645 Intel Inc. 4.1 INTEL-18.8.6

Blender Version
Broken: version: 3.5.1, branch: blender-v3.5-release, commit date: 2023-04-24 18:11, hash: e1ccd9d4a1d3
Worked: (newest version of Blender that worked as expected)

Short description of error

If an rigid body object has a scale that's not 1 , when physics simulation begins, the collision on the first frame will be calculated as if the object (collision geometry) is scaled back to 1, but subsequent frames will have correct scale.


I have been following this tutorial

https://www.youtube.com/watch?v=2Dnks7C2q9U

and as soon as I set the 'handle' object 'Animated' and press 'Play' on timeline, the bullet physics immediately kicks-in,

Screenshot 2023-06-18 at 18.31.55.png

This is the file I'm using:

20230618_rigid_body_tipping_over_stacks_of_cubes_animated_wrong_activation_0001.blend

**System Information** Operating system: macOS-12.6.5-x86_64-i386-64bit 64 Bits Graphics card: Intel(R) Iris(TM) Plus Graphics 645 Intel Inc. 4.1 INTEL-18.8.6 **Blender Version** Broken: version: 3.5.1, branch: blender-v3.5-release, commit date: 2023-04-24 18:11, hash: `e1ccd9d4a1d3` Worked: (newest version of Blender that worked as expected) **Short description of error** If an rigid body object has a scale that's not 1 , when physics simulation begins, the collision on the first frame will be calculated as if the object (collision geometry) is scaled back to 1, but subsequent frames will have correct scale. ----- I have been following this tutorial https://www.youtube.com/watch?v=2Dnks7C2q9U and as soon as I set the 'handle' object 'Animated' and press 'Play' on timeline, the bullet physics immediately kicks-in, ![Screenshot 2023-06-18 at 18.31.55.png](/attachments/7cf6507d-2e98-4ac2-9984-b6b0d1957d5b) This is the file I'm using: [20230618_rigid_body_tipping_over_stacks_of_cubes_animated_wrong_activation_0001.blend](/attachments/51deb16a-8b1d-4cd2-80e0-a7633781778e)
Hoang Duy Tran added the
Type
Report
Status
Needs Triage
Priority
Normal
labels 2023-06-18 19:49:17 +02:00
Member

Hi @hoanguk , I can replicate the issue. Looks like those cubes are colliding with a "wrong" shape of that rod. Applying scale on that rod fixes the issue.

Not sure why the colliding shape is not taking scale into account, will investigate.

Hi @hoanguk , I can replicate the issue. Looks like those cubes are colliding with a "wrong" shape of that rod. Applying scale on that rod fixes the issue. Not sure why the colliding shape is not taking scale into account, will investigate.
YimingWu added
Module
Nodes & Physics
Status
Confirmed
Interest
Physics
and removed
Status
Needs Triage
labels 2023-06-19 05:26:29 +02:00
Member

Took a bit digging but looks like that RB_body_new() doesn't want scale factors, and rigidbody_validate_sim_object() never applies scale or any transformation on the vertex coordinates.

Will check earlier version to see if this is indeed broken from early on, if it's not we probably will keep it as-is because otherwise it will break older files.

Edit:

Test shows that this only affects the first frame of simulation, subsequent collision will be handled at the correct size.

Took a bit digging but looks like that `RB_body_new()` doesn't want `scale` factors, and `rigidbody_validate_sim_object()` never applies scale or any transformation on the vertex coordinates. Will check earlier version to see if this is indeed broken from early on, if it's not we probably will keep it as-is because otherwise it will break older files. Edit: Test shows that this only affects the first frame of simulation, subsequent collision will be handled at the correct size.
Member

The behaviour is consistent throughout 3.0-4.0, considering this as a known limitation.

The behaviour is consistent throughout 3.0-4.0, considering this as a known limitation.
YimingWu added
Type
Known Issue
and removed
Type
Report
labels 2023-06-20 15:29:10 +02:00
YimingWu changed title from Rigid body: Animated causing physics to work without any movements to Rigid body: Animated body collision geometry have unapplied scale for the first frame. 2023-06-20 15:30:36 +02:00
Contributor

If this may break anything, it's better to be fixed at 4.0 release, rather than left as 'known limitation'.

If this may break anything, it's better to be fixed at 4.0 release, rather than left as 'known limitation'.
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#109108
No description provided.