[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  
Movie Maker Users Showcase  > Share Your Vista Transitions and Effects!!  > DPL 2D Deformation Effects for ShaderTFX    
Previous Thread :: Next Thread 
 Author Thread: DPL 2D Deformation Effects for ShaderTFX
PatrickL is not online. Last active: 12/4/2015 6:48:13 PM PatrickL
pleabo.home.comcast.net
Top 25 Poster
Joined: 31 Jul 2005
Total Posts: 1305
 
DPL 2D Deformation Effects for ShaderTFX
Posted: 01 Feb 2008 12:20 PM
I just can't quit playing with this thing (ShaderTFX). Here are some 2 dimensional deformations of rectangle to other shapes, inspired by a function in my old Paint Shop Pro.

First I tried to make a deform to circle, kinda like a fisheye, but in 2 dimensions. When I finally got the arithmetic worked out, I added some other simple shapes.

Here is a demo. DPL 2D Geometric Deformation Effects Demo

You can download an installer for these effects at DPL 2D Geometric Deformaiton Effects Installer. Unzip and run the exe file. You may have to be signed on as administrator as the installer installs a file in the c:/Program Files/Movie Maker/Shared/ directory. A proper uninstaller is provided. Rehan's ShaderTFX is required. See Rehan's ShaderTFX.

The shapes available in addition to Ellipse are Diamond, Hourglass, Bowtie, Pyramid, Cone, Arch and Cup. Most just straight line width = f(y) or height=f(x) except Arch and Cup which are catenary approximations width = f(y squared) (Like the St Louis Arch). Also the flat sides may be curved with the ellipse calculation.

After I got the deformations, I decided each needed a morph into and a morph out of. So each shape is provided as a triplet. Morph In from rectangle, Deformed Steady and Morph Out to rectangle. This can be utilized with 3 identical sequential photos(images) or by 3 splits in a video. See the beginning/end sections of the demo video. Also, of course these work with other effects. See the frames, animated logos etc. in the demo. Changing the order of the effects determines if the other effects will be introduced before or after the deformation effect.

For you XML experimenters, the background color (default black) may be changed in the XML with:
<Param name="BackgroundColor" type="float4" value="0,0.0,0.0,1" /> or
<BackgroundColor type="color" value="black" />
When type is float4 the values represent Red, Green, Blue and Alpha(unused). 0.0 is hex 0x00 and 1.0 is hex 0xff.
When type is color, values may be any of the windows color names. See a color name table at MS Color Table.

Other interesting parameters are:

<TextureFile value="%ProgramFiles%\Movie Maker\Shared\AddOnTFX\DPL Deform Effects BG\BlueGold.PNG" />
where a background image may be specified instead of a color. Three 4:3 background tiled images are provided. This is attempted only if BackgroundColor is not specified.

Also, there is a progress parameter used to move from rectangle to the deformation.
<Param name="Progress" type="float" value="1.00"/>
If you see a particular progress point you like, just specify it. 0.0 is no deformation, 1.0 is full deformation. Also you can twiddle with this a bit to get things like the "Jumpy Circle" deformation effect.

And then, there is X and Y aspect ratio which default to 1.0.
<Param name="AspectX" type="float" value="2.666666" />
<Param name="AspectY" type="float" value="2.0" />
These will shrink the specified axis by the value. e.g AspectX = 1.333333 makes an ellipse appear as a circle in 4:3 videos and AspectX = 1.777777 makes an ellipse appear as a circle in 16:9 videos. The above XY values make a smaller circle in a 4:3 production. Like the end of the demo.

Also provided are zip in from nothing and shrink out to nothing effects, one straight and one kinda like twilight zone ("we control your horizontal, we control your vertical" Wink ).

Not sure how you all might use these effects, but I had fun building and now using them.

Enjoy, PatrickL

DPL Freeware Effects and Transitions for Vista MM Website
Skilzat99X is not online. Last active: 4/7/2008 7:53:29 PM Skilzat99X
Joined: 18 Aug 2007
Total Posts: 10
 
Re: DPL 2D Deformation Effects for ShaderTFX
Posted: 01 Feb 2008 08:21 PM
I installed the package but the effects don't work, they're just "blank" basically. Nothing happens. My other ShaderTFX transitions work though.
PatrickL is not online. Last active: 12/4/2015 6:48:13 PM PatrickL
pleabo.home.comcast.net
Top 25 Poster
Joined: 31 Jul 2005
Total Posts: 1305
 
Re: DPL 2D Deformation Effects for ShaderTFX
Posted: 02 Feb 2008 07:04 AM
Hmmmmm.

Should have installed 6 files.

DPL Deform Effects.fx in ...\Shared\
DPL Deform Effects.xml in ...\Shared\AddOnTFX\
DPL Deform Effects.dll in ...\Shared\AddOnTFX\
BlueGold.png in ...\Shared\AddOnTFX\DPL Deform Effects BG\
Bubbles1.png in ...\Shared\AddOnTFX\DPL Deform Effects BG\
Happy.png in ...\Shared\AddOnTFX\DPL Deform Effects BG\

Requires an unexpired or licenced ShaderTFX.

Please advise.Perplexed

PatrickL

DPL Freeware Effects and Transitions for Vista MM Website
TheOnePb is not online. Last active: 4/3/2010 8:23:13 AM TheOnePb
youtube.com
Top 50 Poster
Joined: 15 Nov 2007
Total Posts: 520
 
Re: DPL 2D Deformation Effects for ShaderTFX
Posted: 09 Feb 2008 12:46 PM
PatrickL:

These are perfect, very nice and good working effects! I really, really love this.
I can see there is a lot of work in these effects and I really think that I will use these a lot:)!
The background of the effects, can I modifie them?? I hope so!
Well, thanks a lot!

