[solved] - FanArt transition

Discussion in 'Skins and Design' started by ge2301, December 8, 2015.

  1. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,269
    Likes Received:
    1,576
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart
    Ratings:
    +2,371 / 2
    Home Country:
    Germany Germany
    @Developers
    Is there any chance to achieve a smooth transition for the FanArtBackgrounds? Actually it is really annoying, that always the standard background is always with a flicker visible, when the focus is changed from one to another MediaItem.
    In MP1 there is a smoother transition, means once the focus is changed, the previous FanArtBackground fades away, while the new FanArtBackground fades in.

    Is that also possible to achieve for MP2?


     
    • Agree Agree x 2
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    11,082
    Likes Received:
    4,765
    Ratings:
    +6,823 / 11
    Home Country:
    Germany Germany
    Show System Specs
    Generally spoken the MultiImageSource allows any transisition between different image sources, this is how the PicturePlayer works.

    But you have to consider that you then also have a fixed transition duration between each source, which gives "delays" if you move around the media items quickly and thus are changing images sources.

    For the current situation you should also try to remove the fallback source defintion (which is shown during time of loading the primary source)
     
    • Like Like x 1
  4. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,269
    Likes Received:
    1,576
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart
    Ratings:
    +2,371 / 2
    Home Country:
    Germany Germany
    Where would I have to remove the FallbackImage?
    In https://github.com/MediaPortal/Medi...s/Win10/backgrounds/image-background.xaml#L18
    no Fallback is defined and setting the transition effects on "True" has no effect. Are the FanArts shown in a different way?
     
  5. Lehmden
    • Premium Supporter

    Lehmden Retired Team Member

    Joined:
    December 17, 2010
    Messages:
    11,894
    Likes Received:
    2,151
    Gender:
    Male
    Location:
    Lehmden
    Ratings:
    +3,626 / 28
    Home Country:
    Germany Germany
    Show System Specs
    On this no change on displayed graphics should happen. Only if the focus stays for e.g. half a second on the same MI, then the transition should start. While scrolling through the list the multiple tries to load and show graphics are only disturbing and slowing down the GUI...
     
  6. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    11,082
    Likes Received:
    4,765
    Ratings:
    +6,823 / 11
    Home Country:
    Germany Germany
    Show System Specs
    @ge2301: Ok, this was a misunderstanding. The xaml you have linked to applies to the PicturePlayer fullscreen, not fanart.

    I meant the fallbacksource (MediaItem) here:
    https://github.com/MediaPortal/Medi...lueVision/screens/MediaItemFanArt.inc#L23-L25

    Regarding transitions: if you look at the class comments:
    https://github.com/MediaPortal/Medi...rols/ImageSources/MultiImageSource.cs#L38-L43

    Our FanArtImageSource derives from this class, which means it is able to use all transition features as well. The allowed transitions are defined by https://github.com/MediaPortal/Medi...s/Win10/backgrounds/image-background.xaml#L21
     
  7. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,269
    Likes Received:
    1,576
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart
    Ratings:
    +2,371 / 2
    Home Country:
    Germany Germany
    But this does not affect the FanArtImage in the Background or does it? Actually I mean the FanArts in the background. Between them the standard background image is always "popping up", not a fallback. :)

    Deleting the fallback means also, that no audio covers are shown any more. The fallback referrs to the MediaItem itself as you know. Since nothing for audio available, the cover is the MediaItem fallback .
     
  8. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,269
    Likes Received:
    1,576
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart
    Ratings:
    +2,371 / 2
    Home Country:
    Germany Germany
    From my understanding the transition, delay etc. of FanArtImages in the background demand #C changes. Therefore I tagged also developers. Is my understanding right?
    Target is, that the "current" FanArtBackground is kept, until the "next" FanArtBackground is loaded. There shouldn't be a intermediate (Fallback, standard background etc. in between).
    I believe it is possible somehow, as also available in MP1.
     
  9. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    11,082
    Likes Received:
    4,765
    Ratings:
    +6,823 / 11
    Home Country:
    Germany Germany
    Show System Specs
    Have you tried a picture slide show yet? ("add all to playlist")
    There you can see that image transistions are working.

    That's why I have asked if you have tried the transition / transition duration properties on FanArtImageSource already? And omitting any FallbackSources if present.
     
  10. ge2301
    • Team MediaPortal

    ge2301 MP2 Design

    Joined:
    January 11, 2014
    Messages:
    6,269
    Likes Received:
    1,576
    Gender:
    Male
    Occupation:
    Automotive Industry
    Location:
    Stuttgart
    Ratings:
    +2,371 / 2
    Home Country:
    Germany Germany
    I think there is still a small misunderstanding :)
    I do not know in which xaml I can change a FallbackSource for a FanArt Background. I do not mean the BV Fanart showing in the frame on right side.

    Transitions for picture slide shows are working. In case I omit the FallbackSource for the BV Fanart showing on the right side, the shadow behind is popping up instead of the Fallback. So the flicker is always, I can just decide what is popping up between two FanArtImages.
    In general FanArts should be visible, until another FanArt is loaded and is ready to show.
     
    • Agree Agree x 2
  11. Brownard
    • Team MediaPortal

    Brownard Development Group

    Joined:
    March 21, 2007
    Messages:
    1,919
    Likes Received:
    789
    Gender:
    Male
    Ratings:
    +1,326 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    I think you're going to run into problems trying to get transitions to work for the background fanart. It currently uses a FanArtImageSourceConverter which creates a new FanArtImageSource every time the binding (media item) changes, this means that transitions can't be used because they only work when the ImageSource stays the same but it's url changes.

    I have implemented a new ImageSource that works around this by accepting an ImageSource as a source. It does work and allows a smooth transition when scrolling, etc but I never released it because I wasn't entirely happy about how it was implemented, i.e in xaml you need to declare my image source with the actual image source nested inside which seemed a bit hacky.
    I did also add add a delay property which improves scrolling a lot, it will only load/display a new image when the binding hasn't changed for a set period of time, which avoids loading a lot of images when scrolling quickly through a list.

    It is implemented entirely as a plugin so I might tidy it up this weekend and let you have a try @ge2301
     
    Last edited: December 9, 2015
    • Like Like x 3
    • Thank You! Thank You! x 2
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!