[Lights, Camera, Action]

Home    Forums    Tutorials    Search    Books    Links 

Windows Movie Maker tips, tutorials, forums and more...



 
Windows Movie Maker Home   Search   Login   Register   Member List  
Windows Movie Maker  > Transitions, Effects and Titles  > Re: Mosaic 'Picture' Transition    
Previous Thread :: Next Thread 
 Author Thread: Mosaic 'Picture' Transition
marquisite is not online. Last active: 10/8/2008 5:42:55 AM marquisite
Joined: 27 Apr 2005
Total Posts: 44
 
Mosaic 'Picture' Transition
Posted: 13 May 2005 09:14 AM
Hi,

I'm looking at getting a transition of where Picture 1 "Mosaics" (kind of like dissolve, but bigger squares and start from the top and head downwards not all at once) down on in front of Video 1, then Video 2 Mosaics down in front of Picture 1 (file link in the xml file) when just before the first part finishes. (Like Random Squares, quite fast - about 4 squares a second, so a square every .25 seconds.

I hope I'm explaining this clearly.
dlk is not online. Last active: 7/2/2011 1:14:29 PM dlk
Top 25 Poster
Joined: 11 Sep 2004
Total Posts: 2027
 
Re: Mosaic 'Picture' Transition
Posted: 13 May 2005 10:21 AM
I think I lost you. It sounds like you want parts of 3(or 4) clips
on the screen at the same time. You could do that with PIP+,
but not the mosaic drop. I think you would need to do multiple
passes, and even then I am not sure. Of course...I am not sure
exactly what you want.

pic1
vid1
pic1

or

pic1
vid1
vid2
pic1
marquisite is not online. Last active: 10/8/2008 5:42:55 AM marquisite
Joined: 27 Apr 2005
Total Posts: 44
 
Re: Mosaic 'Picture' Transition
Posted: 13 May 2005 10:55 AM
Ok I'll step out my request.

Your Start with Video 1
Picture 1 appears on screen with a mosaic effect downwards
Video 2 appears on screen with mosaic effect downwards
marquisite is not online. Last active: 10/8/2008 5:42:55 AM marquisite
Joined: 27 Apr 2005
Total Posts: 44
 
Re: Mosaic 'Picture' Transition
Posted: 13 May 2005 10:57 AM
I don't want them on the screen all at once, but a have a picture file in the transition instead of a direct video 1 to video 2 transition.

I saw something like it on Australian TV tonight, and I liked it
considerate_guy is not online. Last active: 8/7/2015 5:49:08 PM considerate_guy
movies.blainesville.com
Top 25 Poster
Forum Moderator
Joined: 23 Mar 2005
Total Posts: 24219
 
Re: Mosaic 'Picture' Transition
Posted: 13 May 2005 12:07 PM
It sounds like what you want is a 'mosaic down' transition. You want to go from Video 1 --> Picture 1 with this transition, then from Picture 1 --> Video 2 with the same transition.

So the only question I have is the exact way you expect the transition to work. You say a row at a time, but am I correct that you don't want it to be an orderly left to right change, but rather a row (random squares), then the next row (random squares), etc.? In other words, the top to bottom is orderly, but each row is random?

Any chance you could capture a clip of the program and upload a sample of the transition?

-=Blaine=-

Blaine
Movie Maker (Custom Titles, Effects. etc.)Cool
WMM 6.0 on Windows 7 or 8
YouTube videos
considerate_guy is not online. Last active: 8/7/2015 5:49:08 PM considerate_guy
movies.blainesville.com
Top 25 Poster
Forum Moderator
Joined: 23 Mar 2005
Total Posts: 24219
 
Re: Mosaic 'Picture' Transition
Posted: 13 May 2005 12:23 PM
Rereading your post, I'm now thinking that you expect the transition to randomly pick a column and replace the top 'square', then continue the pattern until the whole mosaic effect is complete.

So rather than something like:
. . . . . . .

. X . X . X X
X X X X X X X
X X X X X X X
X X X X X X X


Is it more like this?
. . X . . . X

. X X . X . X
. X X X X . X
X X X X X X X
X X X X X X X


-=Blaine=-

Blaine
Movie Maker (Custom Titles, Effects. etc.)Cool
WMM 6.0 on Windows 7 or 8
YouTube videos
marquisite is not online. Last active: 10/8/2008 5:42:55 AM marquisite
Joined: 27 Apr 2005
Total Posts: 44
 
