Geometry Nodes: extract bake items from simulation baking #110577

Merged
Jacques Lucke merged 4 commits from JacquesLucke/blender:bake-storage into main 2023-07-28 18:30:38 +02:00
Member

The goal is to reuse the same bake items for simulation and normal baking (#110137). Previously, the bake data was tied to a simulation state which made it harder to reuse.

Now the code for the following things can be reused easily:

  • Convert geometry node socket values into bake items and back.
  • Serialize and deserialize bake items.
The goal is to reuse the same bake items for simulation and normal baking (#110137). Previously, the bake data was tied to a simulation state which made it harder to reuse. Now the code for the following things can be reused easily: - Convert geometry node socket values into bake items and back. - Serialize and deserialize bake items.
Jacques Lucke added 1 commit 2023-07-28 14:32:39 +02:00
buildbot/vexp-code-patch-coordinator Build done. Details
f010736495
extract bake items storage
Author
Member

@blender-bot build

@blender-bot build
Jacques Lucke requested review from Hans Goudey 2023-07-28 14:33:07 +02:00
Hans Goudey approved these changes 2023-07-28 18:21:17 +02:00
Hans Goudey left a comment
Member

In chat I mentioned it might be nice to have a namespace for the bake stuff beyond blender::bke. blender::bke::bake might work fine, though it could be confused with other things. No real strong opinion though. Otherwise this looks straightforward, just shuffling around code and adding comments, which is nice.

In chat I mentioned it might be nice to have a namespace for the bake stuff beyond `blender::bke`. `blender::bke::bake` might work fine, though it could be confused with other things. No real strong opinion though. Otherwise this looks straightforward, just shuffling around code and adding comments, which is nice.
@ -0,0 +35,4 @@
* Create new bake items from the socket values. The socket values are not destructed, but they may
* be in a moved-from state afterwards.
*/
Vector<std::unique_ptr<BakeItem>> move_socket_values_to_bake_items(Span<void *> socket_values,
Member

Might as well return an Array here I guess?

Might as well return an `Array` here I guess?
@ -0,0 +44,4 @@
* should only be used when the bake items are not needed afterwards anymore.
* - If a socket does not have a corresponding bake item, it's initialized to its default value.
*
* \param make_attribute_field A function that creates a field input for any anonymous attributes
Member

\param make_attribute_field -> \param make_attribute_field:

`\param make_attribute_field` -> `\param make_attribute_field:`
Jacques Lucke added 2 commits 2023-07-28 18:29:16 +02:00
Jacques Lucke added 1 commit 2023-07-28 18:30:15 +02:00
Jacques Lucke merged commit 860196d5a1 into main 2023-07-28 18:30:38 +02:00
Jacques Lucke deleted branch bake-storage 2023-07-28 18:30:40 +02:00
Sign in to join this conversation.
No reviewers
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#110577
No description provided.