Page MenuHome

Compositor: Export operation results as debug option
ClosedPublic

Authored by Manuel Castilla (manzanilla) on Jun 27 2021, 11:11 PM.

Details

Summary

When fixing issues, seeing operation results can be helpful for
detecting which operation went wrong.

This patch adds an option for exporting all operations results to
image files.
Exceptions are:

  • Output operations: They are already exported or can be seen in UI.
  • Constant operations: There are too many and is rarely useful.

They are exported to "<temp session folder>/COM_operations/"
with filenames "<operation class name>_<operation id>.png".
Only works on full frame execution mode.


Operations ids can be seen on graphviz with this patch: D11720: Compositor: Graphviz improvements
Output example:

Diff Detail

Repository
rB Blender

Event Timeline

Manuel Castilla (manzanilla) requested review of this revision.Jun 27 2021, 11:11 PM
Manuel Castilla (manzanilla) created this revision.
Jeroen Bakker (jbakker) requested changes to this revision.Jul 5 2021, 9:07 AM

Future TODO: We should find a way to incorporate this with Graphviz. (https://www.graphviz.org/doc/info/shapes.html#html)

source/blender/compositor/intern/COM_Debug.cc
478

This is risky.
would rather only delete .png and only files.

an incorrect placed link could do a lot of harm.

source/blender/compositor/intern/COM_Debug.h
32

COM_EXPORT_OPERATION_BUFFERS

This revision now requires changes to proceed.Jul 5 2021, 9:07 AM
  • Merge branch 'master' into cmp-export-ops
  • After merge fixes
  • Only delete png files
  • Rename flag to COM_EXPORT_OPERATION_BUFFERS
  • Rename delete method to delete_operation_exports
Manuel Castilla (manzanilla) marked 2 inline comments as done.Jul 7 2021, 8:22 PM
This revision is now accepted and ready to land.Jul 19 2021, 10:09 AM