Writing Custom YG Nodes

Ygdrasil is a wonderfully simple and elegant language, there may be times when you need to extend its capabilities. Ygdrasil is designed to be easily extensible by programming new Nodes. Everything in YG is a node, and most of them are actually like plugins anyway. To write a new node, you program in in C++, compile it, and stick it in your yg directory - then, you can just use it like any other node in your YG scene!

Writing new nodes is useful for situations where you want to express complex math, logic, or algorithmic behaviors that are cumbersome using YG node networks; when you want to modify the behavior of existing nodes, such as the Navigator nodes; when you want to do things like manipulate polygon data or textures directly; or when you want to add new input and output capabilities such as a sensor device or a network data stream.

Here are some specific examples of things you'd need to write a node to do:

(c) Ben Chang