Houdini 20.5 Copernicus

Cooking

Details the cooking methods that Copernicus uses.

On this page

Overview

Cooking is when you run a network to produce its results. You can cook Copernicus networks using the traditional or compiled method. Copernicus doesn’t cache data based on time, so it recooks everytime you change frames in the timeline.

Copernicus automatically uses traditional cooking when you view a node in the COP network. The COP Network SOP, ROP Image Output COP, and Image ROP have a Compiled Cook parameter that you can turn on to change from traditional (the default) to compiled cooking. For the COP Network SOP, this parameter only applies when cooking the result of the SOP as a whole because cooking individual COPs in the network still uses traditional cooking.

Tip

When you turn on Compiled Cook in the COP Network SOP, the Output APEX Graph parameter appears. Turn on Output APEX Graph to output the APEX graph.

Traditional cooking

Traditional cooking is the default method that Copernicus uses and is similar to how SOPs cook in the network. Each non-HDA COP grabs all of its inputs and then cooks all of its outputs. Traditional cooking caches intermeditate results on the node, which allows for fast displays of previously-cooked results when you change display flags.

The following are scenarios when traditional cooking is beneficial:

  • Interactive workflows

  • Your network has a large chain of nodes that may benefit from caching

  • You want to save out a huge network where most of the network isn’t time dependent

Compiled cooking

Compiled cooking is similar to how Compiled Blocks cook in SOPs. You choose a section of the network to cook, and then Copernicus analyzes the network and builds a program to get the requested results. This means compiled cooking has to build and run a new program to cache the results. Each non-HDA COP grabs only the inputs necessary to compute the required outputs, which means it only cooks the required data. Since storage is reused, Copernicus deletes unnecessary intermediate data and layers to minimize memory usage.

The following are scenarios when compiled cooking is beneficial:

  • Rendering out results

  • You want to cook a section of the network

Combining traditional and compiled cooking

You can combine traditional and compiled cooking to cook part of a network.

  1. In your Copernicus network, wire a Block Begin COP into the first node you want to cook.

  2. Wire the last node you want to cook into a Block End COP.

    Tip

    Instead of manually adding a Block Begin and Block End COP, you can add a Block COP in your scene to automatically add the blocks.

  3. Do one of the following:

    • Turn on Enable Compiling in the Block End COP to produce the outputs of the block using compiled cooking.

    • Add an Invoke Block COP and set Block End Node to the Block End COP. This runs the block as a program with dynamically bound inputs.

Memory

Copernicus uses OpenCL, which means it uses GPU memory and can require a lot of video RAM (vRAM). Houdini tracks how much vRAM the COP layers use. If the vRAM fills up, Houdini automatically moves the data into the main memory when the GPU memory is low or the current process uses more than the set amount of OpenCL memory. This can slow down Houdini’s processing.

You can use the HOUDINI_OCL_COP_MEMORY variable to control the amount of OpenCL device memory that COPs can use. You can also open the Cache Manager window (choose Windows ▸ Cache Manager) to view or clear the current COP OpenCL Buffer Cache memory.

Copernicus

Basics

Next steps

  • Working with Copernicus nodes

    Provides next steps and workflows for how to use Copernicus nodes.

  • Slap comp

    Slap composite (slap comp) is a fast image manipulation you can use to view approximate and live results of a final composite.

  • OpenFX

    Describes what OpenFX is and how to use it in your network.

  • Hatching

    Describes how to use hatching in your Copernicus network.

  • Copernicus tips

    Useful tips and information while using COPs.

Advanced concepts

  • Normals

    Defines the normals that the Copernicus network uses.

  • Spaces

    Defines the spaces that the Copernicus network uses.