Forums > Jitter

loading pictures without glitches

October 5, 2006 | 1:59 pm

Hello

I’ve got a folder of pretty high-res pictures that I’m loading into a jit.matrix. This is done from an ubumenu. These pictures are then used as a texture, and animatad with openGL-stuff. All the pictures have different dimensions, but are at least 300dpi, but the matrix I load them into is 1024×1024, – which of course messes up the proportions.

Problem is that each time I load a new picture, the animation hangs for a second. Could someone please instruct me on how I can avoid this.


October 5, 2006 | 2:24 pm


October 5, 2006 | 3:25 pm

thanks a lot!

I’ll try to make it work.


January 1, 2007 | 12:09 pm

Hi,

First Happy New year to all!

I was searching the forums for a way to load a whole bunch of pictures to use as a texture. Best way apparently is to load them onto the gpu first. Is there a limitation, I think I have a few hundred pictures that need to get loaded and I must be able to switch from one to the next in a matter of frames, Sometimes keep it for a few seconds sometimes change it every 2 frames.

I did found the javascript in this thread, but have no idea where to implement it. I’m not good in java.

Can someone help me ot to get things running here?

Best Regards

pieter


January 1, 2007 | 7:45 pm

you can try pre-loading them into set of jitmatrix or jit.matrixset
objects, where they will be cached in ram, or have a set of
jit.gl.texture objects for each image and you could sent the ‘texture
texturename’ message to your jit.gl.* object that should get the
texture.

That should be pretty quick.

On Jan 1, 2007, at 7:09 AM, pieter coussement wrote:

>
> Hi,
>
> First Happy New year to all!
>
> I was searching the forums for a way to load a whole bunch of
> pictures to use as a texture. Best way apparently is to load them
> onto the gpu first. Is there a limitation, I think I have a few
> hundred pictures that need to get loaded and I must be able to
> switch from one to the next in a matter of frames, Sometimes keep
> it for a few seconds sometimes change it every 2 frames.
>
> I did found the javascript in this thread, but have no idea where
> to implement it. I’m not good in java.
>
> Can someone help me ot to get things running here?
>
> Best Regards
>
> pieter
>

v a d e //

http://www.vade.info
abstrakt.vade.info


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