Re: Mosaic 'Picture' Transition
Posted: 13 May 2005 10:19 PM
Your second example is pretty much spot on, but here is what I'm meaning
X is the Video and . is the Picture

1 second into it:
. . X. . . X
X. XXX. X
XXXXXXX

2 seconds into it:

. . . . . . .
. . X. . . .
.X. XX . X
XXXXXXX


Here is an animated GIF example
considerate_guy is not online. Last active: 8/7/2015 5:49:08 PM considerate_guy
movies.blainesville.com
Top 25 Poster
Forum Moderator
Joined: 23 Mar 2005
Total Posts: 24219
 
Re: Mosaic 'Picture' Transition
Posted: 14 May 2005 03:21 PM
Hmm... you've exceeded my level of knowledge on transitions but I can clearly see what you are trying to get to. Perhaps I'll play with it a little later today. In the meantime, maybe one of the transition experts will pipe in with their thoughts.

-=Blaine=-

Blaine
Movie Maker (Custom Titles, Effects. etc.)Cool
WMM 6.0 on Windows 7 or 8
YouTube videos
dlk is not online. Last active: 7/2/2011 1:14:29 PM dlk
Top 25 Poster
Joined: 11 Sep 2004
Total Posts: 2027
 
Re: Mosaic 'Picture' Transition
Posted: 14 May 2005 04:41 PM
Hi,
Now I see what you want. One of my Dad's favorite saying was
"What do I need to do...draw you a picture?" In my case, I think it
was pretty much true. Anyway....perhaps your little GIF file could
provide your solution. I used your animated GIF and some
chroma keying to produce this.

checker

Close?

Otherwise...I don't know of any transitions that can so this.
But, that doesn't mean someone else doesn't know of a way.

dlk

considerate_guy is not online. Last active: 8/7/2015 5:49:08 PM considerate_guy
movies.blainesville.com
Top 25 Poster
Forum Moderator
Joined: 23 Mar 2005
Total Posts: 24219
 
Re: Mosaic 'Picture' Transition
Posted: 14 May 2005 06:05 PM
dlk,

How did you do that? Can you explain more about a chroma key transition? I understand the basic concept of creating the Chroma key transition that keys off of green (or white, or whatever), but I not sure how you put everything together and how you can see part of both video 1, video 2 and the non-transparent parts of the transition video...

My new idea for a transition is to have something like an elephant walk from left to right over video 1 causing video 2 to appear behind him.

Something like this:

111111111111111


EEE111111111111


222EEE111111111


222222EEE111111


222222222EEE111


222222222222EEE


222222222222222

-=Blaine=-

Blaine
Movie Maker (Custom Titles, Effects. etc.)Cool
WMM 6.0 on Windows 7 or 8
YouTube videos
dlk is not online. Last active: 7/2/2011 1:14:29 PM dlk
Top 25 Poster
Joined: 11 Sep 2004
Total Posts: 2027
 
Re: Mosaic 'Picture' Transition
Posted: 14 May 2005 07:23 PM
Blaine,
I had to do this in a couple passes(pretty much my style :-)
Import the animated GIF...add it to the project "after" your
video #1, and transition with the Chroma-Blue transition,
(which is really a non-red key transition.) Slide as needed, etc. etc.
Then make that movie, which should now have white squares only.
Import that movie, and repeat the above with video#2, but
this time use the Chroma-White transition. Now, it probably
won't key correctly at first. I think this is because MM2 doesn't retain
the fidelity of the white, so one trick I learned was to apply "brightness
increase" to the movie...to make your whites whiter(just like Tide). But...
if you have white in your video clip#1...this could cause problems.
So in the 1st step...you might want to darken your image so
that the brightness increase later won't make it become transparent.
And there you have it. And now you are half way to video chroma keying,
like I did in my IPOD video. But that has it's own set of problems. Not easy.

<TransitionsAndEffects Version="1.0">
<Transitions>
<TransitionDLL guid="{C5B19592-145E-11D3-9F04-006008039E37}" >
<Transition name="Chroma-Black" iconid="11">
<Param name="KeyType" value="0" />
<Param name="RGB" value="0" />
</Transition>
<Transition name="Chroma-White" iconid="11">
<Param name="KeyType" value="0" />
<Param name="RGB" value="0xFFFFFF" />
</Transition>
<Transition name="Chroma-Red" iconid="11">
<Param name="KeyType" value="0" />
<Param name="RGB" value="0xFF0000" />
</Transition>
<Transition name="Chroma-Green" iconid="11">
<Param name="KeyType" value="0" />
<Param name="RGB" value="0x00FF00" />
</Transition>
<Transition name="Chroma-blue" iconid="88">
<Param name="KeyType" value="1" />
<Param name="Progress" value="0.01" />
</Transition>
</TransitionDLL>
</Transitions>
</TransitionsAndEffects>


