Concept: Switch MP2 to D3D11/D2D rendering (1 Viewer)

MaxMan23

MP Donator
  • Premium Supporter
  • September 8, 2007
    380
    48
    Home Country
    Germany Germany
    Hi morph,

    i saw a little thing. wehen you go to movies and there are the moving backgrounds. They look not as good as they are in the original builds are.
    (kurz auf deutsch: die bewegten Hintergrundbilder unter filme wirken etwas verpixelter als bei der originalen) ansonsten läuft bei mir alles gut :)
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #32
    Thanks MaxMan23. I can confirm this.Currently I use "DrawBitmap" which only supports Linear scaling. Additionally the used Layers (for clipping) introduced a performance drop.

    I now removed the Layer again and use a Rectangle+BitmapBrush to draw images. This has the advantage that I can use higher quality scaling algorithmens. I plan to introduce settings to allow user to change the mode (performance vs. quality).
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #33
    Next step is done: we now have the first Effect ready, the "DropShadowEffect" :D

    I will create a new testbuild very soon, for now there is a first screenshot. Notice the shadows behind the "tiles"
    20150103-Effects.jpg



    @wizard123 seems we can start fine tuning Apollo One soon :D
     

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,741
    3,501
    Stuttgart
    Home Country
    Germany Germany
    @morpheus_xx
    After starting your latest DX11-V2 build, all button clicks create errors.
    I attach my log files. Can it be related to the latest changes you implemented, didn't face this problem before?
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #36
    Ah, yes. Skin is not adopted yet: I removed the old effects from MPF namespace because I now use a different base class:
    MediaPortal.UI.SkinEngine.Xaml.Exceptions.XamlParserException: Element type 'ZoomBlurEffect' is not present in MpfNamespaceHandler

    If you like to change it manually, search for all Effects in xaml (only few in solution) and remove them.
     

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,741
    3,501
    Stuttgart
    Home Country
    Germany Germany
    @morpheus_xx
    I removed them manually and it's working now. But I faced another "problem" now. Long content text of movies starts to scroll with a correct transparency gradient.
    But once the text scrolled by about one text row the gradient effect is gone and it looks like in attached screenshot.
    (The problem was also before my modifications, so it was not generated by me ;))
     

    Attachments

    • Unbenannt.jpg
      Unbenannt.jpg
      418.5 KB

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #38
    Thanks, noticed this already. Have to check it.
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #39
    I've added "BlurEffect" and use it for Dialog:
    20150104-BlurShadow.jpg

    You see a new problem, introduced by effects: the Button highlight is now clipped at border (the blur bar was overlapping it). I have to see if I can fix this.

    Another new problem: due to rendering to a temporary bitmap first, also the mouse input is translated to (0;0) as offset: you can't focus the buttons by mouse currently, you have to move the mouse over empty area in top left.
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #40
    I could solve both the mouse positioning and rendering of overlapped area by using a full size rendertarget. But this comes with performance impacts. I need to think about optimizations...
    20150105-BlurShadow_perf.jpg
     

    Users who are viewing this thread

    Top Bottom