Forums

OverviewV-Play 2 Support (Qt 5) › MultiResolutionImage and not supported resolution(240 x 320) issue

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8585

    Marcin

    Hello,
    I follow this tutorial:
    http://v-play.net/doc/howto-balloon-game/

    Everything works apart from device with really low resolution (to test used LG E430 240×320, in Landscape mode width is 320px).
    When I debug on that device don’t see any balloons.
    In the end the issue is with MultiResolutionImage(Balloon.qml- btw works with device 320×480)

      MultiResolutionImage {
        id: sprite
        source: "../../assets/img/balloon.png"
        anchors.centerIn: parent
      }

     

    If I switch to Image:

    Image {
        id: sprite
        source: "../../assets/img/balloon.png"
        anchors.centerIn: parent
      }

    it works.
    I suppose it happens because such low resolution is not supported out of the box(3 versions are supported: sd, hd an hd2 and they start with higher res).

    For now I fixed that by adding in my main.cpp :
    if (QApplication::desktop()->screenGeometry().width() < 480) {
    vplay.setContentScaleAndFileSelectors(1);
    }
    doing this I force the fallback settings if resolution is too low.

    Maybe it would be a good idea to inform somewhere in the docs what to do with low resolution and MultiResolutionImage ?
    I am not seeing that edge case like this should be handled 100% but at least switch to default settings ? Use the sd (480×320) ?

    Linux 64, Qt 5.4, V-Play 2.0.

    #8647

    Christian
    V-Play Team

    Hi Marcin,

    thanks for reporting this issue! We’ve fixed it, and with the next update the default sd resolution will be used on ultra-low-res devices too.

    Cheers, Chris

    • This reply was modified 3 years, 6 months ago by  Christian.
Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support