Core: Add ObjectRuntime::last_update transform, geometry and shading #115196
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
3 Participants
Notifications
Due Date
No due date set.
Blocks
#115243 EEVEE-Next: Fix ObjectHandle::recalc
blender/blender
Reference: blender/blender#115196
Loading…
Reference in New Issue
No description provided.
Delete Branch "pragma37/blender:pull-recalc-last_updated"
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?
Implemented following the design from #114112
#114112 (comment)
WIP: Core: Add ObjectRuntime::last_update transform, geometry and shadingto Core: Add ObjectRuntime::last_update transform, geometry and shadingMaterials can be either on object or geometry level. So to cover all cases
build_materials
should receive anID
of the "owner" of the materials, and the links are to to be added inbuild_material
. Also, a link from geometry's SHADING to object SHADING would need to be added (unless it is already happening).@ -35,6 +35,7 @@ namespace deg = blender::deg;
static void deg_flush_updates_and_refresh(deg::Depsgraph *deg_graph)
{
deg_graph->update_count++;
Wouldn't it be better (or even more correct) to do this in the
deg_evaluate_on_refresh
after the check for whether there are actual update tags?I couldn't figure out how to get the
Geometry Shading -> Object Shading
to work without adding a dummyoperation_node
callback for geometry shading.Is that the intended way to do it?
Also, something not directly related to this patch, but I've noticed that
build_object_data
passes the geometry-owned materials tobuild_materials
, whilebuild_object_data_geometry
passes the object-owned materials.I think it doesn't matter in practice, but shouldn't be the other way around?
You indeed need to create operation node, but instead of providing no-op callback you should omit the callback completely. This will give the graph possibility to do some internal optimizations. Something like this should work:
add_operation_node((ID *)object->data, NodeType::SHADING, OperationCode::SHADING);
The naming seems to be confusing and is to be updated. The
build_object_data_geometry
builds nodes needed for the object geometry component. While it mentions "data" in the name this seems wrong, as all operations happens on the object level there. Thebuild_object_data
buildsobject->data
. So i think what is passed to thebuild_materials
is correct, but indeed it will be nice to have a pass on the naming clarification.@blender-bot build
Tested with Pets animation file, and did not see any issues with the relations or impact on the performance.
This commit (
78de9138e5
) broke 18 unittests in Debug builds!Please build and run debug before committing changes!
Looks like this is already handled in PR actually: !115615