Regression: Rendering hair instances size in animation bug with animated emitter object scale #97625

Open
opened 2022-04-26 14:40:28 +02:00 by Denis Belov · 11 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.47

Blender Version
Broken: version: 3.1.2, branch: master, commit date: 2022-03-31 17:40, hash: cc66d1020c
Broken: 2.93
Worked: 2.92

Regression from 50782df425.

Short description of error
Incorrect rendered instanced object scale if rendering hair animation with animated object.

Exact steps for others to reproduce the error
1 Create Cube and object for instancing
2 Set cube scale animation for some frame range
3 Apply patricle system to cube (hair / rendered instances as object or collection)
4 Try to render single frame and render animation, compare difference

hair_render.mp4
test_hair.blend

Will set to high prio to raise awareness this is a regression, but this can probably be lowered again since also involves the EOL particle system.
Note: if you really need to render this, consider using Cycles (where this still works when the Persistent Data option is OFF.

**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.47 **Blender Version** Broken: version: 3.1.2, branch: master, commit date: 2022-03-31 17:40, hash: `cc66d1020c` Broken: 2.93 Worked: 2.92 Regression from 50782df425. **Short description of error** Incorrect rendered instanced object scale if rendering hair animation with animated object. **Exact steps for others to reproduce the error** 1 Create Cube and object for instancing 2 Set cube scale animation for some frame range 3 Apply patricle system to cube (hair / rendered instances as object or collection) 4 Try to render single frame and render animation, compare difference [hair_render.mp4](https://archive.blender.org/developer/F13029909/hair_render.mp4) [test_hair.blend](https://archive.blender.org/developer/F13029910/test_hair.blend) Will set to high prio to raise awareness this is a regression, but this can probably be lowered again since also involves the EOL particle system. Note: if you really need to render this, consider using Cycles (where this still works when the `Persistent Data` option is OFF.
Author

Added subscriber: @DenisBelov

Added subscriber: @DenisBelov
Philipp Oeser changed title from Rrendering hair animation bug with animated object to Rendering hair animation bug with animated emitter object scale 2022-04-26 15:07:16 +02:00
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Seems like 2.83 did not take object scale animated into account at all (so not all frames dont match there either?)?
Seems like 2.93 does this, so I assume there was some bugfix in between regarding animation rendering, not sure yet why [even though animated object scale is now properly taken into account] instance sizes dont match between viewport and render and why single render is wrong

@DenisBelov : what makes you think 2.83 was better here?

Seems like 2.83 did not take object scale animated into account at all (so not all frames dont match there either?)? Seems like 2.93 does this, so I assume there was some bugfix in between regarding animation rendering, not sure yet why [even though animated object scale is now properly taken into account] instance sizes dont match between viewport and render and why single render is wrong @DenisBelov : what makes you think 2.83 was better here?
Author

In 2.83 we can scale hair particles with object, for example object with "drops" on it, and now "drops" are rendering at full scale even if object scale is zero and do not scale proportionaly with main object. Plus viewport still shows old behaviour. I i showed this behaviour in attached video.

In 2.83 we can scale hair particles with object, for example object with "drops" on it, and now "drops" are rendering at full scale even if object scale is zero and do not scale proportionaly with main object. Plus viewport still shows old behaviour. I i showed this behaviour in attached video.
Member

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'
Member

Need to look at his again with fresh eyes later....
Object Scale seems to be broken? https://docs.blender.org/manual/en/3.2/physics/particles/emitter/render.html#object

Need to look at his again with fresh eyes later.... `Object Scale` seems to be broken? https://docs.blender.org/manual/en/3.2/physics/particles/emitter/render.html#object
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Added subscriber: @brecht

Added subscriber: @brecht
Member

Regression from 50782df425.

Will set to high prio to raise awareness this is a regression, but this can probably be lowered again since also involves the EOL particle system.
Note: if you really need to render this, consider using Cycles (where this still works when the Persistent Data option is OFF.

CC @brecht

Regression from 50782df425. Will set to high prio to raise awareness this is a regression, but this can probably be lowered again since also involves the EOL particle system. Note: if you really need to render this, consider using Cycles (where this still works when the `Persistent Data` option is OFF. CC @brecht
Philipp Oeser changed title from Rendering hair animation bug with animated emitter object scale to Regression: Rendering hair instances size in animation bug with animated emitter object scale 2022-05-06 14:25:48 +02:00

The issue here is in the depsgraph / particles. The viewport does not update correctly either, and persistent data relies on the same mechanism.

Particles make particle size independent of object scale, by scaling down the particles so that it cancels out with the object scale. I think that's a mistake in the design, particles should scale with the object transform just like meshes. Geometry nodes, point clouds and instances get this right.

The problem is that trying to fix this would lead to performance regressions for the most common case where scale is not animated, and transforming an object should not recompute the particles. Unless we make deep changes to the particle evaluation, which is not going to happen anymore.

The issue here is in the depsgraph / particles. The viewport does not update correctly either, and persistent data relies on the same mechanism. Particles make particle size independent of object scale, by scaling down the particles so that it cancels out with the object scale. I think that's a mistake in the design, particles should scale with the object transform just like meshes. Geometry nodes, point clouds and instances get this right. The problem is that trying to fix this would lead to performance regressions for the most common case where scale is not animated, and transforming an object should not recompute the particles. Unless we make deep changes to the particle evaluation, which is not going to happen anymore.
Philipp Oeser removed the
Interest
Render & Cycles
label 2023-02-09 14:03:52 +01:00
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#97625
No description provided.