dave

P.S.
It would have looked much better and been much easier if
it had been a transparent animated GIF, but those are
not supported in MM2 yet...Rehan has suggeted that is coming.

marquisite is not online. Last active: 10/8/2008 5:42:55 AM marquisite
Joined: 27 Apr 2005
Total Posts: 44
 
Re: Mosaic 'Picture' Transition
Posted: 15 May 2005 01:36 AM
dlk, that checker.wmv file is basically what I'm wanting, but without the boxed lines.

Would I just modify the gif file to remove the black lines?
dlk is not online. Last active: 7/2/2011 1:14:29 PM dlk
Top 25 Poster
Joined: 11 Sep 2004
Total Posts: 2027
 
Re: Mosaic 'Picture' Transition
Posted: 15 May 2005 09:29 AM
Yes...that should work. Just use my steps above.The only
problem might be white artifacts...which occur in my attempt,
but the black borders hide them a bit. I don't know how your
GIF maker functions, but you might get cleaner results with a
larger GIF image. That one was pretty small.
You might also try black and blue squares... the blue (or greenish blue
in your case) keys the best....and black might work better than white.
It also depends on the video clips you plan to use. If there are lots
of whites in the clip, use black in your GIF. If there are lots of dark
areas...well you get the idea.


dlk
considerate_guy is not online. Last active: 8/7/2015 5:49:08 PM considerate_guy
movies.blainesville.com
Top 25 Poster
Forum Moderator
Joined: 23 Mar 2005
Total Posts: 24219
 
Re: Mosaic 'Picture' Transition
Posted: 15 May 2005 05:59 PM
Here's one other transition that you might find interesting. It is based on the shatter transition, but goes down rather than out.

<TransitionsAndEffects Version="1.0">
<Transitions>
<TransitionDLL guid="{C63344D8-70D3-4032-9B32-7A3CAD5091A5}">
<Transition name="Scatter down" iconid="61" comment="Scatter down">
<Param name="InternalName" value="ParticleSystem" />
<Param name="ScatterDirection" value="down"/>
<Param name="SpinDirection" value="down" />
<Param name="Gravity" value="6" />
<Param name="RandomizeSpeed" value="0" />
<Param name="BothDirections" value="false" />
</Transition>
</TransitionDLL>
</Transitions>
</TransitionsAndEffects>


-=Blaine=-

Blaine
Movie Maker (Custom Titles, Effects. etc.)Cool
WMM 6.0 on Windows 7 or 8
YouTube videos
Rehan is not online. Last active: 5/8/2012 5:49:17 PM Rehan
www.rehanfx.org
Top 25 Poster
Joined: 21 Apr 2004
Total Posts: 2176
 
Re: Mosaic 'Picture' Transition
Posted: 16 May 2005 12:17 PM
Here is another one done via the standard dxtJpeg (gradient) transition using this image (alternate link):

<TransitionsAndEffects Version="1.0" >
<Transitions>
<TransitionDLL guid="{DE75D012-7A65-11D2-8CEA-00A0C9441E20}" comment="DxtJpeg/SMPTE wipes">
<Transition name="JPG: Drop" iconid="0">
<Param name="MaskName" value="C:\Program Files\Movie Maker\Shared\AddOnTFX\Transitions\drop.jpg" />
<Param name="BorderSoftness" value="35" />
</Transition>
</TransitionDLL>
</Transitions>
</TransitionsAndEffects>


Copy paste into notepad and save as anyname with .xml extension in folder C:\Program Files\Movie Maker\Shared\AddOnTFX folder. Create the AddOnTFX folder if not there. Restart WMM.

The transition looks like this.

www.rehanfx.org - do more with Windows Movie Maker...
rehanfx.x10hosting.com - mirror site
Rehan is not online. Last active: 5/8/2012 5:49:17 PM Rehan
www.rehanfx.org
Top 25 Poster
Joined: 21 Apr 2004
Total Posts: 2176
 
Re: Mosaic 'Picture' Transition
Posted: 16 May 2005 12:22 PM
For those who are new: In above transition the JPG picture needs to be stored with the name and at the location as specified in the XML code.

