How to stretch images to a perspective

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Suven Offline
Senior Member
Posts: 103
Joined: Nov 2010
Reputation: 1
Post: #1
Hi!

I wasn't able to find something about this in the wiki or forums, or maybe I searched for the wrong keywords.

What I want to do is to stretch an image so that its left sides height is 100% and its right sides hide is something smaller (like 80%). In orther words: I want to transform it in perspective like for example AEON Nox does in the Caroussel-View.

I tried this (since it seems AEON does it the same way):

Code:
        <control type="image">
            <posx>146</posx>
            <posy>73</posy>
            <width>413</width>
            <height>586</height>
            <fadetime>100</fadetime>
            <texture diffuse="other_textures/diffuseMask.png" fallback="DefaultAddonNone.png">$INFO[Container(50).Listitem(-1).Icon]</texture>
            <aspectratio scalediffuse="false">stretch</aspectratio>
            <visible>!IsEmpty(ListItem.Icon)</visible>
        </control>

My diffuse mask containts a white transformed square on transparent background. The problem is that the image is just cropped, so that the diffuse mask works exactly as described in the wiki (white pixels are shown, transparent ones are not).

But how did Aeon achieve this o.รณ
find quote
Jezz_X Offline
Team-XBMC Skinner
Posts: 5,289
Joined: Jun 2006
Reputation: 57
Location: Earth
Post: #2
You need to use a conditional rotate animation on the control with the condition set to "true" so its always like it
find quote
Suven Offline
Senior Member
Posts: 103
Joined: Nov 2010
Reputation: 1
Post: #3
Thank you!

That was much easier then expected ^^'
find quote