hivehoogl.blogg.se

Nodebox tutorial
Nodebox tutorial










NodeBox for OpenGL can be used for simple games, interactive media installations, data visualization and image compositing. The original goal is to implement a small game engine for City In A Bottle. It opens the main application window with n().įrom import Flock It defines a draw() function and attaches it to the canvas, so that it will be drawn each animation frame. It imports the aphics module with the standard set of drawing commands. To get started, try out some examples, or open and edit examples/test.py.īelow is a typical NodeBox script. This will open an application window with the output of your script. The documentation works in conjunction with the examples folder: subjects are touched here and demonstrated in more detail across various examples.įrom the command line, you can run a script with: python example.py (or command-R in TextMate). Users are assumed to have knowledge of Python (functions & classes) and NodeBox (the original docs are more verbose). You can use the IDLE editor bundled with Python. NodeBox for OpenGL does not have a built-in code editor. You'll need a 32-bit Python (version 2.5 or 2.6) and Pyglet to run it.

nodebox tutorial

Screenshot: examples/07-filter/03-mirror.py Quick overview It has built-in support for paths, layers, motion tweening, hardware-accelerated image effects, simple physics and interactivity.

#NODEBOX TUTORIAL FOR MAC OS X#

It is built on Pyglet and adopts the drawing API from NodeBox for Mac OS X ( ).

nodebox tutorial

NodeBox for OpenGL is a free, cross-platform library for generating 2D animations with Python programming code.










Nodebox tutorial