Bake all dynamics does not bake last frame of frame range [Even though it appears at first so!] #97114

Closed
opened 2022-04-06 17:17:46 +02:00 by Jannes Nagel · 8 comments

System Information
Operating system: Windows 10
Graphics card: RTX 2070

Blender Version
Broken: 3.0 & 3.2
Worked: None found

Short description of error
When baking particle systems for a specific frame range the last frame of the frame range will not be baked.
This results in rendered sequences having an no particles in their last frame.

Seems to be an issue with render frame range being inclusive and bake using it exclusive.

Exact steps for others to reproduce the error
bug.blend

Delete all baked dynamics

Bake all dynamics

It appears as if frame 50 actually has particles

Save .blend file

Close blender

Open the file again

Frame 50 does NOT have particles!

Render the sequence

Last frame will NOT have particles (even though it should)

**System Information** Operating system: Windows 10 Graphics card: RTX 2070 **Blender Version** Broken: 3.0 & 3.2 Worked: None found **Short description of error** When baking particle systems for a specific frame range the last frame of the frame range will not be baked. This results in rendered sequences having an no particles in their last frame. Seems to be an issue with render frame range being inclusive and bake using it exclusive. **Exact steps for others to reproduce the error** [bug.blend](https://archive.blender.org/developer/F12978496/bug.blend) # Delete all baked dynamics # Bake all dynamics # It appears as if frame 50 actually has particles # Save .blend file # Close blender # Open the file again # Frame 50 does NOT have particles! # Render the sequence # Last frame will NOT have particles (even though it should)
Author

Added subscriber: @Jannes-Nagel

Added subscriber: @Jannes-Nagel
Author

Seems to be duplicate to: https://developer.blender.org/T68290

Seems to be duplicate to: https://developer.blender.org/T68290
Author

I found a fix for this by changing psys_get_pointcahce_start_end

void psys_get_pointcache_start_end(Scene *scene, ParticleSystem *psys, int *sfra, int *efra)
{
  ParticleSettings *part = psys->part;

  *sfra = max_ii(1, (int)part->sta);
  *efra = min_ii((int)(part->end + part->lifetime + 1.0f), max_ii(scene->r.pefra, scene->r.efra+1));//Inclusive range :)
}

Add +1 to make the frame range inclusive solves the issue on my end.

I found a fix for this by changing psys_get_pointcahce_start_end ``` void psys_get_pointcache_start_end(Scene *scene, ParticleSystem *psys, int *sfra, int *efra) { ParticleSettings *part = psys->part; *sfra = max_ii(1, (int)part->sta); *efra = min_ii((int)(part->end + part->lifetime + 1.0f), max_ii(scene->r.pefra, scene->r.efra+1));//Inclusive range :) } ``` Add +1 to make the frame range inclusive solves the issue on my end.
Author
Diff here: https://developer.blender.org/differential/diff/50161/ Should resolve: https://developer.blender.org/T68290 https://developer.blender.org/T81253 Potentially also: https://developer.blender.org/T86865
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Closed as duplicate of #68290

Closed as duplicate of #68290

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Note that I can't redo the bug with the test file and steps given. Frame 50 has particles after deleting the bake and re-baking.

Edit: managed to redo: #68290.

Note that I can't redo the bug with the test file and steps given. Frame 50 has particles after deleting the bake and re-baking. Edit: managed to redo: #68290.
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#97114
No description provided.