How to stretch images to a perspective
#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.ó

Reply
#2
You need to use a conditional rotate animation on the control with the condition set to "true" so its always like it
Reply
#3
Thank you!

That was much easier then expected ^^'
Reply

Logout Mark Read Team Forum Stats Members Help
How to stretch images to a perspective0