www.rehanfx.org - do more with Windows Movie Maker...
rehanfx.x10hosting.com - mirror site
considerate_guy is not online. Last active: 8/7/2015 5:49:08 PM considerate_guy
movies.blainesville.com
Top 25 Poster
Forum Moderator
Joined: 23 Mar 2005
Total Posts: 24219
 
Re: Mosaic 'Picture' Transition
Posted: 16 May 2005 12:40 PM
Rehan,

I just wanted to say I'm learning so much from the transition/xml code you post. Thank you!

By the way, I'm still trying to figure out if it would be easy to create a transition that has an object move in front of the video causing the second video to appear behind it. Say a vacation video with an airplane flying by causing the second video to appear in its wake. Or a globe that spins into view, from one side of the screen to the other, doing a similar scene change. And I'm not talking about a transition that might have an underlying straight edge but instead might be an unusual shape.

I'm initially thinking this would have to be done using a custom DLL rather than just an XML file... what are your thoughts? Have you done anything like this?

-=Blaine=-

Blaine
Movie Maker (Custom Titles, Effects. etc.)Cool
WMM 6.0 on Windows 7 or 8
YouTube videos
considerate_guy is not online. Last active: 8/7/2015 5:49:08 PM considerate_guy
movies.blainesville.com
Top 25 Poster
Forum Moderator
Joined: 23 Mar 2005
Total Posts: 24219
 
Re: Mosaic 'Picture' Transition
Posted: 16 May 2005 12:42 PM
Rehan,

I just wanted to say I'm learning so much from the transition/xml code you post. Thank you!

By the way, I'm still trying to figure out if it would be easy to create a transition that has an object move in front of the video causing the second video to appear behind it. Say a vacation video with an airplane flying by causing the second video to appear in its wake. Or an animated globe that spins into view, from one side of the screen to the other, doing a similar scene change behind it. And I'm not talking about a transition that might have an underlying straight edge but instead might be an unusual shape.

I'm initially thinking this would have to be done using a custom DLL rather than just an XML file... what are your thoughts? Have you done anything like this?

-=Blaine=-

Blaine
Movie Maker (Custom Titles, Effects. etc.)Cool
WMM 6.0 on Windows 7 or 8
YouTube videos
Rehan is not online. Last active: 5/8/2012 5:49:17 PM Rehan
www.rehanfx.org
Top 25 Poster
Joined: 21 Apr 2004
Total Posts: 2176
 
Re: Mosaic 'Picture' Transition
Posted: 18 May 2005 10:29 AM
Hi Blaine, you seem to be describing the transitions from adorage package? These are possible only via custom DLL.

www.rehanfx.org - do more with Windows Movie Maker...
rehanfx.x10hosting.com - mirror site
considerate_guy is not online. Last active: 8/7/2015 5:49:08 PM considerate_guy
movies.blainesville.com
Top 25 Poster
Forum Moderator
Joined: 23 Mar 2005
Total Posts: 24219
 
Re: Mosaic 'Picture' Transition
Posted: 18 May 2005 01:00 PM
I thought I had seen something like that and it probably was the Adorage package. It makes sense that it would take a little more coding to get the effect, but I'm thinking I might tackle it over the summer. Seems there must be a way to do a couple internal chroma key passes to make it work...

-=Blaine=-

Blaine
Movie Maker (Custom Titles, Effects. etc.)Cool
WMM 6.0 on Windows 7 or 8
YouTube videos
considerate_guy is not online. Last active: 8/7/2015 5:49:08 PM considerate_guy
movies.blainesville.com
Top 25 Poster
Forum Moderator
Joined: 23 Mar 2005
Total Posts: 24219
 
Re: Mosaic 'Picture' Transition
Posted: 20 May 2005 11:57 PM
Okay, I finally finished the 'Mosaic Down' transition (see sample video at the end of the post). I used a bit of the code that Rehan provided and modified it slightly. I used Paint.NET that Papa John suggested and the Code Lab to generate a grayscale mosaic file.

1) To create this transition you need to download mosaicdn.jpg

Click on the link and save the file as mosaicdn.jpg in your ...\Shared\AddOnTFX directory.

2) Copy the following code into Notepad

<TransitionsAndEffects Version="1.0" >
<Transitions>
<TransitionDLL guid="{DE75D012-7A65-11D2-8CEA-00A0C9441E20}" comment="DxtJpeg/SMPTE wipes">
<Transition name="Mosaic, Down" iconid="61">
<Param name="MaskName" value="C:\Program Files\Movie Maker\Shared\AddOnTFX\mosaicdn.jpg" />
<Param name="BorderSoftness" value="0" />
<Param name="BorderWidth" value="0" />
</Transition>
</TransitionDLL>
</Transitions>
</TransitionsAndEffects>


