2006-10-03, 19:35
This one is just a try (spinnes the current preset out and the next in):
Have Fun
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(0, 0, 5.414-time);
gfxColour(1, 1, 1, 1);
gfxTexRect(-1, 1, 1, -1);
gfxPopMatrix();
gfxSetTexture(TEXTURE_CURRPRESET);
gfxTranslate(0, 0, 2.414+time);
gfxColour(1, 1, 1, 1);
gfxTexRect(-1, 1, 1, -1);
}
if (time >= 1.5f){
gfxSetTexture(TEXTURE_CURRPRESET);
gfxTranslate(0, 0, 2.414+time);
gfxColour(1, 1, 1, 1);
gfxTexRect(-1, 1, 1, -1);
gfxPopMatrix();
gfxSetTexture(TEXTURE_NEXTPRESET);
gfxTranslate(0, 0, 5.414-time);
gfxColour(1, 1, 1, 1);
gfxTexRect(-1, 1, 1, -1);
}
if (time>=3){
FINISHED = true;
}
}
Have Fun
![Big Grin Big Grin](https://forum.kodi.tv/images/smilies/grin.png)