I want to make a java wrapper for the jit.gl.slab object to make some slab thingies easier to do.
But I immediately run into a fundamental problem: I can't get the input and output of a jit.gl.slab object work.
I basically did this:
1. I instantiated a JitterObject with ' new JitterObject("jit.gl.slab") '.
2. I made the 'anything' method forward all incoming data to this JitterObject via the 'call' method.
3. I set up a JitterListener to listen to outcoming textures when the slab is done processing them.
The JitterListener however doesn't seem to register the out coming 'jit_gl_texture' messages.
Also, when I use the 'call' method, no Atom array is returned, in stead I get only null.
So much for the straightforward solution.
So I tried sending out the resulting textures (with their names defined in the 'capture' attribute) simply after receiving incoming jit.matrices. That only gives me a black window.
So I tried sending out the resulting textures after any of the messages that the JitterListener dóes register. Still no luck.
As you can see in the java file (attached) and the max patch (I tried to comment it all quite clearly), I've tried basically every point that I could think of to send out the resulting texture. Without success.
Can anybody tell me how to make a shader / slab work within Java code?
Thank you to anyone pointing me in the right direction!