[Transition] Spin.tra

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
morte0815 Offline
Member
Posts: 59
Joined: Sep 2004
Reputation: 0
Location: Germany
Post: #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
find quote
pike Offline
Project Manager
Posts: 4,824
Joined: Sep 2003
Reputation: 29
Location: Sweden
Post: #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: badge.gif]
find quote