This page is incomplete.
The information on this page might change rapidly. You can check the recent changes to see if any updates have occurred.

Contents

Simple grid

file:funwithnodes_simplegrid.png
[[file download: Media:funwithNodes1.ndbx

To create a simple grid we need 3 nodes:

  • a rect node that will be used as shape to be multiplied
  • a grid node that will create a path of points based on x an y axes
  • a place node that will place an instance of the rect node on each point of the grid node

The rect node in the example has 20px as width and height parameter, while the grid node creates a 10 by 10 grid with dimensions 300px 300 px. The place node has two ports: one called shape and another called template. In order to copy the rect on the locations given by the grid node, we should connect the rect node to shape and the grid node to template.

file:funwithnodes_simplegridnetwork.png

Spiral using copy

file:funwithnodes_spiralcopy.png
[[file download: Media:funwithNodes2.ndbx

Following example takes 2 different kinds of polygon nodes to combine them into a new shape using the compound node. The output of which is used as input for shape in the copy node.

file:funwithnodes_spiralcopynetwork.png

  • polygon1 node has a radius of 100 and 5 sides
  • polygon11 node has a slightly bigger radius and 10 sides
  • compound1 node is set to difference and coloured
  • fit1 node is used to scale down the shape as a whole
  • copy1 node has following as parameters:

file:funwithnodes_spiralparams.png

The shape as result of compound looks like this:

file:funwithnodes_spiral1.png

The shape as result after copy:

file:funwithnodes_spiral2.png

Import svg

file:funwithnodes_import_copy.png
[[file download: Media:funwithNodes3.ndbx | svg file

Following example takes an svg file as input. The total number of nodes are:

  • an import node (import1) to import the svg file. In this case one taken from freeclipart.
  • a resample node (resample1) to place more points on the original path, set to "by length" with 15 as value
  • a fit node (fit1) to scale down the returned path to 300 * 300 in dimensions
  • a place node (place1) to recieves the fit node as template and the ellipse1 node as shape input.
  • an ellipse node (ellipse1) to create the ellipse that will be send to the place1 node
  • a copy node (copy1) to create 8 copies of the returned result from place1 and rotate them from the center on a 45 degree angle.

file:funwithnodes_import_network.png

The result from the place1 node looks like this:

file:funwithnodes_import_single.png

Create variations by replacing the x and y parameter of the fit1 node.

file:funwithnodes_import_var1.png file:funwithnodes_import_var2.png

Relocate over wiggle

Next Tutorial: Working With Expressions

Back to the Getting Started page.

Retrieved from "http://beta.nodebox.net/wiki/Fun_with_the_Core_Vector_Nodes"

This page has been accessed 2,428 times. This page was last modified on 9 November 2009, at 09:58. Content is available under Attribution-Share Alike 3.0 Unported.