» Image Cacher
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

Image Cacher

plugin
Credits: vux (for texture output method, and for helping me with issues I had coding this).

about

Image cacher that loads a sequence of images into RAM.
Choose a file at the start of your sequence, and all the images in the sequence will be loaded into RAM (best watch your available RAM!)

Then you can select an index out of the sequence to be loaded as a texture.

Ideal for loading animation elements from Flash/other packages whilst avoiding the Flash Renderer and FileStream.

Maybe you've got other uses for it as well..

Big issue: not spreadable for now.

elliot

download

VVVV.Nodes_.ImageCache.zip
01.12.10 [05:13 UTC] by elliotwoods | 1117 downloads

u7angel 01/12/2010 - 13:05

can you add a helpfile, i just tried the plugin, setting a file but the plugin gets stuck at loading. loading pin keeps saying 1 and nothing happens. maybe i'm doing something wrong ?

u7angel 01/12/2010 - 13:11

my fault...copied the plugin to the plugins folder and chose a true imageseq. ...works now. cool thing :)

beyon 01/12/2010 - 18:05

Hmm this might be interesting as a starting point for my need of quick browsing through a bunch of highres images.

Right now it doesn't seem to deal with different sizes of textures very well, I first tried loading a set of large images with date as filename but since that didn't work as a sequence I then tried another set of smaller size images and then the resulting texture output was the first large image with the smaller ones replacing the top of the image.

I guess you don't recreate/resize the buffer when the filename pin changes?

sugokuGENKI 01/12/2010 - 19:54

@ beyon, ah yeah. very likely
thanks for the spot
i'm a little out of time to look into it right now and it's not obvious what's going wrong from inspection of the code. need to debug properly with a set of images.

The issue with mixing resolutions is that you have to recreate the texture for every different size. It's definitely possible though, and a quick check on the size would mean that you wouldn't do this when the resolutions are the same.

Will look into this next week after current project's over.

sugokuGENKI 01/12/2010 - 19:55

@u7angel, will dash a helpfile together when i can as well.
Thanks for trying!

viktor2 18/01/2011 - 11:43

loads only 100 images always?

sugokuGENKI 18/01/2011 - 13:34

is there a config pin to change?
I made a config pin on later versions to set a pre-allocated amount of memory.
I was using 120frames in general (4s @ 30fps).
I found that by pre-allocating the memory and keeping it the same throughout different sequence loads, then you avoid garbage collection.

This plugin's now stuck on a machine in korea so cant look right now.

viktor2 19/01/2011 - 14:43

no config pin on this version but useful anyway, thx!

anonymous user login

Shoutbox

~2mth ago

joreg: END OF SHOUTBOX! As this page has is now legacy, it will no longer feature new content. For latest news, see: http://vvvv.org

~3mth ago

joreg: vvvvTv S0204 is out: Custom Widgets with Dear ImGui: https://youtube.com/live/nrXfpn5V9h0

~3mth ago

joreg: New user registration is currently disabled as we're moving to a new login provider: https://visualprogramming.net/blog/2024/reclaiming-vvvv.org/

~3mth ago

joreg: vvvvTv S02E03 is out: Logging: https://youtube.com/live/OpUrJjTXBxM

~3mth ago

~3mth ago

joreg: Follow TobyK on his Advent of Code: https://www.twitch.tv/tobyklight

~3mth ago

joreg: vvvvTv S02E02 is out: Saving & Loading UI State: https://www.youtube.com/live/GJQGVxA1pIQ

~3mth ago

joreg: We now have a presence on LinkedIn: https://www.linkedin.com/company/vvvv-group

~3mth ago

joreg: vvvvTv S02E01 is out: Buttons & Sliders with Dear ImGui: https://www.youtube.com/live/PuuTilbqd9w

~4mth ago

joreg: vvvvTv S02E00 is out: Sensors & Servos with Arduino: https://visualprogramming.net/blog/2024/vvvvtv-is-back-with-season-2/