[Transition] Spin.tra
#1
This one is just a try (spinnes the current preset out and the next in):
PHP Code:
// Spin.tra
// Author - morte0815

float time;

void Init()
{
  
time 0;
}

void Render()
{

gfxSetAspect(0);
  
time += TIMEPASS;
  
float angle time 1.5f;
  if (
angle 0){ angle = -angle;}
  
angle 1.5f angle
  
gfxRotate(Pow(360,angle*2),0,0,1);
  
gfxPushMatrix();
  if (
time 1.5f){
  
gfxSetTexture(TEXTURE_NEXTPRESET);
     
gfxTranslate(005.414-time);
     
gfxColour(1111);
     
gfxTexRect(-111, -1);
     
gfxPopMatrix();
    
gfxSetTexture(TEXTURE_CURRPRESET);
     
gfxTranslate(002.414+time);
     
gfxColour(1111);
     
gfxTexRect(-111, -1);
   } 
  if (
time >= 1.5f){
  
    
gfxSetTexture(TEXTURE_CURRPRESET);
     
gfxTranslate(002.414+time);
     
gfxColour(1111);
     
gfxTexRect(-111, -1);
     
gfxPopMatrix();
     
gfxSetTexture(TEXTURE_NEXTPRESET);
     
gfxTranslate(005.414-time);
     
gfxColour(1111);
     
gfxTexRect(-111, -1);
   } 
  if (
time>=3){
    
FINISHED true;
  }
        


Have Fun Big Grin
Reply
#2
that's alot of spins in a short time!
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
[Transition] Spin.tra2