vwmmMandi
|
| Joined: 04 Mar 2008 |
| Total Posts: 13 |
| |
|
Emboss Effect for Vista? Posted: 31 May 2008 04:41 PM |
Just wondering if there was one of um around, and if not if one can be made?
Many thanks
vwmmMandi :) |
|
|
 |
|
|
Re: Emboss Effect for Vista? Posted: 01 Jun 2008 03:55 PM |
If you use ShaderTFX, view post 164790 might help. Just use a totally transparent mask.
OR (Vista Only)
Copy the following to the ...AddOnTFX folder as "DPL_Emboss_Effect.xml" :
<!-- ************* DPL_Emboss_Effect.xml to AddOnTFX folder************* -->
<TransitionsAndEffects Version="2.8" >
<Effects>
<EffectDLL guid="TFX">
<Effect name="DPL Emboss" iconid="15" guid="DPL Emboss" ShaderModel="2">
<Animation value="FX" />
<FXFile value="DPL_Emboss_Effect.fx" />
<Technique value="EmbossEffect"/>
<Semantics>
<RectA type="float4" value="0,0,1,1" />
<EmbossDX type="float" value="0.003" />
<EmbossDY type="float" value="0.003" />
<Color type="float4" value = "1,1,1,1" />
</Semantics>
</Effect>
</EffectDLL>
</Effects>
</TransitionsAndEffects>
AND copy the folowing to the ...Shared folder as "DPL_Emboss_Effect.fx" :
// DPL_Emboss_Effect.fx to Shared Folder
//Copyright (c) 2008 PatrickL
#include "common.fxh"
//Global semantics for Emboss Effect
shared float4 rectA : RectA = {0,0,1,1};
shared float dx : EmbossDX = 0.003;
shared float dy : EmbossDY = 0.003;
shared float bias : Bias = 0.5;
shared float4 clr : Color = {1,1,1,1};
shared float gb : GuardBand= 0.000;
////////////////////////////////////////////////////////////////////////////////
// In Rectangle Subroutine
bool isInRect(float2 t, float4 rect) {
return (t.x<(rect.x+gb)?false:(t.x>(rect.x+rect.z-gb)?false:(t.y<(rect.y+gb)?false:(t.y>(rect.y+rect.w-gb)?false:true))));
}
////////////////////////////////////////////////////////////////////////////////
// Emboss Subroutine
float emboss(float2 tex) {
float4 c[10];
c[1] = tex2D(PointSampler, tex + float2(-dx,-dy));
c[2] = tex2D(PointSampler, tex + float2(0,-dy));
/// c[3] = tex2D(PointSampler, tex + float2(dx,-dy));
c[4] = tex2D(PointSampler, tex + float2(-dx,0));
c[6] = tex2D(PointSampler, tex + float2(dx,0));
/// c[7] = tex2D(PointSampler, tex + float2(-dx,dy));
c[8] = tex2D(PointSampler, tex + float2(0,dy));
c[9] = tex2D(PointSampler, tex + float2(dx,dy));
c[0] = (-c[1]-c[2]-c[4]+c[6]+c[8]+c[9]);
return (0.299*c[0].r+0.587*c[0].g+0.114*c[0].b) + bias;
}
////////////////////////////////////////////////////////////////////////////////
// Pixel Shader For Emboss Effect
float4 PS_Emboss(float2 t : TEXCOORD0) : COLOR {
float4 c0;
if (isInRect(t, rectA)) {
c0 = emboss(t);
c0.a = 1.0;
c0 *= clr;
} else
c0 = tex2D(PointSampler, t);
return c0;
}
////////////////////////////////////////////////////////////////////////////////
// Emboss Effect Technique
technique EmbossEffect {
pass P0 {
VertexShader = compile vs_2_0 VS_Basic();
PixelShader = compile ps_2_0 PS_Emboss();
}
}
You may have to copy the fx file to "someplace" and then move it to the Shared folder with administrative priveleges.
And for all this, you will get one new effect called DPL Emboss.
PatrickL |
DPL Freeware Effects and Transitions for Vista MM Website |
|
 |
