How to load a texture programmatically (jit.gl.texture)

Apr 23, 2009 at 1:59pm

How to load a texture programmatically (jit.gl.texture)

I have written a java external that draw some objects in a scene. I want to set a textures for the objects.
I can create a texture object like
texture = new JitterObject(“jit.gl.texture”);
but I don’t know how to load the texture file or how to use that texture on a object
can you help?

#43502
Apr 24, 2009 at 11:24am

Guys I would really appreciate any help on this matter
I can’t be the first person trying this ….

#156077
Jul 29, 2009 at 8:20pm

Hi wijesijp,

Why don’t you load the texture outside of you java external, in a [jit.gl.texture] located in your patcher?
It works with javascript.

#156078
Aug 16, 2009 at 9:32pm

jitter JS tutorial 45 shows how to load a file in qtmovie.
I think it is probably similar in java with textures …

#156079

You must be logged in to reply to this topic.