Custom Tools LiST

Graphics Software

General-Purpose Software

Processing is probably the most used platform for Generative Art. It is an “open source programming language and integrated development environment (IDE) built for the electronic arts and visual design communities”. Java-based. There is also a JavaScript port, Processing.js (with a nice example here: Algorithm Ink).

Nodebox – A Python based alternative to Processing. “NodeBox does less, prettier, in Python. Processing does more, uglier, in Java“. The new version 2.0 is finally available on Windows.

vvvv is “a toolkit for real time video synthesis”. Not only video – vvvv also handles audio and static images quite well (see Eno Henze: Reality Foam. for a beautiful example).

Continue reading “Custom Tools LiST”

Advertisements

Creating an Executable Processing Sketch within Netbeans.

Processing IDE, though kind of rustic, has the cool ability to generate Mac and PC executables from the current Sketch.

As put more and more work into mastering processing (far from there yet..), I decided to do all the “really serious” coding in Netbeans 6.01, and just use processing as a library or for rapidly prototyping ideas.

Therefore, I miss the “create executable” processing feature that allowed me to distribute all kinds of applications to any platforms.

After a bit of googling, I have found the solution to the problem. It is solved in the following steps : 

  1. 1. In source, “Source Packages”, create a new file called “manifest.mf
  2. 2. Add a “Main-Class: your-package.your-main-class” in “manifest.mf(com.whatever.project.MainApp)
  3. 3. In project.properties file put “manifest.file=${build.dir}/classes/manifest.mf”

I you add that to the “jar-packing” functionality described in my “How to include processing jar in your project’s JAR” blog entry, you could normally create an executable application that contains only one .jar file. Cool !

Delicious tags : ,

How to embed resource files in your jars using Netbeans

How to embed various file types as resources in your Netbeans jar files

Following the previous article about libraries jar file packaging on the path to “I want all my original processing features in my IDE“, we are going to detail how to replicate the processing functionality of embedding the contents of the /{SketchPath}/data/ folder in the resulting application.

So, we would like to include resources (images, sound, data, shaders, etc) in our applications so that we don’t need to use file paths and can package these resources in the application’s jar file ? And we would also like to access these resources from our code ? Here is how to do it.. Continue reading “How to embed resource files in your jars using Netbeans”

Configure OpenGl and Processing in NetBeans 6.01

How to configure NetBeans 6.x to run OpenGl enabled Processing sketches

After some jours of hair-pulling, I have stumbled upon this thread explaining how to configure NetBeans to run a Processing applet in OpenGL mode :-).

It seems that the path to follow is this one :

  1. –  Right click on the ‘Libraries’ folder in the left hand column and “Add JAR/Folder”, then in the dialog box locate the opengl.jar & jogl.jar files inside :
    ../Processing XXX/libraries/opengl/library/ folder
  2. Right click on the name of the project in the left hand column and select properties. Then in the box that pops up (Project Properties), click on the “Run” link in the left column. In the VM Options field you want to enter:
    -Djava.library.path="/Applications/Processing XXXX/libraries/opengl/library" 
  3. Running the application now will work, but if you try and run the compiled JAR of your application from the /dist/ folder, you will find it won’t work unless you copy some files into that directory.
    For Mac you need to copy all the *.jnilib files and for PC it is the *.dll files from : 
     ../Processing
    XXXX/libraries/opengl/library/
    into the /dist/ folder.

Isn’t that nice ? Now I can use the full-fledged NetBeans IDE (and hopefully auto-completion) to code my Processing sketches.
 

del.icio.us Tags: , , , ,