[sharing is fun] ken burns style effect

Jan 26, 2012 at 12:05am

[sharing is fun] ken burns style effect

Just thought I’d post this in case anyone found it interesting or useful. Searched the forums and didn’t find anything like it so created on myself. Load in an image, enable the toggles and watch an endless ken burns effect :)

It’s quite simple, and could really do with some easing (not too sure of how to implement that yet) and probably a bit more work on aspect ratios!

Enjoy!

DiGiTaLFX

Attachments:
  1. kenburns.zip
#61464
Jan 30, 2012 at 9:31pm

Ok, I’ve been using this effect within another project and experimenting a bit, and now I’m stuck. Everytime I load a new image into it, if it’s large and takes a noticeable amount of time to decode, the whole effect just freezes until it’s finished loading. Is there any thing I can do to fix this?

Many thanks

DiGiTaLFX

#221754
Jan 30, 2012 at 9:58pm

Quick update, I’ve tried changing the ‘read’ message to an ‘asyncread’, which does help significantly, but it doesn’t quite solve the problem. I have also added tried placing the [jit.qt.movie] in another top level patcher (which I assume means a new thread) and sending the matrix name to the [jit.gl.texture] thinking this would completely resolve the issue. However no such luck :(

Any good ideas on how to optimise a patch like that (I effectively have 5 instances of the original patch attached)? Or do I just have to preload all the content I need before running?

Many thanks

DiGiTaLFX

#221755
Jan 30, 2012 at 10:58pm

I haven’t looked at your patch put if preloading isn’t an option you could use the java quicktime player in this thread:

http://cycling74.com/forums/topic.php?id=24603

I compiled it and it worked well – I think it creates a low priority thread for the loading.

#221756
Feb 1, 2012 at 6:38pm

Ah interesting! Thanks for the hint. I’ll see what happens when I implement that class into it all :)

#221757
Feb 2, 2012 at 7:15pm

Or if u use only stills make a film with all the stills and just use the “frame” message to switch between images…
Did I understand u correctly?

#221758
Feb 4, 2012 at 3:56pm

Ah, also a very good point! Thanks for the idea :)

#221759

You must be logged in to reply to this topic.