|
vwmmMandi
|
| Joined: 04 Mar 2008 |
| Total Posts: 13 |
| |
|
Re: Emboss Effect for Vista? Posted: 02 Jun 2008 04:15 PM |
this may be a dumb question but what type of file extension do i use for the second one and what do i save them as?
|
|
|
 |
|
|
Re: Emboss Effect for Vista? Posted: 02 Jun 2008 07:01 PM |
xml and fx. See above for the file names and extensions. You will notice:
DPL_Emboss_Effect.xml
DPL_Emboss_Effect.fx
as the required filename.ext. I should have been more clear.
PatrickL |
DPL Freeware Effects and Transitions for Vista MM Website |
|
 |
|
| |
|
Re: Emboss Effect for Vista? Posted: 03 Jun 2008 12:19 PM |
BTW there are a couple of mods you can make with the XML.
1. Use the rectangle parameter to just emboss a rectangular portion of the image
e.g. <RectA type="float4" value="0.25,0.25,0.75,0.75" />
will emboss just a half size rectangle in the center of the screen and leave the rest alone.
2. Change the color of the embossed area to shades of a color.
e.g. <Color type="float4" value = "1,0,0,1" />
will give a red tinged emboss. The values are red, green, blue, alpha normalized to 0.0->1.0.
OR have the color change with time.
e.g. red to blue - replace the <Color... statement with
<Color type="float4" evaluation="linear" >
<Point time="0" value = "1,0,0,1" />
<Point time="1" value = "0,0,1,1" />
</Color>
Likewise, you could move the rectangle around and resize it with time.
<RectA type="float4" evaluation="linear" >
<Point time="0" value="0.25,00.25,0.5,0.5" />
<Point time="1" value="0,0,1,1" />
</RectA>
Video Sample
Enjoy, PatrickL |
DPL Freeware Effects and Transitions for Vista MM Website |
|
 |
|
|
Re: Emboss Effect for Vista? Posted: 03 Jun 2008 01:10 PM |
The color statement doesn't work if you just paste it in to the first XML. RectA does work!
TheOnePb |
Movie Maker 6.0 on Windows 7 + ShaderTFX, registered
http://youtube.com/profile?user=TheOnePb1 |
|
 |
|
|
Re: Emboss Effect for Vista? Posted: 03 Jun 2008 01:14 PM |
Paste and replace, not just add (or just edit the statement). If you had added it below the existing color statement it might have worked. Last command usually takes precedence. Probably why the RectA worked.
PatrickL |
DPL Freeware Effects and Transitions for Vista MM Website |
|
 |
|
vwmmMandi
|
| Joined: 04 Mar 2008 |
| Total Posts: 13 |
| |
|
Re: Emboss Effect for Vista? Posted: 04 Jun 2008 04:13 PM |
| thanks a ton! works great! |
|
|
 |
|
|
Re: Emboss Effect for Vista? Posted: 19 Jan 2009 08:22 PM |
| Why isn't this working? I've tried 3 times and it's not working... |
-From the world of YouTube, here is BlackbuckTwilight (now BlackbuckTwilightify)
http://youtube.com/user/BlackbuckTwilightify |
|
 |
|
|
Re: Emboss Effect for Vista? Posted: 20 Jan 2009 08:34 AM |
Hi BlackBuckTwilight,
A little more info would help the diagnosis, however:
If you are using the code posted here, the most probable problems are:
Typo in the FX file name
Typo on the FX or XML file extension
Extraneous/Missing info when copying to the files
FX file not in the Shared Folder
XML file not in the AddOnTFX Folder
.... need more info if this doesn't help.
BTW, enjoyed your Nightmare and Dreamland effects. Clever mod to the Shade effect.
PatrickL
|
DPL Freeware Effects and Transitions for Vista MM Website |
|
 |
|
|
Re: Emboss Effect for Vista? Posted: 01 Feb 2009 02:12 PM |
Oh, I figured out the problem. When I tried to save the second part as .fx, it actually saved as .fx.txt
So, I figured it out. Thanks for the info!
Oh, and thank you so much for your feedback on my Nightmare and Dreamland effects! I really appreciate hearing from you! ^^ |
-From the world of YouTube, here is BlackbuckTwilight (now BlackbuckTwilightify)
http://youtube.com/user/BlackbuckTwilightify |
|
 |
