Supporting

If you like MediaPortal please support it by making a small donation:

         Donate to MediaPortal!

Login Form

User name

Password



Forgotten your password?
No account yet? Create one

Awards

opcz_testsieger





Home arrow News arrow MediaPortal II gets opensource wpf engine
MediaPortal II gets opensource wpf engine
Written by Frodo, on 30-12-2007

Some people wondered why we didnt use WPF for our skinengine.
WPF (Windows Presentation Foundation) , is a new technology from Microsoft for creating really cool GUIs
Although WPF is a wonderfull piece of technology, it also has some major drawbacks. One of those drawbacks is that there is no way to integrate WPF with DirectX and/or DirectShow. Although WPF contains its own internal video player that player is so limited and unusable for an application like MediaPortal. Some other drawbacks are the focus/input management and offcourse the fact that its closed source

That said, WPF still rocks. Skinners get really nice features like vector graphics, linear& radial gradient brushes, image brushes, panels, storyboards, triggers, animations etc etc etc

So I have started on a new mission:
For MP-II I'm creating my own opensource version of WPF


click here to read more
click here to discuss this post


With our own opensource WPF skinengine we get all the nice stuff from WPF and since its opensource we can perfectly integrate with other technologies like DirectX and DirectShow

Creating an opensource version of WPF is not a light task, but in the last couple of weeks we already came a long way.


Here's a list of whats already done:

Layout engine
  • StackPanel
  • Canvas
  • DockPanel

Animation engine
  • Storyboard
  • ColorAnimation & ColorAnimationUsingKeyFrames
  • DoubleAnimation & DoubleAnimationUsingKeyFrames
  • PointAnimation & PointAnimationUsingKeyFrames
  • Trigger
  • EventTrigger

Brushes:
  • LinearGradientBrush
  • RadialGradientBrush
  • ImageBrush
  • VisualBrush

Visuals:
  • Border
  • Button
  • UIElement
  • FrameworkElement
General:
  • XamlParser (We use MyXaml here, thx Marc!)
  • Resources

For performance reasons we offload as much work as possible to the graphics card. For example the brushes (like the RadialGradientBrush) is fully rendered by the use of vertex/pixel shaders

We also try to make our version as compatible as possible with Microsoft WPF so that if you use Expression blend, or if you have exisiting xaml files they should be very easy to port to MP-II


Frodo



Users' Comments (21) RSS feed comment
Posted by TheMerovingian, on 30-12-2007, , Registered
1. great work
thank you very much, keep up the good work
 
» Reply to this comment...

Posted by LvA, on 30-12-2007, , Registered
2. cool
it sounds very cool :D 
 
but does this mean mediaportal 2 wont work on onboard graphic-cards?
 
» Reply to this comment...

Posted by KoktGrus, on 30-12-2007, , Registered
3. =D
sounds great! as usual ;) 
 
i don´t thing MP2 is going to overload a onboard graphics-card, it´s just simple graphics, nothing complicated... or is it? ;)
 
» Reply to this comment...

Posted by hanoota, on 30-12-2007, , Registered
4. Great
sounds fantastic! 
keep up the great work
 
» Reply to this comment...

Posted by spenca, on 31-12-2007, , Registered
5. THX!
sounds great! thanks for your hard work!
 
» Reply to this comment...

Posted by mcbelly, on 31-12-2007, , Registered
6. cool...
you must be really bored.... ;-)) 
 
Love it !
 
» Reply to this comment...

Posted by Leiden, on 31-12-2007, , Guest
7. Cool
Sounds awesome, Mediaportal Rocks. 
 
I assume that for on-board graphics there would be necessary fall-backs i.e when lacking pixel/vertex shader support. Probably would just mean the CPU would have to do more work. Its a good idea though, it means the CPU can focus on decoding/encoding rather than the graphics side of things.
 
» Reply to this comment...
» See all 1 replie(s)

Posted by emphatic, on 01-01-2008, , Registered
8. Übercool
It sounds like 2008 will be a very interesting year for HTPC enthusiasts. Keep up the great work, team!
 
» Reply to this comment...

Posted by Martin, on 01-01-2008, , Guest
9. Keep up the good work
Nice progress with MP II. I'm impressed!
 
» Reply to this comment...

Posted by dipswitch, on 02-01-2008, , Registered
10. when you thought in couldn't get better
unbelievable, is there anything you can't do? ;-) 
 
all the work that has been done the last years by you and the entire team, and all for me (and the rest of the users) to enjoy a really great and free htpc application. awesome!
 
» Reply to this comment...

