|
| 1 | += Substance Archive (BETA) = |
| 2 | + |
| 3 | +#type: node |
| 4 | +#context: cop2 |
| 5 | +#internal: sbs_archive |
| 6 | +#icon: sbs_archive |
| 7 | +#tags: tech, 3rdparty, cop |
| 8 | + |
| 9 | +""" Load Substance Archive (SBSAR) Files into COPs """ |
| 10 | + |
| 11 | +== Instructions: == |
| 12 | + |
| 13 | +=== Loading a Substance File === |
| 14 | + |
| 15 | +Loading a Substance File is as easy as entering the path to your SBAR file into the File Path Parameter. |
| 16 | + |
| 17 | +:note: |
| 18 | + This plugin works with Substance Archive Files, not Substance Files. Archive files can be generated from Substance Designer as [Publishing the Substance|https://docs.substance3d.com/sddoc/publish-a-substance-102400072.html] |
| 19 | + |
| 20 | +Once a Substance has been loaded, parameters will be populated dynamically based on the graph. |
| 21 | + |
| 22 | +[Image:/images/substance_cop_loading.png] |
| 23 | + |
| 24 | +=== Viewing the Outputs === |
| 25 | + |
| 26 | +The Substance Archive node will generate a new image plane per Output in Substance. |
| 27 | + |
| 28 | +The easiest way to visualize this is by clicking the image plane dropdown in the Composite View Tab. |
| 29 | + |
| 30 | +[Image:/images/substance_cop_image_planes.png] |
| 31 | + |
| 32 | + |
| 33 | +=== Loading Inputs into the Substance File === |
| 34 | + |
| 35 | +Despite the COP node only having one input, we do support multiple substance inputs. Those come in as different image planes in the input node. |
| 36 | + |
| 37 | +By Default they are name matched, so an input looking for *roughness* will look for an image plane of the same name in the input node. |
| 38 | + |
| 39 | +Parameters for inputs are exposed and you can override which image plane you want to go into what input. |
| 40 | +[Image:/images/substance_cop_input_channels.png] |
| 41 | + |
| 42 | +To have 2 File nodes come in properly into a Substance, you will need to use the [Rename COP|Node:cop2/rename] |
| 43 | + |
| 44 | + node to change the C image plane to the appropriate name and merge the nodes together. |
| 45 | + |
| 46 | +:note: |
| 47 | + You might also need to gamma correct your inputs with the gamma node. |
| 48 | + |
| 49 | +Below is the image of a sample network where 2 files are being read from disk, renamed, gamma'd and sent to the Substance Node. |
| 50 | +[Image:/images/substance_cop_input_network.png] |
| 51 | + |
| 52 | + |
| 53 | +=== Working with Substance Files with Multiple Graphs === |
| 54 | + |
| 55 | +In the case of multiple graphs inside of a single SBAR file, a new graph parameter will show up. Allowing you to choose which graph you'd like to work with. |
| 56 | + |
| 57 | +[Image:/images/substance_cop_multigraph.png] |
| 58 | + |
| 59 | + |
| 60 | +=== Hooking Substances into other parts of Houdini === |
| 61 | + |
| 62 | +To use the contents of a Substance Node in other parts of Houdini, you can make use of the [Op Syntax|/io/op_syntax] |
| 63 | + |
| 64 | +:note: |
| 65 | + The `{channel_name}` syntax does not work with Mantra. To use channels with Mantra you will need to use the [Rename COP|Node:cop2/rename] and rename your target channel to C and do the [Op Syntax|/io/op_syntax] to the rename node. |
| 66 | + |
| 67 | +== Known Issues == |
| 68 | + |
| 69 | + * Animated Inputs Images are not supported |
| 70 | + * *Visible If* Parameter Expressions for Outputs are not supported |
| 71 | + * Windows Only during Beta |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | +@parameters |
| 76 | + File Path: |
| 77 | + The path for your SBSAR file |
| 78 | + Reload: |
| 79 | + Reloads the current SBSAR File |
| 80 | + Size: |
| 81 | + Override the output size of the SBSAR |
| 82 | + Substance Parameters: |
| 83 | + This area will populate dynamically based on the parameters in your Substance Graph. |
| 84 | + Name Image Plane from Usage: |
| 85 | + Uses the Usage type as the name of the Image planes, instead of using the Labels. This is useful if you are hooking your substances into a material, and don't care about what the graph output was named, just what channel it should link to. |
0 commit comments