Archive: dm mosaic?


17th August 2003 06:19 UTC

dm mosaic?
I've had this idea for a while. I've been wondring if it's posible (most likely) to create a dm that has the same effect as a mosaic but it changes on beat from really small to really big and everthing between.

I don't know if it's been done (if so plz tell me where I can find it), but if know one knows where to find it, plz try and make it. Then attach it as a code or .avs file.


17th August 2003 06:34 UTC

Why not make it yourself.. I don't think a perfect version would be plausible due to the generally crappyness of the DM interpolation (and its glaringly obvious bug). What you can do is cheat and scale down the frame being mosaiced then zoom in on it with two seperate DMs.. then it will look pixelated, i.e. mosaiced. I would make it for you, but you should learn to code your own stuff, hopefully I've pointed you in the correct direction. :)

Hint: Turn off bilinear filtering in the 'zoom in' DM otherwise your mosaic tiles will look like glowy points.

Eidt: Wrap helps too.


17th August 2003 07:11 UTC

I seriously don't know how to make dm's. I've tried and tried and tried and I cant make anything good. The only kinda dm I know hoe to make are flat walls that move to the music. I'd include a screenshot if I knew how to.


17th August 2003 07:37 UTC

Well then you know how to make a dm. Here is an example of a mosaic... I've made it really crap so you'll have to edit it to make it any good. I'll explain it all very carefully even though it is mind numbingly simple.

First DM:

init: a=0;

this sets the variable a (variable is a name for a letter representing a stored number (or any data) in memory.

frame: a=a+1;

here a has 1 added to it every frame.. this makes it count so on frame 1 a=1, frame 2 a=2.. etc

beat: dt=(a%5)*4+4;

we take a and use the % operator with 5 on it which divides a by 5 and leaves us with a remainder between 0 and 4... because we are increasing a every frame this is a cheap way of getting a random number between (and including) 0 and 4 that we can duplicate in the other dm without losing 'synch' (since putting rand(5) will not be guaranteed to have the same result in both dms) the *4 and +4 should be pretty self explainatory.

pixel:

d=d*dt;

we multiply d by our psuedo-random number giving us a zoomed out version of the original image.

duplicate this DM and change the pixel code to d=d/dt; this zooms back in (think of it as * and / cancel each other out if its easier), turning of bilinear filtering on the second scope is critical, and the first should have wrap turned on (this stops some distortion that i can't explain.. its just a result of dm buggyness). hey presto Dynamic Mosaic. Restart the preset to synch the DMs and you now have a DM mosaic which jumps between a possible 5 different block sizes every beat.


Hope this helps you with coding more than with making a mosaic. I've attached a working version so that you can see it in action if you somehow manage to bodge up the copying.


17th August 2003 07:57 UTC

I'll save this as a .txt and go over it untill I understand it. If not i'll come back some other time.

Also, how do you copy something someone has said, e.g.
___________________________
Origonally posted by ???????
<text here>
___________________________


17th August 2003 15:17 UTC

can this be shifted to troubleshooting forums?


17th August 2003 15:55 UTC

Right below their post will be a quote button. Click that and it will open up a new reply window with the quote stuff already added, or you can do it manually.

{QUOTE}{I}Originally posted by XXXXXX{/I}
{B}message{/B}{/QUOTE}

just change the curly brackets to square brackets.


17th August 2003 17:24 UTC

Stuff before the mosaic effect
movement, no bi-linear filter - d=d*intensity
movement, no bi-linear filter - d=d/intensity


17th August 2003 20:51 UTC

The closest (and most recent) I've seen to one-pass regular-size DM mosaic is made by Atero (namely Cellophane, TFF 3.0)...
Is it the first? Nope.
Is it the fastest? Nope.
Is it the best method? You decide.


18th August 2003 23:01 UTC

Jheriko: what do you mean with the glaringly obvious bug? It does exactly what it's supposed to do, we're just using it in a very weird way.

The only thing I can think of is to use affine (perspective) interpolation rather than linear, but that wouldn't really help much I think.


19th August 2003 01:02 UTC

it's not even a mosaic movement...raz's method works perfectly and is an actual mosaic....


19th August 2003 18:21 UTC

I made a mosaic movement(DM) a while back. Its in the Squared preset which you can find in the devartart third birthday thread. I dont know if its the best way to do it but it works. There is one catch to it dough it works ok in a movement(slower than ordinary mosaic:( ) but in dm its a bit weird because of the dm grid stuff.

edit:

here is the link
http://forums.winamp.com/attachment....&postid=900105


19th August 2003 21:22 UTC

Originally posted by UnConeD
Jheriko: what do you mean with the glaringly obvious bug? It does exactly what it's supposed to do, we're just using it in a very weird way.

The only thing I can think of is to use affine (perspective) interpolation rather than linear, but that wouldn't really help much I think.
There must be a bug in the linear interpolation method.. otherwise the contents of every grid wouldn't move to the corner gradually, or at differing rates for each grid square (which it does).

20th August 2003 08:13 UTC

Jheriko, what it does is clip the regions at the corners of each tile, not after being interpolated.