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, 16:14   #1
morte0815
Member
 
morte0815's Avatar
 
Join Date: Sep 2004
Location: Germany
Posts: 61
morte0815 is on a distinguished road
Default [Preset] Woofer.vtx

Hi!

This is my first preset. I hope you like it.
PHP Code:
// woofer.vtx
// Author - morte0815

float angle 0;

void Init()
{

}

void Quad(float xfloat yfloat zfloat widthfloat tu_u,float tv_lfloat tu_b float tv_r)
{
gfxBegin(PRIM_QUADLIST);
gfxTexCoord(tu_utv_l);
gfxVertex(x,y,z);
gfxTexCoord(tu_btv_l);
gfxVertex(x+width,y,z);
gfxTexCoord(tu_btv_r);
gfxVertex(x+width,y+width,z);
gfxTexCoord(tu_utv_r);
gfxVertex(x,y+width,z);


gfxEnd();
}


float Length(float xfloat y)
{
  return 
Sqrt(x*x+y*y);
}

void Render()
{
  if (
BASS>0.5f)angle += TIMEPASS*5;
  if (
BASS<0.5f)angle -= TIMEPASS*5;
  
  
gfxTranslate(0025.0f);
    
    
gfxRotate(-100,1,0,0);
    
gfxRotate(angle,0,0,1);
  
  
    
gfxSetTexture(TEXTURE_ALBUMART);
    
    for (
int i = -1010i++)
  {
    for ( 
int j = -1010j++)
    {
      if (
Length(i,j) <= 10)
      {
      
float height=(Length(i,j)/10.0f*BASS);
      
height+=((10.0f-Length(i,j))/10.0f*TREBLE);
      
height+=((5.0f-Length(i,j))/10*MIDDLE);
      
Quad(i,j,height,1,(i+10)/20.0f,(j+10)/20.0f,(i+1+10)/20.0f,(j+1+10)/20.0f);
      }
    }
  }
  
  
  
      
    
gfxEnd();
    

Now some Questions:
Is there a manual with all functions listed?
How do the environmentmaps work?

CYA Morte

Last edited by morte0815; 2006-10-03 at 16:17.
morte0815 is offline   Reply With Quote
Old 2006-10-03, 16:35   #2
spiff
Grumpy Bastard Developer
 
spiff's Avatar
 
Join Date: Nov 2003
Posts: 7,715
spiff is on a distinguished road
Default

YEYH for u!
__________________
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.
spiff is offline   Reply With Quote
Old 2006-10-03, 18:23   #3
Gamester17
Team-XBMC Project Manager
 
Gamester17's Avatar
 
Join Date: Sep 2003
Location: Sweden
Posts: 10,582
Gamester17 will become famous soon enough
Default

only 'guide' so far is this => http://xbmc.org/forum/showthread.php?t=22365

Please feel free to add it to our online-manual (WIKI)
__________________
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.
Gamester17 is offline   Reply With Quote
Old 2006-10-03, 19:38   #4
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

Thanks Morte! Better docs are coming.
I'm quite impressed with your first preset, looking forward to seeing what else you can do, hehe
__________________
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
Old 2006-10-03, 20:25   #5
morte0815
Member
 
morte0815's Avatar
 
Join Date: Sep 2004
Location: Germany
Posts: 61
morte0815 is on a distinguished road
Default

--- gone to two new threads ----

Last edited by morte0815; 2006-10-03 at 20:38.
morte0815 is offline   Reply With Quote
Old 2006-10-03, 20:27   #6
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

morte, would be good if you created one topic per item, much easier to get an overview then! and also mention the name in the topic name
__________________
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
Old 2006-10-03, 20:33   #7
morte0815
Member
 
morte0815's Avatar
 
Join Date: Sep 2004
Location: Germany
Posts: 61
morte0815 is on a distinguished road
Default

Quote:
Originally Posted by pike View Post
morte, would be good if you created one topic per item, much easier to get an overview then! and also mention the name in the topic name
OK, no problem!
morte0815 is offline   Reply With Quote
Old 2006-10-03, 21:43   #8
MrC
Team-XBMC Developer
 
MrC's Avatar
 
Join Date: Jan 2004
Location: England
Posts: 55
MrC is on a distinguished road
Default

Hey Morte, great work mate.

Thanks for taking the time to have a play with Vortex.

As mentioned the docs are currently being worked on but feel free to ask me if there is anything you need help with, but you seem to be doing quite well on your own.

Also let me know if there is anything you think needs adding, math functions etc.

Looking forward to more of your work.

Cheers!
__________________
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.


MrC is offline   Reply With Quote
Old 2006-10-03, 23:37   #9
morte0815
Member
 
morte0815's Avatar
 
Join Date: Sep 2004
Location: Germany
Posts: 61
morte0815 is on a distinguished road
Default

Quote:
Originally Posted by MrC View Post
Hey Morte, great work mate.

Thanks for taking the time to have a play with Vortex.

As mentioned the docs are currently being worked on but feel free to ask me if there is anything you need help with, but you seem to be doing quite well on your own.

Also let me know if there is anything you think needs adding, math functions etc.

Looking forward to more of your work.

Cheers!
I have to thank you for giving us such a great tool to play with!

I think some more explanation of the blending functions would be great and (if not already there) some functionality for specifying the alpha level of an texture would be great (for transitions, so you could smoothly blend them from a to b).
morte0815 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
Selection for Milkdrop Preset BritneysPAIRS XBMC Feature Suggestions 0 2005-11-10 02:22
Request: mod a milkdrop preset pike XBMC Feature Suggestions 1 2005-07-28 17:59
Visualization preset interval option settings darth_vida XBMC for Xbox Specific Support 4 2005-05-20 20:50
Visualization preset interval darth_vida XBMC Feature Suggestions 4 2005-05-20 20:50
Save Preset screencalibrations... yngvebn XBMC Feature Suggestions 0 1970-01-01 02:00


All times are GMT +2. The time now is 07:06.


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