TheOnePb

Movie Maker 6.0 on Windows 7 + ShaderTFX, registeredSmiley
http://youtube.com/profile?user=TheOnePb1
PatrickL is not online. Last active: 12/4/2015 6:48:13 PM PatrickL
pleabo.home.comcast.net
Top 25 Poster
Joined: 31 Jul 2005
Total Posts: 1305
 
Re: DPL 2D Deformation Effects for ShaderTFX
Posted: 10 Feb 2008 08:41 AM
TheOnePb:

You can easily tweak these backgrounds with your own XML file. ( From your posts, I see you are conversant in XMLSmiley)

Just copy the effects of interest from "DPL Deform Effects.XML" into a file as shown below, make the modifications, and save it into AddOnTFX folder as "My Deform Effects.XML". Next time you start Moviemaker, you will have the new effects.

You can specify the background color, or if no color is specified, specify a background image. Just copy the image (png or jpg) into the /DPL Deform Effects BG/ folder. Be sure to give the effect a unique name and guid. See the two examples below. They will pick up the Icon from the specialiconfileid="5621" dll file. Note that the BackGroundColor parameter goes in the Semantics area, and the TextureFile parameter above the Semantics area.

<!-- ////////////////////////////////////////////////////////////////////////////////
// My Deformation Effects using RehanFX's ShaderTFX & DPL Deform Effects
// For more infomation see: http://www.rehanfx.org/shader.htm
//////////////////////////////////////////////////////////////////////////////// -->

<?xml version="1.0" encoding="utf-8" ?>
<TransitionsAndEffects Version="2.8" specialiconfileid="5621" specialiconresourceid="101">
<Effects>
<EffectDLL guid="ShaderTFX.ShaderEffect">

<!-- ************ DEFORMS ******************************* -->

<Effect name="TheOnePb Deform Arch Red BG" iconid="1" guid="TheOnePb Deform Arch Red BG" ShaderModel="2">
<ShaderFilename value="DPL Deform Effects.fx"/>
<Technique value="DeformEffect"/>
<Semantics>
<Arch type="bool" value="true" />
<BackgroundColor type="color" value="red" />
<Progress type="float" value="1.00"/>
</Semantics>
</Effect>

<Effect name="TheOnePb Deform Arch MyImage BG" iconid="1" guid="TheOnePb Deform Arch MyImage BG" ShaderModel="2">
<ShaderFilename value="DPL Deform Effects.fx"/>
<Technique value="DeformEffect"/>
<TextureFile value="%ProgramFiles%\Movie Maker\Shared\AddOnTFX\DPL Deform Effects BG\MyImage.PNG" />
<Semantics>
<Arch type="bool" value="true" />
<Progress type="float" value="1.00"/>
</Semantics>
</Effect>

</EffectDLL>
</Effects>
</TransitionsAndEffects>

