» Generic Nodes
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

Generic Nodes

There are several nodes in vvvv which are programmed in a generic way. This means that the functionality is defined once in the project GenericNodes and every developer can get over 20 nodes with just some clicks for his own data type.

You can browse the nodes and their source code here: Generic Nodes on github

Source Code Structure

Most generic nodes are pure spread operations and do not need to know anything about the type on which they operate, we called them basic nodes. However, there are some nodes which need to check whether two instances are equal in order to execute their functionality. Other, more specialized nodes need to clone an instance or calculate the distance between two instances of the type on which they operate.

We decided to sort the source code according to the method which is required for the data type, so each developer can decide which nodes make sense for his data type.

Every generic node definition should be in its own file and should be located in the folder with the name of the method it needs to operate.

Adding nodes for you own data type

First reference the GenericNodes project in your own project. Either use the nuget package or the project directly if you are working in the Addonpack.sln. Then the only thing you have to do is to copy the code from our template files and replace the string 'REPLACEME_CLASS' with your own data type and the string 'NODECATEGORY' with the category in which the nodes should land in the node browser.

For example, if your type is called BooleanShape in the category BooleanGeometry then the Cons node would look like this:

[PluginInfo(Name = "Cons",
                Category = "BooleanGeometry",
                Help = "Concatenates all input spreads to one output spread.",
                Tags = "generic, spreadop"
                )]
    public class BooleanGeometryConsNode : Cons<BooleanShape> {}

We even made an easy to use convvvverter patch which does this for you. It is also located in the GenericNodes project and called TemplateConvvvverter.v4p. Open it and follow the instructions in the patch.

Contributing a new Generic Node

If you have a generic node which you want to add to the GenericNodes project, fork the vvvv-sdk sources on github and add the generic node in the same way as the other ones:

1.) Create a .cs file named after your node in the folder with the name of the method you need for the node.

2.) Add a dummy instantiation of your node to the template files

3.) Open a pull request from your fork

If the method you need for your node doesn't exist, create a new folder and a new template file with the same naming convention.

anonymous user login

Shoutbox

~13h ago

ravazquez: @catweasel it was late when I wrote that, it's probably not the case, will test and report

~13h ago

catweasel: @ravazquez in separate instances of vvvv? Awesome if so!

~3d ago

ravazquez: @karistouf you can use my Global S&R contribution for this purpose

~4d ago

joreg: yes, no S/R. OSC is one way to communicate btw. instnces.

~4d ago

karistouf: @joreg: between 2 differents instances of VVVV on same computer,no S and R (values) possible ? only OSC way ?

~6d ago

tonfilm: glad to share the second update on the #vl #xenko #3d library: #vvvv #visualprogramming #creativecoding vl-xenko-3d-engine-update-2

~8d ago

joreg: rather toot then tweet? follow the hype and us on mastodon: https://mastodon.xyz/@vvvv #vvvv

~8d ago

ggml: any recommendation for renting visuals-grade pcs in berlin ?

~8d ago

metrowave: Structure Sensor Core now for Windows: https://store.structure.io/buy/structure-core cool features, could be useful in vvvv