XBMC Community Forum  

Go Back   XBMC Community Forum > Development > Screensaver/Visualization Developement

Screensaver/Visualization Developement Create beautiful presets for XBMC's exclusive Vortex 3D Visualizer

Reply
 
Thread Tools Search this Thread Display Modes
Old 2006-10-03, 20:35   #1
morte0815
Member
 
morte0815's Avatar
 
Join Date: Sep 2004
Location: Germany
Posts: 61
morte0815 is on a distinguished road
Default [Transition] Spin.tra

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
morte0815 is offline   Reply With Quote
Old 2006-10-03, 20:53   #2
pike
Project Manager
 
pike's Avatar
 
Join Date: Sep 2003
Location: Sweden
Posts: 4,281
pike is on a distinguished road
Send a message via MSN to pike
Default

that's alot of spins in a short time!
__________________
Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first.


pike is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DVDPlayer DVD9 (dual-layer) transition freeze? aHorseofCourse XBMC for Xbox Specific Support 43 2007-04-28 18:58
[Transition] Taskswitch.tra morte0815 Screensaver/Visualization Developement 5 2006-10-09 23:20
Alexpoets Transition Library snowmanx Plugin/Script (Python) Help and Support 0 2005-11-11 08:39
New Image Transition Library Alexpoet Plugin/Script (Python) Development 3 2004-12-29 07:08
'transition' spelt 'transistion' in settings sharpy_uk XBMC for Xbox Specific Support 2 2004-10-27 14:45


All times are GMT +2. The time now is 19:48.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project