WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > Visualizations > AVS > changing color based on spectrum
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
Ktu
Junior Member

Registered: Dec 2008
From: In all of you

changing color based on spectrum

I'm not great with AVS yet, and since it is already a dead art its hard to find help, but I must see if anyone out there can help.

I have a viz that is kinda dope, but it needs to be more dynamic, and I'm thinking that having the colors change would be great.

First, my viz is set up using three (3) Particles that are inside of an effect list.

I tried putting in a colorfade that changes on beat, but it it not quite what I was looking for.

Can anyone suggest another way that I can get the colors of my particles to change maybe based on spectrum and/or using a custom bmp that skips a few beats?


Thanks

Quick Link | Report this post to a moderator | IP: Logged

Ktu is offline Old Post 08-03-2009 07:27 PM
Click Here to See the Profile for Ktu Click here to Send Ktu a Private Message Click Here to Email Ktu Find more posts by Ktu Add Ktu to your buddy list Edit/Delete Message Reply w/Quote
Warrior of the Light
Forum King

Registered: Aug 2002
From: Holland

First off, welcome to the world of AVS!

If you really want to learn about AVS, I suggest you also take a look at the available |tutorials|. I suggest you start with the first two, they're easy to read.

First, learn which effect does what. Experiment and fiddle around to see what happens. The tutorials can help you there.
If you know the possibilities, then I suggest you replace the moving particles with Texer II's, because they're codable (allowing, for instance, modifying the colors according to the music). Nothing to be afraid of, but you best start with the basics.

Maybe I'll whip something up for you tomorrow, I'm going to bed now.

__________________

Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever

Quick Link | Report this post to a moderator | IP: Logged

Warrior of the Light is online now Old Post 08-03-2009 08:36 PM
Click Here to See the Profile for Warrior of the Light Click here to Send Warrior of the Light a Private Message Click Here to Email Warrior of the Light Visit Warrior of the Light's homepage! Find more posts by Warrior of the Light Add Warrior of the Light to your buddy list Edit/Delete Message Reply w/Quote
Warrior of the Light
Forum King

Registered: Aug 2002
From: Holland

Take a look at the attachment

Attachment: avs.zip
This has been downloaded 70 time(s).

__________________

Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever

Quick Link | Report this post to a moderator | IP: Logged

Warrior of the Light is online now Old Post 08-04-2009 04:18 PM
Click Here to See the Profile for Warrior of the Light Click here to Send Warrior of the Light a Private Message Click Here to Email Warrior of the Light Visit Warrior of the Light's homepage! Find more posts by Warrior of the Light Add Warrior of the Light to your buddy list Edit/Delete Message Reply w/Quote
Ktu
Junior Member

Registered: Dec 2008
From: In all of you

Thanks for the help. I really appreciate your time.

I looked at the two .avs you sent. Some of the effects you used, I have never used before. The Texer II's sound like an interesting alternative to Moving Particles, but I think I'm still a little outside the realm of trying to code one of them.

I like what you did with the moving particle example. It worked very well with the color changes, however I'm looking for something a little smoother for the color change.

These are the files I've been working with. I was thinking it might work best if the color was changing constantly and smoothly. I thought about using a Color Modifier and setting up some code that would per frame change some values and apply it to the colors but its hard to debug what I actually tried. Got any ideas?

Attachment: fanburst.rar
This has been downloaded 64 time(s).

Quick Link | Report this post to a moderator | IP: Logged

Ktu is offline Old Post 08-05-2009 02:58 PM
Click Here to See the Profile for Ktu Click here to Send Ktu a Private Message Click Here to Email Ktu Find more posts by Ktu Add Ktu to your buddy list Edit/Delete Message Reply w/Quote
Warrior of the Light
Forum King

Registered: Aug 2002
From: Holland

Also try looking into the code of the Color Modifier's examples and the expression help.

Attachment: ktu - fanburst (wotl edit #1).zip
This has been downloaded 65 time(s).

__________________

Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever

Quick Link | Report this post to a moderator | IP: Logged

Warrior of the Light is online now Old Post 08-09-2009 10:25 AM
Click Here to See the Profile for Warrior of the Light Click here to Send Warrior of the Light a Private Message Click Here to Email Warrior of the Light Visit Warrior of the Light's homepage! Find more posts by Warrior of the Light Add Warrior of the Light to your buddy list Edit/Delete Message Reply w/Quote
Ktu
Junior Member

Registered: Dec 2008
From: In all of you

This is awesome. Thank you so much.

One thing that I think is happening but not sure is when any of the color values reach higher than 1, do they go back to 0? How does that work? Is the way that functions the same as most other variables?

I'll post up the final version of it when I am done.

Quick Link | Report this post to a moderator | IP: Logged

Ktu is offline Old Post 08-12-2009 01:49 PM
Click Here to See the Profile for Ktu Click here to Send Ktu a Private Message Click Here to Email Ktu Find more posts by Ktu Add Ktu to your buddy list Edit/Delete Message Reply w/Quote
Warrior of the Light
Forum King

Registered: Aug 2002
From: Holland

It's truncated if it reaches a level higher than 1, or lower than 0. Red can't be 'redder' than pure red, or darker than black.

But you can of course try this yourself. In this example, I multiplied the existing colors by a value. You can also set that value, ignoring what was before - like 'blue=0.6;' instead of 'blue=blue*0.6;'.

Experimenting teaches you the most. I could tell you what happens in most cases, but if you find out yourself, you'll understand better.

__________________

Jesus loves you [yes, you] so much, he even died for you so that you will not need to die, but live forever

Quick Link | Report this post to a moderator | IP: Logged

Warrior of the Light is online now Old Post 08-12-2009 05:27 PM
Click Here to See the Profile for Warrior of the Light Click here to Send Warrior of the Light a Private Message Click Here to Email Warrior of the Light Visit Warrior of the Light's homepage! Find more posts by Warrior of the Light Add Warrior of the Light to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 09:39 PM. Post New Thread    Post A Reply
  Last Thread   Next Thread
WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > Visualizations > AVS > changing color based on spectrum
Show Printable Version
 | 
Email this Page
 | 
Subscribe to this Thread

Forum Jump:
 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is off
vB code is ON
Smilies are ON
[IMG] code is ON