OverviewV-Play 1 SupportPolygonitem texture › Reply To: Polygonitem texture

OverviewV-Play 1 SupportPolygonitem texture › Reply To: Polygonitem texture

V-Play Team

Hi Heini,

you again brought up a good point!

The PolygonItem does not suppot content-scaling like the MultiResolutionImage does. So you would need to implent this “content-scaling” on your own.This is a suggestion how to do that:

Set the texture property to your hd2 image, and then set the scale property of your PolygonItem to 0.25. If you use the hd image, set the scale to 0.5.

Ideally you can then find out based on the xScaleForScene which image and scale factor you should take. Have a look at the implementation of the and MultiResolutionImage component and ContentScaleFileChooser (this one is not in the doc but in the engine sources).


That way your images should look sharp on any resolution.


Cheers, Chris

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
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support