The Hierarchy Editor is where the structure of a 3D Layer is defined, where "commands" are issued to the Ventuz Rendering Engine and where it is specified in which order they happen. In general, each Hierarchy Node results in one or more calls to the GPU, such as setting a material or rendering a geometry.
To save screen space Layers can also be edited from within the Hierarchy Editor. Check the Window Option Use for Layers.
For sure the behavior of the Nodes doesn't change based on where you edit them but the Editors differ in some ways.
Here is a list of things that are different from editing Layers in the Layer Editor
The Hierarchy Nodes are part of a horizontal tree structure which starts at the Layer Root, symbolized in the top left corner of the Hierarchy Editor:
The Ventuz Rendering Engine starts at the Layer Root and traverses down in a depth-first traversal order. The effect of a node will be active until all children of the node have been traversed and traversal goes back to the parent of the node. In the example below, the light gray Material node affects both the Rectangle and the Sphere node which will thus be rendered with a light gray color. However, the Axis2 node will only affect the Rectangle, not the Sphere.
All DirectX graphic cards work with a so called State Engine which basically applies a command (i.e. setting the material to light gray) to all successive rendering calls until another command changes the state (in this case material) to another value. To improve rendering performance, it is important to keep this in mind and move items common to multiple nodes as far up in the hierarchy as possible. In the above example, we could theoretically add two identical material assignments just before the respective geometry instead of the one in the example. This would achieve the same rendering result but would carry the performance penalty of an additional state change.
Located on top of the Hierarchy Editor is a Menu Bar:
Set Render Point | Defines which part of the tree is used for the Isolate Mode. | |
Container Level Up | Navigates to the next higher Container level | |
Container Level Down | Navigates into a selected Container or Layer | |
Blocked | Blocks the selected Node or Selection | |
Inactive | Sets the Node or Selection Inactive | |
Collapsed | Collapses or Un-Collapses a subtree | |
Merge to Container | Merges the Selection into a Container | |
Seal Container | Seals the selected Container | |
Edit Annotation | Adds an Annotation to the selected Node | |
Show Annotations | Toggles the visibility of Annotations | |
Node Color | Sets a Color for the selected Node | |
Scene Statistics | Indicates Issues and open the Scene Statistics to locate them | |
Add Bookmark | Adds a Bookmark for the selection. Offers a drop down menu for more. |
A new node can be added to the hierarchy by selecting it from either the Toolbox or Fast Toolbox and dragging it into the hierarchy. Depending on where it is released, the node will be inserted in a different fashion:
Icon | Drop Zone | Area | Effect |
---|---|---|---|
Top | Upper third of the node icon. | The new node will have the same parent as the node it is dropped on but will be added such that it is rendered before the target. | |
Bottom | Lower third of the node icon. | The new node will have the same parent as the node it is dropped on but will be added such that it is rendered after the target. | |
Right | Right third of the node icon. | The new node will have the node it is dropped on as parent. It is added as the last child of that node. | |
Left | Left third of the node icon. | The new node will be inserted between the node it is dropped and its parent. | |
Left (first) | Left third of the node icon but only works for the top-most child. | The new node will be inserted between the node it is dropped on and its parent. All children of that node will be children of the new node. |
Clicking on a node selects it, which is represented by an orange box drawn around the node's icon. This simple click will also add a shadow below the selected icon and all of its children. This visualizes that any operation affecting the current selection such as deletion will also affect the children.
In the example, the Axis2 node has been directly selected but the Rectangle has also been indirectly selected. To select a node without indirectly selecting its children, press and hold CTRL while clicking on the node.
Instead you can also click and drag to create a Selection Box and select multiple nodes at once. Without the CTRL-modifier, selecting multiple nodes in the same subtree will select the topmost node only (and the subtree is selected indirectly).
If nodes have already been selected, holding SHIFT will add the new selection to the existing one.
It is possible to store the current selection of Hierarchy nodes in a bookmark. Such a Selection Bookmark is created by clicking on the bookmark icon in the menu on the top of the Hierarchy Editor.
By clicking on an existing bookmark the saved selection is restored in the editor. It is possible to rename bookmarks by clicking on an entry.
A selection can be moved to a different position in the hierarchy by dragging the selection to its new place. The drop zones as mentioned here still apply.
By pressing CTRL while dragging, the selection will not be moved but a duplicate will be inserted at the new position instead. All content nodes that are bound to the select will be duplicated as well so that a truly independent copy is created. Using CTRL + P inserts a copy of the selection as a sibling to the original nodes.
If CTRL + ALT are held during the drag, a so called reference copy is created, duplicating the Hierarchy Nodes but not the bound content nodes. For example, if an Axis is bound to a Mover, the reference copy will create an additional Axis that is bound to the same Mover. CTRL + SHIFT + P does the same and inserts the new nodes as siblings.
If CTRL + SHIFT are pressed, a link (in some programs also called a reference) to the existing nodes will be inserted instead of a duplicate. This is a very powerful but also potentially error-prone and complex feature when working with tree structures. It is powerful in that the same nodes can be used multiple times in a scene although only one copy resides in memory. The problem with multiple linking is that the linked nodes appear at multiple positions in the Hierarchy Editor but the user still has to keep in mind that there is in fact only one instance. Any change done to the one item in the tree will also affect the others because there is only one node. Similarly, deletion of linked nodes can create unintendend or unforeseen consequences when linked references are forgotten about. Nodes that have multiple links are designated with a gray triangle in the lower left corner of the node icon, see here.
In the example above, there are two axis nodes but only one material node. The material node has been linked to each of the Axis nodes.
A special replication operation is available if a selection is dragged with the right mouse button clicking a menu will popup right after the clicking was released on the drop target. This allows the user to create multiple links or copies of a selected node/sub-tree easily.
This menu lets you perform the operations described above without using the modifier keys during the drag&drop operation. The menu entry More... opens the Replicate Dialog:
This dialog let you create one or multiple replicates of the dragged selection while the way how the replicates should be created can be selected:
The Instances number indicates how often the selected operation should be performed.
By right-clicking on a node, its subtree is collapsed or expanded. This is very useful when hierarchies grow to still keep a good overview. Pressing and holding the right mouse button will however open the Context Menu.
A selection of nodes can be "deactivated" in one of two ways:
There is still a small overhead of traversing a blocked node. Therefore nodes that are no longer needed should be deleted, not just blocked.
All Hierarchy Nodes shown in the Hierarchy Editor are by default in a linked state. That means a Node is linked to another one, which again is linked to another and so forth until the container's or layers's root has been reached. An Hierarchy Node also can be in an unlinked state if its node is not part of such a link-chain described above. Unlinked nodes are part of the scene (or container) but are not traversed by the Renderer.
To unlink a selected Hierachy Node, either select the menu entry Edit/Unlink or press SHIFT + DEL. Unlinked nodes are displayed in a special area at the bottom of the Hierarchy Editor.
To re-link nodes that have been unlinked before, simply drag&drop or copy paste them into the normal, linked area. If no more unlinked nodes are in the container or scene the Unlinked Items area disappears.
Each node can be given an individual name by double-clicking on the node (or pressing F2). This is a great way to mark certain subtrees, for example as "main menu", "red button", and so on.
As a further functionality to keep an overview in complex scenes, nodes can be assigned a node color by choosing a selection and then selecting a color from the top menu bar or from the context menu (pressing and holding until the menu appears).
If a color is set at one node, it will be inherited by all its children. In the above example, only the Axis and the Material node have been explicitly assigned a color. Note that only Hierarchy nodes can be colored. The coloring is generally most effective when used sparingly to avoid a colorful chaos in the Hierarchy Editor.
When coloring is not enough, the user can also add a "note" to a node by selecting the node and then choosing Annotation from the top menu or the context menu (pressing and holding the right mouse button until the menu appears). The box can contain any HTML formatted text, thus being the ideal place to leave notes (i.e. keyboard shortcuts, ...) to the person that will actually run the show or to a colleague also working on the same scene.
The visibility of annotations can be toggled in the top menu.
For more information about Annotations take a look at this Page
The visual representation of a node can have a number of visual markers in addition to the icon itself and the brackets. The different decorations will be explained in more detail when discussing the individual topics that create them.
Icon | Decoration | Description |
---|---|---|
Blue Corner | Node is connected to a Data Source (XML, Excel, RSS, ...) | |
Yellow Corner | Node is connected to an interactive Input Node (Mouse, Keyboard, ...) | |
Green Dot | Node is connected to an Animation Node (Keyframe Animation, Mover, Alternator,...), for more information see Animation and State Engine. | |
Yellow Dot | Node is connected to Template Data | |
Lightblue Dot | Node is connected to Node is connected to Project Data | |
Purple Dot | Node is connected to Scene Data | |
Grey Corner | Node is linked multiple times within a hierarchy | |
Red Corner | Node has an Annotation. Only visible when Annotation Visibility is turned off. | |
Lightblue Corner | Indicates that a Material Node has addtional Options applied i.e a Draw Mode. |
If a node is rendered in a light grey, it has been blocked. If a line is drawn through the node icon, the node has been set inactive. For both, see Blocked and Inactive.
| Rendered Preview | if only Property Group's in the Standard or Shadow Options tab are used. |
---|---|---|
| Rendered Preview with light blue decoration | if Property Group's in the Standard or Shadow Options tab are used together with any other Option like a certain Draw Mode or a certain Blending |
| Dedicated Option Icon | every Material Option has it's own dedicated Icon, that is shown whenever no other Property Group in any other tab is used. |
Since complex scenes can require a large rendering hierarchy, Ventuz offers a number of features to give further structure to a scene. The Content Editor can group nodes in Families by drawing a gray rectangle around them. This does not change the functionality but is simply a visual queue to the user that these nodes belong together. To create a family, select multiple nodes in the Content Editor and either right click and hold untill a menu pops up or press CTRL + SHIFT + F. It is also possible to use the little family button on the top of the Content Editor. And pressing the eye icon in the upper right corner of the Content Editor allows to en/disable the option to always show all family members when one corresponding node is selected.
Even more powerful is the usage of containers which are provided in the form of the Hierarchy Container and the Content Container. Nodes can be dragged into a container to create a "meta-node" that contains multiple nodes and bindings but looks and acts in the Hierarchy like a single node. Containers can be entered by double-clicking on the arrow on the left side inside the node icon.
As an example, a customized slider functionality might be implemented as a container containing multiple geometries, materials and logical elements. Copying them to every place in the scene that a slider should be used, would be tiresome and error-prone. Creating a container and then using that as a customized node is much more effective.
The topic of containers is so important that it will be discussed more in-depth under Containers and Interfaces