Welcome to MSDN Blogs Sign in | Join | Help

Alpha Video with Silverlight 3 Pixel Shaders

One of the requests that I hear quite often for Silverlight is support for Alpha Video where video has transparent regions to ease compositing.  By adding GPU-Accelerated Pixel Shaders to Silverlight 3, that capability will now be possible.

One of the foundational new features in Silverlight 3 (to be released later this year) is the software-based GPU-based Pixel Shader support like WPF already has.  You can use any pixel shaders created for WPF for Silverlight applications.  The WPF Pixel Shader Library on CodePlex now has a Silverlight 3 library as part of the source code.  One of the shaders in that library is a simple color key pixel shader.  I started with that shader and adapted it by adding color and tolerance properties as well as design-time support for Expression Blend 3 and an installer that adds the shader to Expression Blend Asset panel).

You can download the shader installer and source code here.

Expression Blend 3 Asset Library Expression Blend 3 Properties Pane

image

5/15/2009 – Correction: pixel shaders in WPF are GPU accelerated, in Silverlight 3, they will be software-based.

Published Thursday, May 14, 2009 4:51 AM by Michael S. Scherotter

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Anith » Alpha Video with Silverlight 3 Pixel Shaders

# Alpha Channel Pixel Shaders for Silverlight 3

Over at the Synergist blog, the author has a nice article on custom controls for Silverlight 3 that allow

Thursday, May 14, 2009 8:00 PM by Don Burnett's Designing For .NET Blog

# Alfa-kanal i Silverlight-video med Pixel Shader-effekt

Silverlight har hitills inte haft stöd för Alfa-kanaler i video för att skapa effekter med genomskinlighet

Friday, May 15, 2009 4:17 AM by Robert Folkesson

# mais uma notícia boa do Silverlight 3: recortando canal Alfa de video

  sempre me perguntavam se Silverlight tinha suporte pra video com canal alfa, e eu sempre respondia:

Friday, May 15, 2009 9:42 AM by o UAU nosso de cada dia

# Alpha Video with Silverlight 3 Pixel Shaders - Michael S. Scherotter

Thank you for submitting this cool story - Trackback from DotNetShoutout

Friday, May 15, 2009 3:17 PM by DotNetShoutout

# moc Pixel shaderów nadchodzi

Na początku traktowałem wsparcie dla pixel shaderów w Silverlight 3 jako miłą ciekawostkę. Dobrze, że

Monday, May 18, 2009 9:57 AM by SocialITy

# Alpha Video met Silverlight 3 pixel shaders

De mogelijkheid van het gebruiken van Alpha Video (of Chroma Key) is een veel gehoord verzoek voor Silverlight

Tuesday, May 19, 2009 3:31 AM by Microsoft User Experience Blog

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker