Color Rotation

Published July 14, 2011
Advertisement
Been doing more refactoring. Converting a lot of parameters to ScalarParameters, adding RGBA functionality back in, etc... Added a new type of RGBA function as well, which rotates a color in color-space around an axis, by a given angle. The axis coordinates and angle are all ScalarParameters, so they can either be constant or hooked up to noise functions. Here are a few images generated while testing the module:

rotmodule.png


Looks kind of pretty, but I honestly don't know how useful it would be.

Accidental Noise Library
1 likes 5 comments

Comments

mrbastard
Awesome.
I guess it's as useful as palette cycling - simple in itself, but great for adding a bit of interest. Especially as you allow synthesis functions as input.

Does it work just with the RGB colour space, or others too?

Have you thought about doing any other colour space transformations? No idea what use it'd be, but could be interesting!
July 14, 2011 04:04 PM
Servant of the Lord
Those look like they could make very good procedurally generated spell effects; the bottom right one in particular. If you can generate it animated, cut and instead of gradiating red-to-blue, do red-to-alpha, apply a mask over it to make it smoothly non-square, then you could have a very wickedly awesome lightning bolt/ball where every spell cast is different.

And the bottom-left could be poisonous gas, if you do fade-to-alpha. Animated fire could come of this also.
July 14, 2011 07:27 PM
blewisjr
I agree with Servant here any one of those would be great for procedurally generated particle effects. Not just spells but even nebulae in space and such especially if you can animate it in some way.
July 16, 2011 01:10 AM
yckx
I like the upper left one because it seems to use more of the spectrum than the others ;) I also think these could be used in some kind of forcefield or magical barrier rendering. Also agreeing with the above, if they can be animated it could lead to some really impressive effects.
July 16, 2011 05:23 AM
JTippetts
That's the cool thing about how I'm building the library. Any of those effects can be animated in many different ways. Flexibility is my main goal, and pretty much every day I'm making new tweaks to how things work. Still trying to catch up on the docs, though. I [url="http://accidentalnoise.sourceforge.net/index.html"]recycled[/url] the old page I used to have up here on gamedev. I'm not much of a web guy, but it doesn't matter, I just need to get something usable. Working on the examples section today.
July 16, 2011 03:27 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement