hi there and greetings,
First i have to do some gratulation cause ive never learnded/produced something that fast as in vvvv. the logic is impressive and i love that interface with context and the pins
displayed that what you need. with a little knowledge of structured programming or oop you can do everything faster, rapid prototyping lives.
So for my first post i got a fresh nubi question, iam trying to loop images from a dir fade them for two seconds or morph and then wait 10 seconds.
So in C++ and MS C# there is an function named timer() so, do you know how to do it here?
how do i programm a loop in here? no iam not stupid :D
are there any maybe freeframe or DX effects/functions for transition and morphing?
made a small patch for you. maybe not the best solution, because all images are loaded in the graphic cards texture memory in the beginning. but this keeps the patch simple, because we can work with one spread which has exactly the size of number of images. and once the textures a loaded everything runs smooth.
Basically it counts how many images are in the directory, then dublicates the same number of quads at the same position. each quad gets the texture in the same order as the dir node outputs the filenames. The SetAlpha node can set the Alpha Channel for each quad. the counter node in conjunction with peakspread sets the alphachannel for each quad one after another from 0 to 1. with the damper node you can filter the bolean jump from 0 to 1 to a smooth float over a given time.
this is because the images are mapped as texture on a quad (or two quads for the fade effect to be correct) which has allways the same size.
but i think theres a way to resize the quad to the correct ratio, for this, you first need to find out what dimension each image has… but as far as i know there s no node which can tell you that.
there a node called: info (ex9.texture) which gives you the width and height of a texture… unfortunately this information is retreived after resizing to a power of two by directx. i made a new topic related to this problem in wishlists: File Handling
maybe someone knows a workaround to this problem???
found out that the aviparser is able to read pictures (i tried with pngs and jpgs) as well. at least it outputs the dimensions as long they are not bigger than 2000x1000 pixels… unfortunately the previewoutput isnt working correctly with pictures. it just outputs some pixelnoise art. maybe a bug maybe the aviparser isnt done for previewing pictures?
Can a dev explain here please? a previewnode for pics AND video would be very cool
about AviParser and still images: it seems to be depending on what directshow filters you have installed on your system. for me .jpgs and .bmps work (even with preview). .png doesn’t work here. what you need is a directshow filter that can read your still image file format. maybe one day we include one. meanwhile you could only hope that some other software installs a filter on your system. hard to figure out where they come from…
.mov files are something different again. i just tried but didn’t get it to work even though i have quicktime alternative installed…
there a node called: info (ex9.texture) which gives you the width
and height of a texture… unfortunately this information is retreived
after resizing to a power of two by directxmaybe someone knows a
workaround to this problem???
you could hack a workaround with a Reader and the Ord node - read the jpg in as a string and select the bytes containing the width and height. note that each image format does that differently, and there may be all kind of different formats.