|
Ashmo90
|
| Joined: 29 Mar 2009 |
| Total Posts: 5 |
| |
|
Re: Emboss Effect for Vista? Posted: 30 Mar 2009 05:40 PM |
PatrickL
There is a problem when i downloaded it
it would not work on my WMM
it had an X on it
how can i fix this?
Please help if you can :D!
Ashmo90 |
Hey find me at
http://www.youtube.com/user/FinestModelHorses
:D |
|
 |
|
|
Re: Emboss Effect for Vista? Posted: 31 Mar 2009 08:30 AM |
Assuming that you used the XML and FX code posted above, you should have 2 files installed:
DPL_Emboss_Effect.xml in .../Shared/AddOnTFX/
and
DPL_Emboss_Effect.fx in .../Shared/
is that the case?
PatrickL
|
DPL Freeware Effects and Transitions for Vista MM Website |
|
 |
|
tpott05
|
| Joined: 11 Apr 2009 |
| Total Posts: 8 |
| |
|
Re: Emboss Effect for Vista? Posted: 11 Apr 2009 12:40 AM |
im new to the formuns but in know how to save all of the files and stuff but when i go to the preview it is only black i do have that dpl thing and the shreddar thing or watever
|
|
|
 |
|
|
Re: Emboss Effect for Vista? Posted: 11 Apr 2009 11:30 AM |
If you are using the code posted earlier here, the button is in the effect list and the screen is black it usually means:
1. The fx file is in the wrong folder
or
2. The fx file has the wrong name.extension
or
3. The fx file is damaged ( missing line, extra line, etc.)
Read the earlier messages in this thread for some other thoughts.
or what do you mean by dpl thing and shreddar thing?
Good Luck, PatrickL |
DPL Freeware Effects and Transitions for Vista MM Website |
|
 |
|
|
Re: Emboss Effect for Vista? Posted: 30 May 2009 10:29 PM |
Hey,
I've tried to download this effect multiple times. I've done what it says to do and rechecked over and over again but it still doen't work! Can you help??
SS16 |
|
|
 |
|
|
Re: Emboss Effect for Vista? Posted: 31 May 2009 08:39 AM |
Hi SS16,
Assuming that you are using the XML/FX code posted in this thread:
If the DPL_Emboss_Effect.xml file is undamaged, named properly and installed in .../Shared/AddOnTFX/, you should have an effect called DPL Emboss in the Effects list in Movie Maker 6.0. If not, recheck.
If DPL Emboss is in the effects list and just previews as a black screen, then the FX file (DPL_Emboss_Effect.fx) is Misnamed, Misplaced or damaged.
If you are using the ShaderTFX version, ShaderTFX must be Installed and operating correctly unexpired or registered.
Good luck, PatrickL |
DPL Freeware Effects and Transitions for Vista MM Website |
|
 |
|
Chica94
|
| Joined: 19 Jun 2009 |
| Total Posts: 17 |
| |
|
Re: Emboss Effect for Vista? Posted: 23 Jun 2009 07:57 PM |
PatrickL--
I downloaded it like that, and it says in my WMM that the effect is there, but when i click play on the flower picture [the example] it just goes black. :/ |
|
|
 |
|
|
Re: Emboss Effect for Vista? Posted: 30 Jun 2009 04:08 PM |
I had the same problem. Try checking my other comment on this same page ---
(The one about my computer kept saving it as DPL_Emboss_Effect.xml.txt)
Make sure it didn't save with the .txt at the end! |
-From the world of YouTube, here is BlackbuckTwilight (now BlackbuckTwilightify)
http://youtube.com/user/BlackbuckTwilightify |
|
 |
|
chjoezen
|
| Joined: 17 Jan 2010 |
| Total Posts: 27 |
| |
|
Re: Emboss Effect for Vista? Posted: 21 Jan 2010 12:28 AM |
| I accidentally created sort of an emboss effect with one of my videos. Using translucency50%, I copied the same video twice, then I put negative effect on video A and of course you might want to mute video A or B. It looks a lot like an emboss effect. |
|
|
 |
|