Forums > Java

How to load image to jit.matrix

May 22 2009 | 7:23 pm

I am writing java external application display some objects using I wanted to add some water effects to the scene.
I am planning to load an image to jit.matrix and manipulate the pixels to do this.

But I don’t know how to load an image to jit.matrix and display it in java external.
Can anyone give me some sample code?

May 30 2009 | 11:59 am

Ok I found how to do it
here is the way to do it if anyone wants to know;

this is how you load the image;

JitterMatrix textureImage = new JitterMatrix();

and to display;

myrender.send("draw_pixels", new Atom[] { Atom.newAtom(textureImage.getName()) });

Viewing 2 posts - 1 through 2 (of 2 total)

Forums > Java