I started this project a month or so ago when I realised how awesome it would be if you could make your own effects with Instagram - so Photode was born. I decided to use Processing as the library for creating the effects because it's popular, simple to use and open. The effects are written in the Processing IDE, then using a single-click export tool the sketch is exported to the .photode format which can then be put on the device and used immediately. The idea was to try and build a community around creating, sharing, using and rating effects made by other people.
So here's an extremely alpha version of the app (you need to enable installations from unknown sources):
http://robclouth.com/content/photode/
photode.apk
And the export tool:
http://robclouth.com/content/
photode/PhotodeExporter.zip
The app comes bundled with 3 effects already (super basic, just used for testing really) and if you want to see how to make an effect for yourself, look in the photode/sketches folder on your phone and the source code for each effect is there. But if you guys think this is a good idea and worth developing, I'll make some proper tutorials and a website and put it on the Play Store, make it all shiny, etc etc etc.
If anyone is up for helping out that would be great because I don't have enough time to implement all the things I want to do with this project.
By the way, I've never shared a project of this scale before so any tips for making the project more shareable/readable would be useful (GitHub stuff, code style stuff, etc)
The setup of my sketch means that I need to call color(float r, float g, float b) on a PGraphics canvas because I have set the colorMode of the canvas to be different from the main colorMode. However, the IDE interprets this as a cast and gets confused about the '.' in canvas.color(0.1, 0.6, 0.8). Looking at the source, PGraphics does have a color() method. Is there any way to trick the IDE in using that rather than a cast?
Anyone know why themidibus library doesn't receive MIDI messages when used in Eclipse? The examples work fine in processing but no messages are received when the same example is run in Eclipse. Strange....
Any help would be most appreciated.
I would use a different MIDI library but proMIDI doesn't seem to support raw MIDI (for syncing) and the download link for rwmidi is broken...
I'm trying to play that little station clip (from the examples) using GSVideo in eclipse but when I run the application the
project loads fine but the vid doesn't play and I get a message in the console saying:
Creating playbin...
Got this: PlayBin2: [GSMovie Player]
My code:
import processing.core.PApplet;
import codeanticode.gsvideo.GSMovie;
public class Main extends PApplet{
public static void main(String args[]) {
PApplet.main(new String[] { "Main" });
}
GSMovie movie;
public void setup(){
size(200,200);
movie = new GSMovie(this,"data/station.mov");
}
void movieEvent(GSMovie movie) {
movie.read();
}
public void draw(){
if (movie != null)
image(movie, 0, 0, width, height);
}
}
I have added jna.jar, GSVideo.jar and gstreamer-java.jar to the java build path.
In the processing editor gsvideo works fine. Anyone know what's up?
Hi, I'm making a little sketchpad for use with my new wacom but I've hit a wall with the coding. Basically I want to be able to draw to the screen without clearing it each time selectively, so that I can draw text/custom cursors/etc over the top without leaving a trail. So I immediately thought PGraphics. However, drawing the PGraphics to the screen with image() every frame is incredibly slow, especially at the resolution I want to be able to use. Is there an alternate to PGraphics for this sort of process? How do programmes such as Sketchpad Pro and even MS Paint do it? The framerate for these programmes is not dependent on the canvas size.
I'm using minim to access the sample data of 300 wav files. This is done in a thread. The loading starts quickly then gradually slows until at about 250 the loading grinds to a stop. I thought it might be a memory issue but the total size of all the wavs is about 200kb.
My issue is that I'm having a null pointer exception when calling image(canvas,0,0) on my PGraphics object (canvas). This only happens when the renderer is set to JAVA2D. The error says:
Exception in thread "Animation Thread" java.lang.NullPointerException
at java.lang.System.arraycopy(Native Method)
at sun.awt.image.IntegerInterleavedRaster.setDataElements(Unknown Source)
at processing.core.PGraphicsJava2D.updatePixels(Unknown Source)
at processing.core.PGraphicsJava2D.imageImpl(Unknown Source)
at processing.core.PGraphics.image(Unknown Source)
at processing.core.PApplet.image(Unknown Source)
at Folder.render(Folder.java:41)
at Main.draw(Main.java:60)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I have debugged and found that the inData Object of the setDataElements method is null.
but it is in the old forum. I would message Nnd. but can't seem to find them!
I can post my code if need be, but it's rather messy so if the problem doesn't have an easy solution I will do.
I'd be hugely grateful for any help here - I'm normally pretty good at solving problems myself using the web, but this has stumped me and can't find nowt out there (apart from the above thread but that was never concluded).