.bphys cache never writes particle size #65467

Closed
opened 2019-06-04 00:00:16 +02:00 by Atomic · 6 comments

System Information
Operating system:Windows
Graphics card:gtx660

Blender Version
Broken: 2.79 probably 2.8 too.

Short description of error
When reviewing the resulting .bphys cache files, the only thing written to the cache file is LOC and VEL.

Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).
Bake the cache on the supplied BLEND file which will generate one particle.
Run the supplied python program to view the resulting one particle one frame cache.
There are only two pieces of data stored for the Newtonian particle, location and velocity.

Line #289 here:
https://developer.blender.org/diffusion/B/browse/master/source/blender/blenkernel/intern/pointcache.c
Shows the data type being assigned &pa->size could this be the problem? Does it need to be pa->size (remove the ampersand?)

27_make_one_particle.blend

**System Information** Operating system:Windows Graphics card:gtx660 **Blender Version** Broken: 2.79 probably 2.8 too. **Short description of error** When reviewing the resulting .bphys cache files, the only thing written to the cache file is LOC and VEL. **Exact steps for others to reproduce the error** Based on the default startup or an attached .blend file (as simple as possible). Bake the cache on the supplied BLEND file which will generate one particle. Run the supplied python program to view the resulting one particle one frame cache. There are only two pieces of data stored for the Newtonian particle, location and velocity. Line #289 here: https://developer.blender.org/diffusion/B/browse/master/source/blender/blenkernel/intern/pointcache.c Shows the data type being assigned *&pa->size* could this be the problem? Does it need to be *pa->size* (remove the ampersand?) [27_make_one_particle.blend](https://archive.blender.org/developer/F7085042/27_make_one_particle.blend)
Author

Added subscriber: @AtomP

Added subscriber: @AtomP

Added subscriber: @brecht

Added subscriber: @brecht

It's true that the size is not written, BKE_ptcache_id_from_particles determines which data will be written. But have you found that this leads to a bug in Blender, does the size need to be written to correctly reconstruct the particles state? The existence of unused code by itself does not mean there is a bug.

It's true that the size is not written, `BKE_ptcache_id_from_particles` determines which data will be written. But have you found that this leads to a bug in Blender, does the size need to be written to correctly reconstruct the particles state? The existence of unused code by itself does not mean there is a bug.
Author

Size is also not read from the external .bphys file. So if I decide to write an external python script to generate a .bphys file,blender ignores the supplied size information. This does seem to be a bug.

Shouldn't Blender reliably relay the size information in the type def, if it is supplied by an external file?

Size is also not read from the external .bphys file. So if I decide to write an external python script to generate a .bphys file,blender ignores the supplied size information. This does seem to be a bug. Shouldn't Blender reliably relay the size information in the type def, if it is supplied by an external file?

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Brecht Van Lommel self-assigned this 2019-06-05 17:48:48 +02:00

While this would be useful, that's beyond a bugfix. The file format is defined by what it actually writes, not what disabled code could do. Even then this is an internal file format, not strictly defined by any specification.

The size is not something that is simulated, it is computed on the fly based on some settings. Changing that in the current particle code is messy, it's more likely to happen when we rewrite the particle system.

While this would be useful, that's beyond a bugfix. The file format is defined by what it actually writes, not what disabled code could do. Even then this is an internal file format, not strictly defined by any specification. The size is not something that is simulated, it is computed on the fly based on some settings. Changing that in the current particle code is messy, it's more likely to happen when we rewrite the particle system.
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
2 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#65467
No description provided.