Node System

From Moviesandbox

(Difference between revisions)
Jump to: navigation, search
Current revision (02:39, 18 March 2009) (edit) (undo)
 
(2 intermediate revisions not shown.)
Line 1: Line 1:
Here's a brief description on how the node system works.
Here's a brief description on how the node system works.
-
Every Root Node is the beginning of a so-called ''nodeTree''. The controller of the scene has a a vector with every nodeTree in it. It will call the ''execute()'' function of the current Node in every tree.
+
Nodes are visual representations of instructions that are executed sequentially (or depending on the connections of the Nodes amongst each other) when the scene is running. They all start with a Root, either a CharacterRoot which is connected to a character, a ScriptRoot
 +
Every [[Node]] can be connected through the [[NodeIn]] and [[NodeOut]] buttons to another node - this creates so called '''Node Trees'''. The [[Controller]] has a list of every node in the scene.
 +
Every [[RootNode]] is the beginning of a '''Node Tree'''. The Controller will call the ''execute()'' function of the current Node in every tree.
<h3>Code Calling Order</h3>
<h3>Code Calling Order</h3>
-
It all starts in the controller, and, well, we need a rootNode.
+
When connecting, the nodes built a linked list that we travel down when the scene is running. We connect the ''nextNode'' variable by connecting with the NodeIn and NodeOut Buttons.
-
The current node has it's
+
Nodes that qualify as Root are: RootNode and KeyInputNode
 +
 
 +
Once the node is finished executing, it calls the static function ''Node::nextNode()'', that will switch to the next node in this tree.
 +
 
 +
[[Category:Coding]]

Current revision

Here's a brief description on how the node system works.

Nodes are visual representations of instructions that are executed sequentially (or depending on the connections of the Nodes amongst each other) when the scene is running. They all start with a Root, either a CharacterRoot which is connected to a character, a ScriptRoot Every Node can be connected through the NodeIn and NodeOut buttons to another node - this creates so called Node Trees. The Controller has a list of every node in the scene. Every RootNode is the beginning of a Node Tree. The Controller will call the execute() function of the current Node in every tree.

[edit] Code Calling Order

When connecting, the nodes built a linked list that we travel down when the scene is running. We connect the nextNode variable by connecting with the NodeIn and NodeOut Buttons.

Nodes that qualify as Root are: RootNode and KeyInputNode

Once the node is finished executing, it calls the static function Node::nextNode(), that will switch to the next node in this tree.

Personal tools
Moviesandbox for UT2004