Geometry Nodes: add simulation support #104924
No reviewers
Labels
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
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#104924
Loading…
Reference in New Issue
No description provided.
Delete Branch "geometry-nodes-simulation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This adds support for building simulations with geometry nodes. A new
Simulation Input
andSimulation Output
node allow maintaining a simulation state across multiple frames. Together these two nodes form asimulation zone
which contains all the nodes that update the simulation state from one frame to the next.A new simulation zone can be added via the menu (
Simulation > Simulation Zone
) or with the node add search.The simulation state contains a geometry by default. However, it is possible to add multiple geometry sockets as well as other socket types. Currently, field inputs are evaluated and stored for the preceding geometry socket in the order that the sockets are shown. Simulation state items can be added by linking one of the empty sockets to something else. In the sidebar, there is a new panel that allows adding, removing and reordering these sockets.
The simulation nodes behave as follows:
Simulation Input
node are evaluated to initialize the simulation state. In later frames these sockets are not evaluated anymore. TheDelta Time
at the first frame is zero, but the simulation zone is still evaluated.Simulation Input
node outputs the simulation state of the previous frame. Nodes in the simulation zone can edit that data in arbitrary ways, also taking into account theDelta Time
. The new simulation state has to be passed to theSimulation Output
node where it is cached and forwarded.Simulation Output
node can return the previously cached data directly.It is not allowed to connect sockets from inside the simulation zone to the outside without going through the
Simulation Output
node. This is a necessary restriction to make caching and sub-frame interpolation work. Links can go into the simulation zone without problems though.Anonymous attributes are not propagated by the simulation nodes unless they are explicitly stored in the simulation state. This is unfortunate, but currently there is no practical and reliable alternative. The core problem is detecting which anonymous attributes will be required for the simulation and afterwards. While we can detect this for the current evaluation, we can't look into the future in time to see what data will be necessary. We intend to make it easier to explicitly pass data through a simulation in the future, even if the simulation is in a nested node group.
There is a new
Simulation Nodes
panel in the physics tab in the properties editor. It allows baking all simulation zones on the selected objects. The baking options are intentially kept at a minimum for this MVP. More features for simulation baking as well as baking in general can be expected to be added separately.All baked data is stored on disk in a folder next to the .blend file. #106937 describes how baking is implemented in more detail. Volumes can not be baked yet and materials are lost during baking for now. Packing the baked data into the .blend file is not yet supported.
The timeline indicates which frames are currently cached, baked or cached but invalidated by user-changes.
Simulation input and output nodes are internally linked together by their
bNode.identifier
which stays the same even if the node name changes. They are generally added and removed together. However, there are still cases where "dangling" simulation nodes can be created currently. Those generally don't cause harm, but would be nice to avoid this in more cases in the future.@blender-bot package
Package build started. Download here when ready.
@blender-bot package
Package build started. Download here when ready.
Hello, is there any way to get an updated patch or branch MacOS Intel compiled build to download?
https://builder.blender.org/download/patch/PR104924/ ?
Thanks!
@blender-bot package
Package build started. Download here when ready.
Great thank you @HooglyBoogly !
@blender-bot package
Package build started. Download here when ready.
WIP: Experimental geometry nodes simulation branchto Geometry Nodes: Simulation nodesGeometry Nodes: Simulation nodesto Geometry Nodes: add simulation support@blender-bot package
Package build started. Download here when ready.
@blender-bot build
0de54b84c6
Pull request closed