Effect-Graphs in our XAML/C# metro apps using SharpDx :)


image

Thanks to SharpDx we can now create complex effect graphs (in code) in our WinRT-XAML/C# apps.

I took the Xaml/Cx D2DBasicEffectGraph sample from the consumer preview and pretty much redid it to work with SharpDx for us managed programmers Smile

 

1. Creating the Effect Graph

 

In this demo I graph 2 effects together ( BitmapSourceEffect –> GaussianEffect )

The BitmapSourceEffect feeds into the GaussianEffect (input)

image

 

2. Rendering the Graph on a Surface

 

Using a SurfaceImageSource I render the effect onto a D2DSurface. Also there are sliders to alter various exposed properties on the 2 above mentioned effects

image

 

3. Here’s a quick video of it in action:

 

 

4. Here’s the source of the sample:

 

 image

5. Conclusion

 

Effect graphs are very powerful and it’s the most exciting feature of Dx11.1 in my opinion. I can’t wait to show you guys more stuff that I’ve been dreaming up with WinRT/XAML/DirectX/C# and of course SharpDx Smile 

Exciting times ahead!!!

3 responses to “Effect-Graphs in our XAML/C# metro apps using SharpDx :)

  1. Pingback: Effect-Graphs in our XAML/C# metro apps using SharpDx :) | Silverlight and other cool things …

  2. Pingback: Interesting Windows 8 Links – 2012-04-13 | Dan Rigby

  3. Pingback: Custom Effects – Ripple Effect (Pixel Shader) | Silverlight and other cool things …

Leave a comment