processing applets on playstation 3

i finally got ubuntu gutsy 7.10 working on my playstation 3. the current firmware 2.10 made some problems with the wireless connection. but i found a fixed kernel on psubuntu.com. the only problem now is the poor performance because of the 256 mb ram of the ps3 and the software rendering.

processing itself does not work yet. but with ibm’s java i got my processing applets working by calling them via appletviewer in the shell.

appletviewer index.html (it works with urls, too)

ubuntu_ps3_01.jpg

instantplayer and opensg did not compile yet. i tried to build opensg via deb source packages. but johannes will set up a build system for me next week.

fritzing 0001 alpha released

“We are extremely pleased to publish the very first release of Fritzing, the 0001 Alpha!

This release gives you a very early glance of what Fritzing will enable you to do, so please give it a spin and let us know what you think. It obviously still has a lot of rough edges and might cause some aesthetical pain, but you can already do the whole process from wiring up a little circuit and exporting it to an Arduino shield PCB.

So enjoy it the way you enjoy meeting a new friend: Please say hello at http://fritzing.org/download.”

processing sketches as interactive textures

i managed to get processing sketches working as textures in instant reality (x3d). now it is possible to simply write animated and interactive textures in processing and use them in 3d scenes. this is done by an applet wrapper that renders a processing sketch offline and copies its pixels[] array into an x3d SFImage().

processing_texture.jpg

update:
here is an example how to load a processing applet as texture in instant player..

ProcessingTexture.class is a wrapper class that loads a processing applet and puts its framebuffer into an SFImage. it also sends mouse events from instant player to the applet.

in order to load your processing applet you have to follow these steps:

  • download instant player and install it
  • download the zip with the wrapper class and the examples and extract it
  • write your processing sketch (size in power of two: 256×256, 512×512, 1024×512, ..), export it and copy the jar into the same folder as the example
  • open ProcessingTexture.x3d in a text editor
  • add your jar file to the “javaClassPath” in the ContextSetup node at the top of the file
  • change the value of the script node’s “name” field to the name of your applet (without .class or .pde)
  • open the x3d file in instant player. you should see your applet on a cube

download: instantprocessing.zip

sudden motion sensor in instant player

this is an example about using the macbook’s sudden motion sensor within a 3d scene of instant player. it is based on java and daniel shiffman’s processing library. just add that library to your classpath or copy it to /Library/Java/Extensions

instantmotion.jpg

source code:
instantmotion.x3d
instantmotion.java
instantmotion.class

i am going to add more processing libraries to instant player over the next weeks (i.e. blob detection). using processing libaries in instant player is quite easy. the only problem is that most libaries are using PApplet as parent class and calling an awt window.

nasa worldwind java in processing

finally. nasa world wind java is out. i was wainting since january to play with it. it’s great that they moved from .net to java in order to get platform independent.

the sdk is very easy to use but the examples are horrible. three classes with a lot of swing and awt garbage. only 10 lines of code are really needed to get it working in processing.

import gov.nasa.worldwind.*;
import gov.nasa.worldwind.awt.*;

void setup()
{
size(500, 500, JAVA2D);

WorldWindowGLCanvas wwd = new WorldWindowGLCanvas();
wwd.setSize(width, height);
this.add(wwd);

Model m = (Model) WorldWind.createConfigurationComponent(AVKey.MODEL_CLASS_NAME);
m.setShowWireframeExterior(true);
m.setShowWireframeInterior(false);
m.setShowTessellationBoundingVolumes(false);
wwd.setModel(m);
}

you have to get the worldwind sdk and extract it. create the folders worldwind/library in processing’s libraries folder and copy the file worldwind.jar into it:
libraries/worldwind/library/worldwind.jar

next i will get it working on my movableScreen..

worldwind_01.pngworldwind_02.png

difference tracker for processing

one of my students wants to capture images of people in a museum in order to create a collage of all visitors per day. i wrote a difference tracker for my diploma in 2003 for Processing .68. it did not work anymore with the latest version of Processing. but it took me only half an hour to get it working again.

i want to rewrite it in order to work as java node in x3d and instantviewer for experimenting with people’s silhuettes in 3d..

trackerdiff2007.png

source code: trackerdiff_pde.txt (rename to pde)

using DarwiinRemote in processing

several people are working on drivers for nintendos Wiimote. i wrote a speedhack to use hiro’s DarwiinRemote with Processing.

i simply modified DarwiinRemote to write out a textfile with the values of the accelerometer and the orientation of the Wiimote.

there is an pde in the archive and the modified version of DarwiinRemote in the data folder. start DarwiinRemote, connect the Wiimote and then run the pde.

that’s only to start working with the Wiimote. i hope someone will write real drivers for the device soon.

JarwiinRemote.jpg
JarwiinRemote for Processing on OS X (binary)
JarwiinRemote for Processing on OS X (source)