Posted by Pablo Almirón, on 02-01-2008, , Guest
11. Saludos!!, Hi, from Argentina
Hi, i´m using for 4 yeras Mediaportal I and is a better that MCE of Windows Vista. I´have XP and Mediaportal 2 have the same level of vista or MCE 2005. Work hard, because in my opinion this program have future, and can do a better work with multimedia contents that Vista. The only problem is that in my geforce 2, the program can´t play dvd, using Windvd 7 or PowerDVD 6 (codec page). ¿what can i do? After all, i´continue following your program, is the best!!!
 
» Reply to this comment...

Posted by Huring, on 03-01-2008, , Guest
12. XUL
Just curious, what would be the downsides of using something like XUL, the mozilla UI language? Are there speed issues or are there other downsides, just not a fan of re-inventing the wheel if you dont have to! :-)
 
» Reply to this comment...

Posted by MPmtjs, on 06-01-2008, , Registered
13. Insaine
You are insane. I like it!
 
» Reply to this comment...

Posted by Gregly, on 11-01-2008, , Guest
14. Sounds like a great idea, but...
I love the idea, but please don't bite off more than you can chew! I'd hate to see MP-II fail to deliver on the key features because too much attention was paid to the small things.
 
» Reply to this comment...

Posted by SiLenTYL, on 13-01-2008, , Registered
15. vista aero-style backgrounds?
would it be possible to add those vista aero - style backgrounds to the MP skin ? 
 
that would be very cool
 
» Reply to this comment...

Posted by chabilha, on 23-01-2008, , Registered
16. Remember Abstraction!
Creating our own version of WPF is a good idea, but in the end, please make sure that the actual MPII is interfaced to be able to drop any rendering engine implementation in, whether that be our WPF, M$ WPF, or something else. Remember abstraction!
 
» Reply to this comment...

Posted by Snype, on 23-01-2008, , Guest
17. pre-built?
Would it be a better use of time to leverage somehting like this: Link Text?
 
» Reply to this comment...

Posted by John Vaudin, on 24-01-2008, , Guest
18. WPF not DirectX ?
Surely the whole point of WPF, and indeed .Net 3.0, is that it sits on top of DirectX rather than GDI+. Indeed, isn't DirectX now the native graphics architecture for Vista, with GDI simply drawing into a DirectX texture and then being composited onto the screen. Of course and open source WPF would be cool - I'm just puzzled as to why you think WPF doesn't use DirectX?
 
» Reply to this comment...
» See all 3 replie(s)

Posted by Adam, on 02-02-2008, , Guest
19. DirectX/DirectShow integration with .NET
WPF is certainly implemented on top of DirectX, plus the DirectX SDK comes with managed wrappers nowadays. And DirectShow has been wrapped by at least a couple of people, including this popular one: http:// directshownet.sourceforge.net/ . 
 
I have personal experience developing with DirectShow in WPF, and it actually works rather well. You can create a native window for video rendering, then add it as a child to an HwndHost and voila! 
 
Hope this doesn't put a damper on your effort. Let me know if I can help get you started on your DirectShow/WPF integration.
 
» Reply to this comment...

Posted by Ken, on 11-02-2008, , Guest
20. WPF + DirectX
It's possible to run "my own" graph in WPF. Take a look at this: http:// jmorrill.hjtcentral.com/Home/ tabid/428/EntryID/15/ Default.aspx 
 
Works for my me.
 
» Reply to this comment...

Posted by smook02, on 26-02-2008, , Guest
21. Perfect work!!
I love this new MP II, it is so fast and the graphic is brilliant! I would like to start using it but without plug-in feature I could not connect my WinFast IR remote control. I hope there will be plug-in feature like in old one. 
 
Thanks to all developers of MP :)
 
» Reply to this comment...

Add your comment



mXcomment 1.0.5 © 2007-2008 - visualclinic.fr
License Creative Commons - Some rights reserved
Last Updated ( Tuesday, 08 January 2008 )
 






Status Overview

MediaPortal 1:
- Version: 1.0.0.0 RC1
- Status: featurefreeze
TV-Server:
- Version: 1.0.0.0 RC1
- Status: featurefreeze
MediaPortal 2:
- Version: tech-demo
- Status: in development
Roadmaps:
- MediaPortal 1
- TV-Server
- Installer - DeployTool
 

New Plugins/Skins

May.11 Tellstick Pause
May.09 TVGemist (MPI)
May.07 German TV-Logos V0.9.5 (MPI)
May.07 Indigo 1.9
May.07 Monochrome 1.9

Random Screenshot


MediaPortal supports tv-cards from  

  • Digital Everywhere
  • Hauppauge
  • AVerMedia
  • Pinnacle
  • Technotrend
  • Twinhan
  • KNC One
  • Technisat
  • Dvico
  • FlyTV
  • and many more
MediaPortal, your digital video recorder - 2008 SourceForge.net Logo