Have fun, PatrickL

DPL Freeware Effects and Transitions for Vista MM Website
TheOnePb is not online. Last active: 4/3/2010 8:23:13 AM TheOnePb
youtube.com
Top 50 Poster
Joined: 15 Nov 2007
Total Posts: 520
 
Re: DPL 2D Deformation Effects for ShaderTFX
Posted: 10 Feb 2008 10:47 AM
Jep, I see:)
Thanks a lot!

TheOnePb

Movie Maker 6.0 on Windows 7 + ShaderTFX, registeredSmiley
http://youtube.com/profile?user=TheOnePb1
Sarevok is not online. Last active: 5/20/2008 3:24:59 PM Sarevok
Joined: 10 Feb 2008
Total Posts: 2
 
Re: DPL 2D Deformation Effects for ShaderTFX
Posted: 10 Feb 2008 12:02 PM
Great effects but i'm having a little trouble with them. For some reason only 4 of them will work for me, Deform RectIn, Deform RectOut, Deform TwiIn, Deform TwiOut. It's strange that only those 4 would work and the others wouldn't. I have a fully registered version of Rehan's Shader so i'm not sure what could be wrong. I checked the posts above and all 6 files are correctly installed. Any help would be welcomed, i'd love to be able to use some of your crystal ball effects I saw in the demo, very nice work.
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: DPL 2D Deformation Effects for ShaderTFX
Posted: 10 Feb 2008 04:09 PM
Hi Patrick. Very nice effects. man.. you are digging deeper and deeper into heavy shader programming. Impressive progress.

Note that you have left the shader code in the released .fx file as:

