[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  > Add-ons and Updates for Windows Movie Maker  > Re: Problems with Brightness - custom plugin    
Previous Thread :: Next Thread 
 Author Thread: Problems with Brightness - custom plugin
digital is not online. Last active: 12/25/2006 11:18:16 PM digital
Joined: 03 Sep 2006
Total Posts: 7
 
Problems with Brightness - custom plugin
Posted: 03 Sep 2006 11:55 AM
I'm learning how to write plugins for wmm, and I'm playing with the brightness effect:

[CODE]
<TransitionsAndEffects Version="1.0" >
<Effects>
<EffectDLL guid="{B4DC8DD9-2CC1-4081-9B2B-20D7030234EF}">
<Effect name="__Brighter" iconid="20" comment="brighter">
<Param name="InternalName" value="Standard" />
<Param name="Brightness" value="20" />
</Effect>
</EffectDLL>
</Effects>
</TransitionsAndEffects>
[/CODE]

According to the Microsoft description, Brightness is from 0 to infinity.
But I can only make it work darker (e.g. "Brightness" value="0.5" ), and can't get it brighter (e.g. "Brightness" value="4" ).

any sugestions?
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: Problems with Brightness - custom plugin
Posted: 03 Sep 2006 08:35 PM
Try this code. Values for Brightness seem to be unbounded:


<TransitionsAndEffects Version="1.0" >
<Effects>
<EffectDLL guid="{5A20FD6F-F8FE-4a22-9EE7-307D72D09E6E}">
<Effect name="Brightness 0" iconid="6" comment="Brightness">
<Param name="Brightness" value="0" />
</Effect>
<Effect name="Brightness -100" iconid="6" comment="Brightness">
<Param name="Brightness" value="-100" />
</Effect>
<Effect name="Brightness 100" iconid="6" comment="Brightness">
<Param name="Brightness" value="100" />
</Effect>
<Effect name="Brightness 1000" iconid="6" comment="Brightness">
<Param name="Brightness" value="1000" />
</Effect>
</EffectDLL>
</Effects>
</TransitionsAndEffects>


Copy paste the xml code into notepad and Save As brightness.xml in folder C:\Program Files\Movie Maker\Shared\AddOnTFX. Create the AddOnTFX folder if necessary. Confirm the file has .xml extension by turning off the "hide extensions of known file types" from Explorer > Tools > Folder options > View. Restart WMM.




www.rehanfx.org - do more with Windows Movie Maker...
rehanfx.x10hosting.com - mirror site
digital is not online. Last active: 12/25/2006 11:18:16 PM digital
Joined: 03 Sep 2006
Total Posts: 7
 
Re: Problems with Brightness - custom plugin
Posted: 03 Sep 2006 10:39 PM
Thanks. It works nicely. I noticed that you're using a different guid than in my example (which was based on the Microsoft article).
To go one step further, I looked up your guid in Google, and this dll supports also contrast and gamma. Unfortunately they don't seem to work (I tried gamma = 2, contrast = 10, 100). Any comments? Is there an easy way figure out the practical range of values for contrast and gamma?
Can I actually find out somehow what equation is used when brighness, contrast, gamma are changed?
thanks.
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: Problems with Brightness - custom plugin
Posted: 05 Sep 2006 04:42 PM
The simple explnation is that the ones that dont work are broken.

I cannot be sure about the code, but if you look at the code that MS have posted as sample accompanying the MSDN article, then you can see that defenitely is broken. It may be the case that it is the same code implemented in that DLL (but obviously it is just a guess).

The code in question is:


//Has a Brightness correction been requested?
//For brightness adjustment, each color channel value is multiplied by the Weights value.
//The adjustment is applied in ulCount steps over the 256 values of the lookup table.
//These values should be greater than or equal to zero and are usually around 1.0.
if (DEFAULT_BRIGHTNESS_VALUE != m_fBrightness)
{
rgopiLUTOrder[nNumOperations++] = OPID_DXLUTBUILDER_Brightness;
RTN_HR_IF_FAILED(m_pLUTBuilder->SetBrightness(1, &m_fBrightness) );
}



I dont know if it helps.

www.rehanfx.org - do more with Windows Movie Maker...
rehanfx.x10hosting.com - mirror site
digital is not online. Last active: 12/25/2006 11:18:16 PM digital
Joined: 03 Sep 2006
Total Posts: 7
 
Re: Problems with Brightness - custom plugin
Posted: 05 Sep 2006 10:43 PM
well, I don't fully understand the example. In any case, I was hoping this very same dll was used in windows media player, where contrast is implemented too. But this appears not to be the case.
Previous Thread :: Next Thread 
Goto to page:  Prev Next
 
Movie Maker Forums  > Windows Movie Maker  > Add-ons and Updates for Windows Movie Maker  > Re: Problems with Brightness - custom plugin