You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.txt
+17-11Lines changed: 17 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
NodeBox for OpenGL
2
2
==================
3
3
4
-
NodeBox for OpenGL is a Python module for creating 2D interactive visuals using OpenGL. It is based on the command set of the classic NodeBox for Mac OS X (http://nodebox.net). It has support for Bezier paths, text, image filters (blur, bloom, ...), offscreen rendering, animation & motion tweening, and simple 2D physics. Its purpose is to implement a small game engine for "City In A Bottle" (http://cityinabottle.org).
4
+
NodeBox for OpenGL (NOGL) is a Python module for creating 2D interactive visuals using OpenGL. It is based on the command set of the classic NodeBox for Mac OS X (http://nodebox.net). It has support for Bezier paths, text, image filters (blur, bloom, ...), offscreen rendering, animation & motion tweening, and simple 2D physics. Its purpose is to implement a small game engine for "City In A Bottle" (http://cityinabottle.org).
5
5
6
6
VERSION
7
7
=======
@@ -27,8 +27,10 @@ If this is not the case, try updating to a new driver.
27
27
INSTALLATION
28
28
============
29
29
30
-
To be able to import NodeBox in your scripts, Python needs to know where the module is located.
31
-
There are three basic ways to accomplish this:
30
+
If you have pip, you can automatically download and install from the PyPi repository:
31
+
> pip install nodebox-opengl
32
+
33
+
If that doesn't work, download the latest version manually. To be able to import NodeBox in your scripts, Python needs to know where the module is located. There are three basic ways to accomplish this:
32
34
33
35
- Put the nodebox/ folder in the same folder as your script.
34
36
- Put the nodebox/ folder in the standard location for modules so it is available to all scripts.
@@ -44,15 +46,15 @@ There are three basic ways to accomplish this:
44
46
If you get an "import pyglet" error, make sure that Pyglet is installed in site-packages/ too.
45
47
46
48
Binaries:
47
-
NodeBox contains C extensions for faster mathematics.
48
-
These are precompiled for Mac, on other systems you need to execute "python setup.py" in nodebox/ext/ manually.
49
-
Psyco (http://psyco.sourceforge.net/) can boost performance as well (if you use a 32-bit Python).
50
-
A version precompiled for Mac is included in nodebox/ext/.
49
+
NOGL contains C extensions for faster mathematics. If you want to activate them, you need to compile them from source.
50
+
From the command line, do:
51
+
> cd nodebox/ext
52
+
> python setup.py
51
53
52
54
USAGE
53
55
=====
54
56
55
-
- For users coming from NodeBox for Mac OS X, or NodeBox 2: this NodeBox for OpenGL does not have a built-in code editor. You can use the IDLE editor bundled with Python. On Mac OS X, we prefer TextMate (http://macromates.com).
57
+
- For users coming from NodeBox for Mac OS X: this NodeBox for OpenGL does not have a built-in code editor. You can use the IDLE editor bundled with Python. On Mac OS X, we prefer TextMate (http://macromates.com).
56
58
- From the command line, you can run a script with: python example.py (or command-R in TextMate)
57
59
- This will open an application window with the output of your script.
0 commit comments