Blender Git Loki

Git Commits -> Revision d165b1b

Revision d165b1b by Sergey Sharybin (master)
September 25, 2014, 11:08 (GMT)
Cycles: Add method to dump current shader graph to the graphiz file

This is rather useful to see how good optimization went and so.

Currently uses quite simple notation: shader nodes are nodes on the
graph, connects between graph nodes are named by the sockets names,
so i.e. connection between BSDF and Mix would be named bsdf:closure1.

Could be improved in the feature to draw fancier graph, but it's good
enough already.

Use in the following way:
- To create graphix file call graph->dump_graph("graph.dot")
- To visualize the grapf call: dot -Tpng graph.dot -o graph.png

Commit Details:

Full Hash: d165b1b266b9d19775ee73733b63824b8551aea6
Parent Commit: b3d414c
Lines Changed: +44, -0

2 Modified Paths:

/intern/cycles/render/graph.cpp (+42, -0) (Diff)
/intern/cycles/render/graph.h (+2, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021