technique DeformEffect {
pass P0 {
VertexShader = compile vs_2_0 VS_Basic();
// PixelShader = compile ps_2_0 PS_DeformEffect(); // remove for BG Alpha lerp & offset
PixelShader = compile ps_3_0 PS_DeformEffect(); // use for BG Alpha lerp & offset
}

This might not work for most people.

www.rehanfx.org - do more with Windows Movie Maker...
rehanfx.x10hosting.com - mirror site
PatrickL is not online. Last active: 12/4/2015 6:48:13 PM PatrickL
pleabo.home.comcast.net
Top 25 Poster
Joined: 31 Jul 2005
Total Posts: 1305
 
Re: DPL 2D Deformation Effects for ShaderTFX
Posted: 10 Feb 2008 05:55 PM
Thanks Rehan, and your diagnosis exactly matches Sarevok's symptons. I was playing with ps_3_0 and forgot to change it back.

I have corrected the installer, but I can't seem to update it on SaveFile.com today. I'll update it as soon as possible. (Anyone have recomendations for a good Online File Sharing site??)

Sarevok, you can fix it by the following:

In the "DPL Deform Effects.fx" file in the /Shared/ folder,

change:

technique DeformEffect {
pass P0 {
VertexShader = compile vs_2_0 VS_Basic();
// PixelShader = compile ps_2_0 PS_DeformEffect(); // remove for BG Alpha lerp & offset
PixelShader = compile ps_3_0 PS_DeformEffect(); // use for BG Alpha lerp & offset
}

to:

technique DeformEffect {
pass P0 {
VertexShader = compile vs_2_0 VS_Basic();
PixelShader = compile ps_2_0 PS_DeformEffect();
}

The /Shared/ folder is heavily protected, so you may have to copy the file to a temp folder, and in properties, uncheck the Read Only block. Then edit as above, save and copy back to the /Shared/ folder (may need administrator rights).

I apologize for the inconvenience.

PatrickL

DPL Freeware Effects and Transitions for Vista MM Website
Sarevok is not online. Last active: 5/20/2008 3:24:59 PM Sarevok
Joined: 10 Feb 2008
Total Posts: 2
 
Re: DPL 2D Deformation Effects for ShaderTFX
Posted: 10 Feb 2008 11:58 PM
Thanks, worked like a charm.
PatrickL is not online. Last active: 12/4/2015 6:48:13 PM PatrickL
pleabo.home.comcast.net
Top 25 Poster
Joined: 31 Jul 2005
Total Posts: 1305
 
Re: DPL 2D Deformation Effects for ShaderTFX
Posted: 12 Feb 2008 01:17 PM
The updated installer is at Updated DPL 2D Deformation Effects Installer. It is an exe file, just download and run. It has a proper uninstaller. You may have to "Run As Administrator".

Don't use the installer in the first post in this thread.

PatrickL

DPL Freeware Effects and Transitions for Vista MM Website
TheOnePb is not online. Last active: 4/3/2010 8:23:13 AM TheOnePb
youtube.com
Top 50 Poster
Joined: 15 Nov 2007
Total Posts: 520
 
Re: DPL 2D Deformation Effects for ShaderTFX
Posted: 12 Feb 2008 01:21 PM
But if it works.. Should I uninstall and install the new one? It works fine..Smiley

TheOnePb

Movie Maker 6.0 on Windows 7 + ShaderTFX, registeredSmiley
http://youtube.com/profile?user=TheOnePb1
PatrickL is not online. Last active: 12/4/2015 6:48:13 PM PatrickL
pleabo.home.comcast.net
Top 25 Poster
Joined: 31 Jul 2005
Total Posts: 1305
 
Re: DPL 2D Deformation Effects for ShaderTFX
Posted: 12 Feb 2008 11:44 PM
If it works, no need to reinstall the new one. They are functionally exactly the same.

But, some peoples machines aren't capable of running PixelShader 3.x, so the prudent thing to do for all new users is to install the new one which uses only PixelShader 2.x. Again, no functional or performance differences between the two.

PatrickL

DPL Freeware Effects and Transitions for Vista MM Website
moviemakerkid is not online. Last active: 1/13/2015 11:03:35 PM moviemakerkid
Top 25 Poster
Joined: 18 Jan 2007
Total Posts: 1174
 
Re: DPL 2D Deformation Effects for ShaderTFX
Posted: 27 Feb 2008 11:23 PM
The effects look great in the preview, but they just aren't working for me... I am not sure why, it could be my graphics card, but when i have tried previweing them or adding them to the timeline they dont work at all. The only ones that work from this installation is, dpl deform rectin, dpl deform rectout, dpl deform twiIn, dpl deform twiout. I have tried both your uninstallers, i run the installer as admin,i dont get any errors. So i am not really sure why, but once again good work on the effects.

My Downloads For Movie Maker
PatrickL is not online. Last active: 12/4/2015 6:48:13 PM PatrickL
pleabo.home.comcast.net
Top 25 Poster
Joined: 31 Jul 2005
Total Posts: 1305
 
Re: DPL 2D Deformation Effects for ShaderTFX
Posted: 28 Feb 2008 10:51 AM
MMK, Welcome back to Vista. Your symptoms seem much like Sarevok's above.

Please see if the DPL Deform Effects.fx file in the Shared folder is the updated one.

The DeformEffect technique should read:

technique DeformEffect {
pass P0 {
VertexShader = compile vs_2_0 VS_Basic();
PixelShader = compile ps_2_0 PS_DeformEffect();
// PixelShader = compile ps_3_0 PS_DeformEffect(); // use for BG Alpha lerp & offset - PixelShader 3.0

}

where the referece to pixel shader 3 is commented out, and pixel shader 2 activated.

If not, then you used the old installer. Get the new one from my website or the post just up from here.

If that is not the problem, give me some information about your graphic card. It needs to be capable of running pixel shader 2.0, and seems to do it if the 4 effects you mentioned work. They are separate code from the deformation code, so maybe the deformation code is too complex for your system ?????. I may be in over my head here! I have a medium powered NVIDIA GeForce 7600GS graphics card that works OK with this code.

PatrickL

DPL Freeware Effects and Transitions for Vista MM Website
TheOnePb is not online. Last active: 4/3/2010 8:23:13 AM TheOnePb
youtube.com
Top 50 Poster
Joined: 15 Nov 2007
Total Posts: 520
 
Deformation Effects in video!
Posted: 28 Feb 2008 12:42 PM
These deform effets look really great in titles (combination with photo-frame)!
Click @ the video link. For the deform effects 3.30 -> end. 3.27 in deform too!
Youtube.com/watch?v=g8lrmQP3NeU

TheOnePb

Movie Maker 6.0 on Windows 7 + ShaderTFX, registeredSmiley
http://youtube.com/profile?user=TheOnePb1
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: Deformation Effects in video!
Posted: 28 Feb 2008 02:35 PM
I fixed the link in the first post so there won't be any further confusion.

Blaine
Movie Maker (Custom Titles, Effects. etc.)Cool
WMM 6.0 on Windows 7 or 8
YouTube videos
PatrickL is not online. Last active: 12/4/2015 6:48:13 PM PatrickL
pleabo.home.comcast.net
Top 25 Poster
Joined: 31 Jul 2005
Total Posts: 1305
 
Re: Deformation Effects in video!
Posted: 28 Feb 2008 06:42 PM
Thanks Blaine.

DPL Freeware Effects and Transitions for Vista MM Website
moviemakerkid is not online. Last active: 1/13/2015 11:03:35 PM moviemakerkid
Top 25 Poster
Joined: 18 Jan 2007
Total Posts: 1174
 
Re: Deformation Effects in video!
Posted: 28 Feb 2008 09:23 PM
yep the fx files are the same, heres my graphics card...

mobile intel(r) 945 express chipset family

Is there any intel graphics cards that i can upgrade to? i hope so because i have tried to get help on replacing my graphics card, but i have been told it cant be because it is built on the motherboard. I am not to smart about this type of stuff but i hope to find a way to fix this. Thanks for the help.

MMK

My Downloads For Movie Maker
PatrickL is not online. Last active: 12/4/2015 6:48:13 PM PatrickL
pleabo.home.comcast.net
Top 25 Poster
Joined: 31 Jul 2005
Total Posts: 1305
 
Re: Deformation Effects in video!
Posted: 29 Feb 2008 11:45 AM
MMK. The mobile 945 chip is usually used in laptops, and does claim support for Pixel Shader 2. Googling shows a few niggles with the chip usually fixed with driver updates. Maybe that or changing the acceleration level would help???

This code was always on the edge of using too many variables and registers, so as you can see I had to remove some function to get it to compile at Shader 2 level.

I'm afraid I can't help here. Maybe someone else can.

Sadly, PatrickL

DPL Freeware Effects and Transitions for Vista MM Website
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: Deformation Effects in video!
Posted: 29 Feb 2008 12:01 PM
I think the Mobile 945 chipset includes the Intel® Graphics Media Accelerator 950, but if I read the specs correctly it does vertex shading in software, not in hardware. However the chipset should also allow for the addition of a more powerful PCI Express video card, if the GMA950 doesn't cut it.

Blaine
Movie Maker (Custom Titles, Effects. etc.)Cool
WMM 6.0 on Windows 7 or 8
YouTube videos
moviemakerkid is not online. Last active: 1/13/2015 11:03:35 PM moviemakerkid
Top 25 Poster
Joined: 18 Jan 2007
Total Posts: 1174
 
Re: Deformation Effects in video!
Posted: 02 Mar 2008 12:02 PM
Well i have tried re-installing my graphics card but that didnt work either. I am kind of confused of what your saying considerate guy, do you have a solution to my problem?

My Downloads For Movie Maker
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: Deformation Effects in video!
Posted: 02 Mar 2008 02:49 PM
I'm saying if the video chip on the Intel motherboard is too weak to do it, you can buy a 3D Graphics accelerator and install it in the PCI Express slot.

Blaine
Movie Maker (Custom Titles, Effects. etc.)Cool
WMM 6.0 on Windows 7 or 8
YouTube videos
moviemakerkid is not online. Last active: 1/13/2015 11:03:35 PM moviemakerkid
Top 25 Poster
Joined: 18 Jan 2007
Total Posts: 1174
 
Re: Deformation Effects in video!
Posted: 02 Mar 2008 03:14 PM
Ug ok, thanks for the help, i plan on buying a new laptop soon, so i can add this to my checklist to make sure it supports. Thanks again.

My Downloads For Movie Maker
Planetkids is not online. Last active: 10/14/2008 5:12:58 PM Planetkids
Joined: 25 Sep 2007
Total Posts: 57
 
Re: Deformation Effects in video!
Posted: 10 Aug 2008 11:51 AM
can you just provide the xml? or do you need the installer, because neither work.
Previous Thread :: Next Thread 
Page 1 of 2Goto to page: [1], 2 Next
 
Movie Maker Forums  > Movie Maker Users Showcase  > Share Your Vista Transitions and Effects!!  > DPL 2D Deformation Effects for ShaderTFX