3) Save file as TransMosaicDown.xml (also in the AddOnTFX directory).

4) Restart Windows Movie Maker and you should have the new "Mosaic, Down" transition.

You can see it all put together in this Sample 'Mosaic Down' Video

-=Blaine=-

Blaine
Movie Maker (Custom Titles, Effects. etc.)Cool
WMM 6.0 on Windows 7 or 8
YouTube videos
Rehan is not online. Last active: 5/8/2012 5:49:17 PM Rehan
www.rehanfx.org
Top 25 Poster
Joined: 21 Apr 2004
Total Posts: 2176
 
Re: Mosaic 'Picture' Transition
Posted: 21 May 2005 01:41 AM
Well done Blaine!! Though I seem to have a dejavu feeling.. you repeated exactly my steps !!! I had also used the Paint.NET's codelab to generate my image above. (feel sorta embarassed to claim credit but it was me who mentioned it...Smiley) Was wondering if you like to share the c# code as well?

www.rehanfx.org - do more with Windows Movie Maker...
rehanfx.x10hosting.com - mirror site
considerate_guy is not online. Last active: 8/7/2015 5:49:08 PM considerate_guy
movies.blainesville.com
Top 25 Poster
Forum Moderator
Joined: 23 Mar 2005
Total Posts: 24219
 
Re: Mosaic 'Picture' Transition
Posted: 21 May 2005 10:04 AM
Sorry about the miscrediting. Yes, indeed, you did introduce Paint.NET and Code Lab to the forum... not sure why I got that confused in my brain. Anyway, I'll post the code. Be aware that this is my first foray into CSharp and Code Lab, so I'm sure there are things that could be improved. This was more of a "quick and dirty" implementation to see if I could generate the grid of squares.

Here are the contents of my MosaicDown.cs file:

Note: this forum seems to like to remove leading spaces, so I apologize in advance...

void Render(Surface dst, Surface src, Rectangle rect)
{
// Note: I was hoping to do this using something like
// Environment.Tick but since the Render can be split
// into multiple threads I ended up with a fractured
// looking image. I also wish there was a way to
// generate the intarray once and then just use the
// information for painting the dst surface.

// 12, 17, 18, 21, 31 are also good choices...
Random random = new Random(33);

// Define some constants
const int cols = 16;
const int rows = 12;
const int blocksize = 50; // 16x50=800, 12x60=600
// Note: This assumes a 800 x 600 picture.
// Additional coding needed if you wanted to remove
// this hardcoded restriction.

int totalsq = cols*rows;

// Array for holding the gray squares
int [,] intarray = new int [cols, rows];

// Array for holding the next available row in a column
int [] nextrow = new int[cols];

int nextcol;
int graylevel;
int sq;
int r;
int row;
int col;

// Initialize the columns to the top (0)
for (int i = 0; i < cols; i++)
{
nextrow[i] = 0;
}

for (sq=totalsq; sq>0; sq--)
{
// Pick a random square.
r=(int)(random.NextDouble() * sq);

// Go progressively from black to white
graylevel = 255-(int)(sq*255/totalsq);

col=0;
// This attempts to give more weight to
// columns with more squares remaining to
// hopefully even out the effect.
do
{
r -= (rows-nextrow[col]);
if (r>=0)
{
col++;
}
} while(r>=0);

intarray[col,nextrow[col]] = graylevel;
nextrow[col]++;
}

for(int y = rect.Top; y < rect.Bottom; y++)
{
row=(int)(y/blocksize) % rows; // in case
for (int x = rect.Left; x < rect.Right; x++)
{
col=(int)(x/blocksize) % cols; // in case
graylevel = intarray[col, row];

// Set all color channels the same
// to get a gray block
ColorBgra point = new ColorBgra();
point.R = (byte)graylevel;
point.G = (byte)graylevel;
point.B = (byte)graylevel;
point.A = 255;

dst[x, y] = point;
}
}
}


Enjoy!

-=Blaine=-

Blaine
Movie Maker (Custom Titles, Effects. etc.)Cool
WMM 6.0 on Windows 7 or 8
YouTube videos
Previous Thread :: Next Thread 
Goto to page:  Prev Next
 
Movie Maker Forums  > Windows Movie Maker  > Transitions, Effects and Titles  > Re: Mosaic 'Picture' Transition