Help with anim control rotate
#1
I have an image which i want to rotate around its own center x axis.

However i dont get it.

this is my code:
Code:
        <control type="image">
            <posx>-4</posx>
            <posy>480</posy>
            <width>1319</width>    
            <texture>home/HomeBarBase.png</texture>
            <animation type="WindowOpen">
                <effect type="rotatex" start="360" end="0" center="640,0" time="1000" delay="200"/> <!-- tween="back" easing="out" -->
                    </animation>
        </control>

If i change "rotatex" with "rotatey" i get a perfect 360 rotation around the image own center axis. But with rotatex it seems to rotate around the bottom of my image, no matter what i do.

I have also tried to play around with the camera control but without any luck.

Is it a bug ? or am i just slow ?

It's easy to reproduce with the code i given above, just make sure your image is in the center y axis of your screen and
replace rotatex with rotatey
PointOfView Nvidia ION Atom 330 - TRANSCEND 2GB DDR2 DIMM 800MHz - G.SKILL 64GB SSD 2.5
Open Elec Beta4 1.95.4
XBMC Online Manual - HOW-TO post about a problem in a useful manner - Create/View Bug Report
Setup/Fix correct resolution on XBMC/Ubuntu - Usefull linux terminal commands
Reply
#2
The first value of center has to be the absolute y-center-coordinate of your image.

E.g. if you have

Code:
<control type="image">
  <posx>0</posx>
  <posy>200</posy>
  <width>1920</width>
  <height>450</height>
</control>

center has to be "425,0".
Image
Reply
#3
you can use center="auto"
Reply
#4
That doesn't work most of the time for rotate, you'll never get the desired result. At least that's my impression.
Image
Reply
#5
Thanks for all the suggestions, gonna double check my code.

I have tried using auto with camera controls x and y but that
would never cleanly rotate the image around it's own axis.

Gonna see some more on my code but i have no idea why
i get the y axis to rotate perfect but not on the x. I was
thinking that the same logic applied to both but thats not the case.

I have tried to set the x value to the absolute middle of my image as you suggested black but stil it rotates from the bottom. If i increase any value above "0" on the center="640,0" it jsut only get worse and actual moves the whole image further up on the screen.
PointOfView Nvidia ION Atom 330 - TRANSCEND 2GB DDR2 DIMM 800MHz - G.SKILL 64GB SSD 2.5
Open Elec Beta4 1.95.4
XBMC Online Manual - HOW-TO post about a problem in a useful manner - Create/View Bug Report
Setup/Fix correct resolution on XBMC/Ubuntu - Usefull linux terminal commands
Reply
#6
Try to specify <height> in your image control.
Image
Reply
#7
`Black Wrote:Try to specify <height> in your image control.

that would indeed be an issue
Reply
#8
Jezz_X Wrote:that would indeed be an issue

Offcourse ! i forgot the height control Smile
Problem solved - thanks guys.

sometimes the obvious is right in front of your nose !
PointOfView Nvidia ION Atom 330 - TRANSCEND 2GB DDR2 DIMM 800MHz - G.SKILL 64GB SSD 2.5
Open Elec Beta4 1.95.4
XBMC Online Manual - HOW-TO post about a problem in a useful manner - Create/View Bug Report
Setup/Fix correct resolution on XBMC/Ubuntu - Usefull linux terminal commands
Reply

Logout Mark Read Team Forum Stats Members Help
Help with anim control rotate0